我有一個帶有產品組態檔com.aa.bb.product的 Eclipse RCP 應用程式。這個uid.product 是com.aa.bb.product. 當我使用Tycho構建它時,結果是com.aa.bb.product-win32.win32.x86_64.zip。
這個檔案名太長,我應該配置什么來指定像“MyProduct.zip”這樣的檔案名?或者“MyProduct-win32.win32.x86_64.zip”,可以保留-win32.win32.x86_64后綴。
uj5u.com熱心網友回復:
在“產品”eclipse專案的pom中:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<formats>
<win32>zip</win32>
<linux>tar.gz</linux>
<macosx>tar.gz</macosx>
</formats>
<products>
<product>
<id>xxxxxx</id>
<archiveFileName>xxxxxx</archiveFileName> <---- the name of the archive
<rootFolder>xxxxx</rootFolder>
</product>
</products>
</configuration>
{...}
例如,您可以查看JMSToolBoxpom.xml的“產品”專案:https ://github.com/jmstoolbox/jmstoolbox/blob/dev/org.titou10.jtb.product/org.titou10.jtb.product
(我是JMSToolBox的作者)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/520087.html
標籤:蚀第谷
