Create ecotj jar from command line / workspace [message #1758145] |
Thu, 23 March 2017 20:30 |
|
Hi Stephan,
I want to create the ecotj.jar from current head from command line or workspace. I am using Oxygen M6 and working on master.
I already found the ant script org.eclipse.jdt.core/scripts/export-ecj.xml which has an export target. When I run "ant -f export-ecj.xml export" it will create a folder ecj-export with holds ecotj.jar. However, when extracting the jar I see that it does not hold any source code.
Is there any prerequisite I did not read or found? In the how to it says everything I did. bug 507370 makes me feel that it is not so easy to fully build the jar.
Thank you very much!
[Updated on: Fri, 24 March 2017 04:48] Report message to a moderator
|
|
|
Re: Create ecotj jar from command line / workspace [message #1758195 is a reply to message #1758145] |
Fri, 24 March 2017 14:39 |
|
Okay, got it working. The script is not general enough. On my Mac I had to change some things to make it work.
<property name="compiler.apt" value="${build.root.dir}/${jdt.compiler.apt}"/>
...
<property name="compiler.tool" value="${build.root.dir}/${jdt.compiler.tool}"/>
Where it was before
<property name="compiler.apt" value="${build.root.dir}/eclipse/${jdt.compiler.apt}"/>
...
<property name="compiler.tool" value="${build.root.dir}/eclipse/plugins/${jdt.compiler.tool}"/>
and my arguments I give to the ant script are
-Dbuild.root.dir="/Applications/Eclipse Oxygen.app/Contents/Eclipse/plugins"
-Djdt.compiler.apt="org.eclipse.jdt.compiler.apt_1.3.0.v20170110-0830.jar"
-Djdt.compiler.tool="org.eclipse.jdt.compiler.tool_1.2.0.v20161205-0823.jar"
Maybe one could further improve this in the future, as slight changes to the versions will make the build process fail.
[Updated on: Fri, 24 March 2017 14:49] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02401 seconds