Running p2.process.artifacts in Jenkins

孤人 提交于 2019-12-11 16:27:51

问题


I read the SO post Running P2 Ant tasks outside Eclipse, which was a great help. I am trying to call p2.process.artifacts, however I am not sure what arguments should I pass to java task call. What should value for application argument be and how can I pass augment for jar signing (p2.process.arifacts:sign) to this call which is nested in p2.process.artifacts element?

Thanks, Alex


回答1:


If you want to run with Java calling Eclipse's AntRunner to run an ant script (eg., build.xml) containing the task, you could do it like this:

  java -cp /path/to/eclipse/plugins/org.eclipse.equinox.launcher_*.jar \
      org.eclipse.equinox.launcher.Main -consoleLog -nosplash -data /tmp \
      -application org.eclipse.ant.core.antRunner -f build.xml

Then build.xml would be something like:

<project default="pack">
  <target name="pack">
    <property name="workDir" value="${basedir}/somerepofolder/"/>
    <p2.process.artifacts pack="true" repositoryPath="file:${workDir}" />
  </target>
</project>


来源:https://stackoverflow.com/questions/12327748/running-p2-process-artifacts-in-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!