這應該是一個評論,因爲它只是部分答案,但它太長了。
看來,.eclipseproduct
是在構建時生成的文件,並在供應時用P2未創建:
爲了找到這個我調配使用Eclipse P2主任(4.2的副本,我用Installing a Complete product section of this page說明,將版本庫更新到4.2 site而不是使用3.6版本,並從使用Windows路徑更改爲更適合我的mac的版本)。
我注意到在文件上列出的.eclipseproduct
文件似乎是解壓縮的神器,而不是產生一個因爲時間戳是不同的:
$ ls -lA
total 304
-rw-r--r-- 1 myself group 60 Sep 14 18:13 .eclipseproduct
drwxr-xr-x 3 myself group 102 Nov 2 14:49 Eclipse.app
-rw-r--r-- 1 myself group 112366 Nov 2 14:49 artifacts.xml
...
這讓我在./p2
翻翻各種緩存目錄中,我發現有一個可安裝單位org.eclipse.platform_root
這是一個包含授權和.eclipseproduct
文件的zip文件...
:p2 $ zipinfo org.eclipse.equinox.p2.core/cache/binary/org.eclipse.platform_root_*
Archive: org.eclipse.equinox.p2.core/cache/binary/org.eclipse.platform_root_4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO 38125 5
-rw---- 2.0 fat 0 bl defN 14-Sep-12 18:13 readme/
-rw---- 2.0 fat 104173 bl defN 14-Sep-12 18:13 readme/readme_eclipse.html
-rw---- 2.0 fat 9051 bl defN 14-Sep-12 18:13 notice.html
-rw---- 2.0 fat 60 bl defN 14-Sep-12 18:13 .eclipseproduct
-rw---- 2.0 fat 16536 bl defN 14-Sep-12 18:13 epl-v10.html
5 files, 129820 bytes uncompressed, 37501 bytes compressed: 71.1%
我發現我P2在org.eclipse.equinox.p2.repository/cache/content*.jar
文件中找到的文件的content.xmlü信息:
...
<unit id='org.eclipse.platform_root' version='4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO'>
<provides size='1'>
<provided namespace='org.eclipse.equinox.p2.iu' name='org.eclipse.platform_root' version='4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO'/>
</provides>
<artifacts size='1'>
<artifact classifier='binary' id='org.eclipse.platform_root' version='4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO'/>
</artifacts>
<touchpoint id='org.eclipse.equinox.p2.native' version='1.0.0'/>
<touchpointData size='1'>
<instructions size='2'>
<instruction key='install'>
unzip(source:@artifact, target:${installFolder});
</instruction>
<instruction key='uninstall'>
cleanupzip(source:@artifact, target:${installFolder});
</instruction>
</instructions>
</touchpointData>
</unit>
...
簡而言之:當安裝這個IU(所要求的org.eclipse.platform.feature.group
),P2只需解壓與.eclipseproduct
到安裝文件夾中的神器。無需轉換。因此它必須在安裝之前生成。
編輯:我還發現它在Eclipse Git Repositories,但還沒有想出如果是變成了IU以上或沒有提到的一個...
你需要什麼的'.eclipseproduct'文件對於?鏈接的文檔沒有提到該文件。 – oberlies
它確實 - 它在.exe的佈局中提到它。我們主要使用.eclipseproduct文件來確定應用程序的版本,這可以很容易地重新定位到config.ini文件中。我只是好奇,如果這是我應該做的,但在過去(甚至在Eclipse 4.2中打包一個)。 我大多隻是好奇,如果我們應該放棄.eclipseproduct(也許這是一個過時的神器?)或找出如何與我們的產品生成它。 – jonnywri