Ant incremental build [message #333077] |
Mon, 24 November 2008 16:22  |
Eclipse User |
|
|
|
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 19:24   |
Eclipse User |
|
|
|
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 16:52  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03188 seconds