第十四步:Eclipse IDE插件
在Eclipse IDE中使用Allatori是很容易的:
- 拷贝 allatori.jar 到eclipse/dropins 目录下
- 在Eclipse中右键点击项目名称,在弹出菜单中选择Configure -> Add Allatori Builder (见屏幕截图)
- 清空并重新构建项目,混淆过程只运行在清理、构建过程中。
默认情况下配置文件allatori.xml 在第一次运行时,在项目跟目录生成。
你可以在配置文件中使用 e c l i p s e − i n p u t ∗ 、 ∗ {eclipse-input}* 、 * eclipse−input∗、∗{eclipse-classpath} ,像下面这样:
<input>
${eclipse-input}
</input>
<classpath>
${eclipse-classpath}
</classpath>