2016-09-22 54 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

我编辑了我的答案,以包含相关的片段,以充分利用我的记忆 –