组织的Java编程进口 [英] Organize Java Imports programatically

查看:153
本文介绍了组织的Java编程进口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个自定义生成脚本我的Andr​​oid应用程序。我包括了一些简单preprocessing,这样我就可以像定义

I have written a custom build script for my android app. I included some "easy" preprocessing, so I can define comments like

//#ifdef something
... CODE
//#endif

如果配置,以便摆脱code部分。现在的问题是,经过了preprocessing我并不需要一些模块了,所以我离开他们。剩下的就是该模块,咬我,如果我想最后构建应用程序的import语句。我在寻找我的preprocessing内的方式,经过preprocessing恰好整理我的脚本中java的进口。而不需要额外的点击的任何解决方案是非常欢迎的。

and get rid of the Code part if configured so. The Problem is, that after preprocessing I don't need some modules anymore, so I leave them out. What remains is the import statement for that module which bites me, if I want to build the app finally. I'm searching for a way within my preprocessing, to organize the java Imports inside my script after preprocessing happens. Any Solution without the need for additional "clicks" is very welcome.

推荐答案

看一看的 HTTP://$c$c.google.com/p/java-comment-$p$pprocessor/
附:
例如使用的为我的案件之一
http://$c$c.google.com/p/java-comment-$p$pprocessor/wiki/ExampleOfUsageForJ2ME

这篇关于组织的Java编程进口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆