tycho - Specify name of OSX application file for Eclipse RCP app -
i have eclipse rcp application have been managing few years. updating luna neon base , have updated tycho 0.26 in process.
one of new features in eclipse since luna on osx application packaged .app content inside app folder. build process working, resulting application named eclipse.app rather myrcp.app. how best handled? rename after build or can controlled maven/tycho configuration?
figured out. need add configuration tycho-p2-director-plugin in product pom.xml here snippets file:
<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 product using p2 director --> <id>materialize-products</id> <goals> <goal>materialize-products</goal> </goals> </execution> <execution> <!-- create zip file installed product --> <id>archive-products</id> <goals> <goal>archive-products</goal> </goals> </execution> </executions> </plugin>
Comments
Post a Comment