|
Re: Ant builder in headless mode [message #489780 is a reply to message #489772] |
Mon, 05 October 2009 21:47 |
|
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 #489955 is a reply to message #489942] |
Tue, 06 October 2009 15:14 |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03607 seconds