Ant compilation
- Generality
To do a compilation with ant, the build.xml should respect 3 things :
- The javac task in the build target should set the property fork to true.
- Define a property SqualeClassesDir which is the location of the compiled code.
- Define a path SqualeClasspath which should represent the classpath of the project.
Example :
<property name="SqualeClassesDir" location="..."/>
<path id="SqualeClasspath"></path>
<javac fork="true" ...>
For more information about the build file for ant, please refer to the ant documentation
- Configure the java compilation
You should :
- Click on Compile with ant.
- Set in the file path field the relative path where to found the 'build.xml' file.
Example :
This is the tree of the source :
MyAppliTest
`--testProject
|--src
| `-- ...
|-- ...
`--build.xml
So the path to set will be : MyAppliTest/testProject/build.xml
- Set the target to launch, if you want launch another target than the default one.
- Click on : Add the configuration settings.
- If needed add other(s) compilation settings.
- Choose the java version.
- If needed add some exclusion(s).
- Click on : Confirm.
The java compilation is configured.
Other java compilation :
Go to the project tool configuration page