...
The CompilePanel can be used to compile Java source code that is being installed.
This panel must appears after xxxx panel to be sure that the code is available for compilation.
The details for the compilation are specified using the resource CompilePanel.Spec.xml. Need explanation and example showing how the panel is linked to the Compile.Spec.xml resource or is it done magically
This panel must appears after xxxx panel to be sure that the code is available for compilation.
ExampleExample of a CompilePanel.Spec.xml file that offers a choice of 2 compilers and includes 2 compilation tasks.
:
| Code Block | ||||
|---|---|---|---|---|
| ||||
<compilation>
<global>
<compiler>
<choice value="$JAVA_HOME/bin/javac" />
<choice value="jikes" />
</compiler>
<arguments>
<choice value="-O -g:none" />
<choice value="-O" />
<choice value="-g" />
<choice value="" />
</arguments>
</global>
<jobs>
<classpath add="$INSTALL_PATH/src/classes/" />
<job name="optional name">
<directory name="$INSTALL_PATH/src/classes/xyz" />
</job>
<job name="another job">
<packdepency name="some package name" />
<classpath sub="$INSTALL_PATH/" />
<directory name="$INSTALL_PATH/src/classes/abc" />
<file name="$INSTALL_PATH/some/file.java" />
</job>
</jobs>
</compilation> |
...
The <classpath> element at the <jobs> level applies to included nested <job> tasks.
Job
Jobs can have an optional name attribute which is used to document the task's role.
...