2016-09-22 2 views
5

私が数年間管理しているEclipse RCPアプリケーションがあります。私はそれをルナからベースとしてネオンにアップデートしており、その過程でタイコ0.26にアップデートしました。Eclipse RCPアプリケーション用のOSXアプリケーションファイルの名前を指定

Eclipseの新機能の1つは、LunaはOSX上にあるため、アプリケーションはアプリケーションフォルダ内のコンテンツを含む.appとしてパッケージ化されています。私のビルドプロセスは動作していますが、結果のアプリケーションの名前はMyRCP.appではなくEclipse.appになります。これはどのようにして最善の扱いですかビルド後に名前を変更するだけですか、これをMaven/Tychoの設定から制御できますか?

答えて

4

ただ、ここに私の製品のpom.xmlにあったティコ-P2-ディレクター・プラグインに設定を追加する必要があるいくつかのスニペットは、ファイルから、次のとおりです。私は同じ問題を持っていると私は変更する方法を見つけることができませんでした

<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

私の答えを編集して、関連するスニペットを自分の記憶の中に入れてください –

関連する問題