Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Ant incremental build
Ant incremental build [message #333077] Mon, 24 November 2008 11:22 Go to next message
Eclipse UserFriend
Originally posted by: fischauto333.yahoo.de

Hi,

I want to use the <eclipse.incrementalBuild />
task inside my ant files for incremental building, even when starting
Ant from outside of Eclipse, e.g. command line.

So i think i have to put some Eclipse .jar files into the Ant classpath,
but which .jar files are these?
Re: Ant incremental build [message #333143 is a reply to message #333077] Wed, 26 November 2008 14:24 Go to previous messageGo to next message
Eclipse UserFriend
The eclipse.incremental task is provided by the
org.eclipse.core.resources bundle. The task itself is in the nested
ant_tasks/resources-ant.jar.

This task is just a wrapper for IProject.build() or IWorkspace.build().
Which basically means it does a workspace build, and won't work
outside of eclipse.

So instead of running this eclipse task inside of ant, you will need to
run ant inside of eclipse.

You can do this from the command line with something like
java -jar plugins/org.eclipse.equinox.launcher_<version>.jar
-application org.eclipse.ant.core.antRunner -buildfile build.xml

or even just
eclipse -application org.eclipse.ant.core.antRunner -buildfile build.xml


http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/ant_eclipse_tasks.htm
-Andrew


Joe wrote:
> Hi,
>
> I want to use the <eclipse.incrementalBuild />
> task inside my ant files for incremental building, even when starting
> Ant from outside of Eclipse, e.g. command line.
>
> So i think i have to put some Eclipse .jar files into the Ant classpath,
> but which .jar files are these?
>
>
>
>
Re: Ant incremental build [message #333173 is a reply to message #333143] Thu, 27 November 2008 11:52 Go to previous message
Eclipse UserFriend
Originally posted by: fischauto333.yahoo.de

Andrew Niefer schrieb:

> You can do this from the command line with something like
> java -jar plugins/org.eclipse.equinox.launcher_<version>.jar
> -application org.eclipse.ant.core.antRunner -buildfile build.xml

nice one, yes this works.

thx
Previous Topic:Missing ISynchronizeParticipant creation API from Platform?
Next Topic:How to get fine grained notifications after a resource save?
Goto Forum:
  


Current Time: Thu May 01 11:37:35 EDT 2025

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

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

Back to the top