繁体   English   中英

Eclipse RCP应用程序的自定义构建

[英]Custom Build for an Eclipse RCP app

我想在构建过程中集成以下内容: - 删除源代码中的所有jrxml文件。 - 使用proguard配置文件处理插件jar。

这是我到目前为止所尝试的

完整保留“Eclipse Export Wizard”过程的其余部分。

我试图在插件的“构建”选项卡中启用“自定义构建”检查并获得“找不到build.xml尝试禁用...”然后禁用它,再次尝试,复制build.xml,并取消选中“自定义构建”并再次尝试,出现错误:

C:\workspace\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\compile.org.eclipse.pde.container.feature.xml:4: The following error occurred while executing this line:
C:\project\build.xml:245: The following error occurred while executing this line:
C:\project\build.xml:206: java.lang.reflect.InvocationTargetException
The following error occurred while executing this line:
C:\project\build.xml:245: The following error occurred while executing this line:
C:\project\build.xml:206: java.lang.reflect.InvocationTargetException

尝试将build.xml作为ant运行,并且我找到了一个没有java_home,找到了java_home并且build.xml工作,但是Eclipse Export Wizard仍然遇到了同样的问题。

我终于成功了,

  1. 您需要在build.properties的“构建”选项卡上取消选中“自定义构建”。
  2. 然后右键单击build.properties / PDE Tools / Create Ant Build文件(这将生成build.xml)
  3. 然后你可以检查'自定义构建'

这就是所有人......你将拥有一个可以修改的build.xml(我可以添加ant标签来忽略* .jrxml并将proguard与ant集成)一个细节是你可能需要更改绝对值和$ {eclipse.home} $ {java.home}的相对路径

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM