Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Ant builder in headless mode(Ant builder in headless mode)
Ant builder in headless mode [message #489772] Mon, 05 October 2009 20:47 Go to next message
Chase Wolfinger is currently offline Chase WolfingerFriend
Messages: 17
Registered: July 2009
Junior Member
Hello - I added a build step to my project to invoke ant. This works fine in the normal eclipse UI but in headless mode it never gets invoked. Is there a feature that needs to be installed to make this work? I am using the default features plus the PDE feature.
Re: Ant builder in headless mode [message #489780 is a reply to message #489772] Mon, 05 October 2009 21:47 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 10/05/2009 10:47 PM, Chase Wolfinger wrote:
> Hello - I added a build step to my project to invoke ant. This works
> fine in the normal eclipse UI but in headless mode it never gets
> invoked. Is there a feature that needs to be installed to make this
> work? I am using the default features plus the PDE feature.

No, nothing special. If you have the core feature installed, all builders should be invoked. We rely on this in our own
builds and we have not observed any difference between UI and headless. Are you running a 'perform' command or a
'build'? Have you tried a build --clean ?

Regards,
Thomas Hallgren
Re: Ant builder in headless mode [message #489942 is a reply to message #489780] Tue, 06 October 2009 15:03 Go to previous messageGo to next message
Chase Wolfinger is currently offline Chase WolfingerFriend
Messages: 17
Registered: July 2009
Junior Member
HI Thomas - I tried that and it still did not work properly and I have verified that ant core plugin is in the buckminster install. I did try a workaround of running the build, then kicking off the ant build for the OSGI bundle (it is the JIBX generator) and then run the perform with the site.p2 action. For some reason the perform just overwrites everything whenever it is run almost like it cleans out the bin directory regardless of timestamp on the source code. So the workaround really does not work either.

BTW - I just verified that the antbuilder is correctly invoked on the regular UI version by invoking the bundle.jar action to run the build. So it seems to just skip the antbuilder silently on the headless mode (I do understand this is not necessarily a buckminster issue - i just do not even know where to start to debug the headless mode to determine why it thinks it should skip the antbuilder).

Thanks
Re: Ant builder in headless mode [message #489955 is a reply to message #489942] Tue, 06 October 2009 15:14 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Ah, now I know what the problem is. The standard ant builder uses the launcher framework and is therefore dependent on
UI classes. Because of that, we wrote our own ant invoker. It uses the same classes underneath but it bypasses the UI
dependent part.

You can change your .project file to use the Buckminster invoker instead by using an entry similar to this:

<buildCommand>
<name>org.eclipse.buckminster.ant.AntBuilder</name>
<arguments>
<dictionary>
<key>refresh.resource</key>
<value>.</value>
</dictionary>
<dictionary>
<key>delta.resource</key>
<value>src/ant_tasks</value>
</dictionary>
<dictionary>
<key>given.name</key>
<value>Ant tasks compile</value>
</dictionary>
<dictionary>
<key>script.file</key>
<value>make/build.xml</value>
</dictionary>
<dictionary>
<key>derived.resource</key>
<value>ant_tasks</value>
</dictionary>
</arguments>
</buildCommand>

Sorry I didn't catch this earlier. It's been a while since I touch that part of the code.

HTH,
Thomas Hallgren


On 10/06/2009 05:03 PM, Chase Wolfinger wrote:
> HI Thomas - I tried that and it still did not work properly and I have
> verified that ant core plugin is in the buckminster install. I did try a
> workaround of running the build, then kicking off the ant build for the
> OSGI bundle (it is the JIBX generator) and then run the perform with the
> site.p2 action. For some reason the perform just overwrites everything
> whenever it is run almost like it cleans out the bin directory
> regardless of timestamp on the source code. So the workaround really
> does not work either.
>
> BTW - I just verified that the antbuilder is correctly invoked on the
> regular UI version by invoking the bundle.jar action to run the build.
> So it seems to just skip the antbuilder silently on the headless mode (I
> do understand this is not necessarily a buckminster issue - i just do
> not even know where to start to debug the headless mode to determine why
> it thinks it should skip the antbuilder).
>
> Thanks
Re: Ant builder in headless mode [message #489979 is a reply to message #489955] Tue, 06 October 2009 17:48 Go to previous message
Chase Wolfinger is currently offline Chase WolfingerFriend
Messages: 17
Registered: July 2009
Junior Member
That works! Thank you for your help/
Previous Topic:Show Log View dependencies
Next Topic:custom default start level or contig.ini
Goto Forum:
  


Current Time: Fri Apr 26 06:48:57 GMT 2024

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

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

Back to the top