Thursday, January 13, 2005

Using of Ant in Eclipse

In order to use the javac task of ant when you launch ant in Eclipse, you need to configure a system property to use the Eclipse compiler.
To do this, you can use a system property for the ant process (-D).


or a task in ant to initialize it. This task you must be called before every other tasks.

<project name="spring-core" default="traduction" basedir=".">

<target name="eclipse" if="eclipse.running">
<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter" />

<target name="page-preface" depends="eclipse" description="overview">


No comments: