簡體   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