2016-09-22 94 views
5

我有一個我已經管理了幾年的Eclipse RCP應用程序。我將它從Luna更新爲Neon,並在此過程中更新至Tycho 0.26。指定Eclipse RCP應用程序的OSX應用程序文件的名稱

自從Luna之後,Eclipse中的一個新功能就是在OSX上,應用程序打包爲一個.app文件內的應用程序。我的構建過程正在運行,但是最終的應用程序現在被命名爲Eclipse.app而不是MyRCP.app。這最好如何處理?我是否在構建完成後重命名它,還是可以通過Maven/Tycho配置進行控制?

回答

4

想通了。只需要添加配置到第谷-P2-主任插件,在我的產品的pom.xml以下是從文件中的一些片段:

<plugin> 
    <groupId>org.eclipse.tycho</groupId> 
    <artifactId>tycho-p2-repository-plugin</artifactId> 
    <version>${tycho-version}</version> 
    <configuration> 
     <includeAllDependencies>true</includeAllDependencies> 
     <profileProperties> 
     <macosx-bundled>true</macosx-bundled> 
     </profileProperties> 
    </configuration> 
    </plugin> 

    <plugin> 
    <groupId>org.eclipse.tycho</groupId> 
    <artifactId>tycho-p2-director-plugin</artifactId> 
    <version>${tycho-version}</version> 
    <configuration> 
     <formats> 
      <win32>zip</win32> 
      <linux>zip</linux> 
      <macosx>zip</macosx> 
     </formats> 
     <products> 
      <product> 
       <id>MyProduct</id> 
       <rootFolders> 
        <macosx>MyProduct.app</macosx> 
       </rootFolders> 
      </product> 
     </products> 
    </configuration> 
    <executions> 
     <execution> 
      <!-- install the product using the p2 director --> 
      <id>materialize-products</id> 
      <goals> 
       <goal>materialize-products</goal> 
      </goals> 
     </execution> 
     <execution> 
      <!-- create zip file with the installed product --> 
      <id>archive-products</id> 
      <goals> 
       <goal>archive-products</goal> 
      </goals> 
     </execution> 
    </executions> 
    </plugin> 
+0

我有同樣的問題,我沒有找到如何改變文檔中的「Eclipse.app」的名稱,你記得嗎? 相反,我已經從我的ANT腳本中重命名了該文件夾。 –

+1

我編輯了我的答案,以包含相關的片段,以充分利用我的記憶 –