3

给定一个目标平台定义文件:

<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.8"?>
<target name="e46" sequenceNumber="10">
  <locations>
    <location includeSource="true" type="InstallableUnit">
      <unit id="org.eclipse.ide...." version="some version" />
      <repository location="http://someupdatesite" />
    </location>
  </locations>
  <targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/.../JavaSE-1.8" />
</target>

从这个定义生成目标平台的 eclipse SDK 命令行是什么?

我目前的解决方案相当难看:解压单元,解压存储库并运行以下命令。它可以工作,但显然会将所有这些进一步的参数放到位置和存储库(例如源包含等),并且当单元列表变长时会爆炸:

eclipse -application org.eclipse.equinox.p2.director \
  -repository http://somerepository1,http://somerepository2 \
  -installIU some_bundle1/some_version1,some_bundle2/some_version2 \
  -destination $outputdir -bundlepool $outputdir \
  -p2.os linux -p2.ws gtk -p2.arch x86_64

我正在寻找的是类似的东西:

eclipse -application someEquinoxApplication \
  -targetFile $targetfile \
  -destination $outputdir -bundlepool $outputdir \
  -p2.os linux -p2.ws gtk -p2.arch x86_64

我只对命令行解决方案感兴趣。

4

0 回答 0