Ant compilation

  1. 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

  2. Configure the java compilation

    You should :

    1. Click on Compile with ant.
    2. 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
       
    3. Set the target to launch, if you want launch another target than the default one.
    4. Click on : Add the configuration settings.
    5. If needed add other(s) compilation settings.
    6. Choose the java version.
    7. If needed add some exclusion(s).
    8. Click on : Confirm.

    The java compilation is configured.


Other java compilation :

Go to the project tool configuration page