Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Objectteams » Create ecotj jar from command line / workspace
Create ecotj jar from command line / workspace [message #1758145] Thu, 23 March 2017 20:30 Go to next message
Lars Schütze is currently offline Lars SchützeFriend
Messages: 38
Registered: March 2012
Location: Germany
Member

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 Go to previous messageGo to next message
Lars Schütze is currently offline Lars SchützeFriend
Messages: 38
Registered: March 2012
Location: Germany
Member

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

Re: Create ecotj jar from command line / workspace [message #1758451 is a reply to message #1758195] Tue, 28 March 2017 19:15 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1535
Registered: July 2009
Senior Member
Hi Lars,

I'm glad you figured it out.

I haven't used those files for export from the IDE in a long time.
The scripts are adjusted to the directory structure as it exists during production builds.
The good news is: those scripts are indeed used on a regular bases, so no danger for them to silently decay.

In particular on https://hudson.eclipse.org/objectteams/job/buildAndTest/ (not sure this is publically visible) you'd find links to ecotj.jar (plus the corresponding src jar) of each build.

As for the version qualifiers, those are part of the process for adopting a new base (Eclipse SDK) to build against. A jenkins job exists to extract versions from the SDK: https://hudson.eclipse.org/objectteams/job/extractVersions/ the results of which will be stored in /releng/build-scripts/build/run.properties

Since production builds are working OK in this way, I'm not planning to change anything. Hope that's OK.
Stephan
Previous Topic:eclipse neon product does not load new weaver
Next Topic:OTDT in Neon.3
Goto Forum:
  


Current Time: Thu Jan 18 06:23:46 GMT 2018

Powered by FUDForum. Page generated in 0.01974 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software