Show build.xml syntax highlighted
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: build.xml 1319 2007-01-29 14:03:54Z jkarppin $ -->
<project name="gb-agent main builder" default="help" basedir="..">
<!-- Set the relative path to current module directory -->
<property name="module.dir" value="${basedir}/gb-agent"/>
<!-- ================================================================== -->
<!-- Setup the builder environment-->
<!-- ================================================================== -->
<!-- Common GridBlocks build scripts -->
<import file="${basedir}/builder/builder.xml"/>
<!-- GridBlocks modules and their dependencies -->
<import file="${basedir}/builder/modules.xml"/>
<!-- ================================================================= -->
<!-- Initialisation-->
<!-- ================================================================= -->
<!-- Initialise the common build system.
Other targets should depend on this init before doing anything. -->
<target name="init" unless="builder:initialised" depends="modules:init, builder:init" >
</target>
<!-- ================================================================= -->
<!-- Module dependent configuration-->
<!-- ================================================================= -->
<!-- Initialise module dependent configurations. Called automatically
from build script. -->
<target name="configure">
<!-- Module name and version -->
<property name="module.name" value="gb-agent"/>
<property name="module.version" value="${agent.version}"/>
<!-- fill here your local property names -->
<!-- Additional bootclasspath variables for building-->
<property name="bootclasspath.local" value=""/>
<!-- External libraries needed for building-->
<path id="library.classpath">
</path>
</target>
<!-- ================================================================= -->
<!-- Help-->
<!-- ================================================================= -->
<target name="help" depends="init,builder:help">
<echo>
Full documentation of build tasks can be found
from application documents:
- docs/ant.html
- http://localhost:8080/gb-agent/docs/ant.html
</echo>
</target>
<!-- ================================================================= -->
<!-- Default tasks-->
<!-- ================================================================= -->
<target name="all" depends="init, clean, release, test"
description="Clean, compile, test and release everything">
</target>
<target name="release" depends="init, release-src, release-agent, release-docs"
description="Release all modules and sources">
</target>
<!-- ================================================================= -->
<!-- Documenting-->
<!-- ================================================================= -->
<target name="release-docs" depends="init"
description="Build and release documentation of all modules">
<echo>Entering Plugins module</echo>
<echo>Entering Bluetooth plugin</echo>
<ant antfile="${bluetooth.dir}/build.xml"
target="docs" inheritAll="false"/>
<echo>Entering MIDP module</echo>
<ant antfile="${midp.dir}/build.xml"
target="docs" inheritAll="false"/>
<echo>Entering Agent module</echo>
<ant antfile="${agent.dir}/build.xml"
target="docs" inheritAll="false"/>
<echo>Entering Appdoc module</echo>
<ant antfile="${appdoc.dir}/build.xml"
target="release" inheritAll="false"/>
<mkdir dir="${release.dir}"/>
<copy todir="${release.dir}" flatten="true">
<fileset dir="${appdoc.dir}" includes="${appdoc.release}"/>
</copy>
</target>
<!-- ================================================================= -->
<!-- Binary Releases -->
<!-- ================================================================= -->
<target name="release-plugins"
depends="init"
description="Release the Bluetooth module">
<mkdir dir="${release.dir}"/>
<echo>Entering Plugins module</echo>
<echo>Entering Bluetooth plugin</echo>
<ant antfile="${bluetooth.dir}/build.xml"
target="release" inheritAll="false"/>
</target>
<target name="release-midp"
depends="init, release-plugins"
description="Release the the Midlet module">
<echo>Entering MIDP module</echo>
<ant antfile="${midp.dir}/build.xml"
target="release" inheritAll="false"/>
<copy todir="${release.dir}" flatten="true">
<fileset dir="${midp.dir}" includes="${midp.release}"/>
</copy>
</target>
<target name="release-agent"
depends="init, release-midp"
description="Release the Agent module">
<echo>Entering Agent module</echo>
<ant antfile="${agent.dir}/build.xml"
target="release" inheritAll="false"/>
<copy todir="${release.dir}" flatten="true">
<fileset dir="${agent.dir}" includes="${agent.release}"/>
</copy>
</target>
<!-- ================================================================= -->
<!-- Source Release -->
<!-- ================================================================= -->
<target name="release-src" depends="clean"
description="Source release of GBAgent including builder module">
<mkdir dir="${release.dir}"/>
<jar jarfile="${release.dir}/${module.name}-src-${module.version}.jar">
<zipfileset dir="${module.dir}" prefix="${release.prefix}">
<exclude name="${release.dir}*/**"/>
</zipfileset>
<zipfileset dir="${builder.dir}" prefix="builder"/>
</jar>
</target>
<!-- ================================================================= -->
<!-- Testing -->
<!-- ================================================================= -->
<target name="test" depends="init"
description="Unit testing">
<echo>Entering Agent module</echo>
<ant antfile="${agent.dir}/build.xml"
target="test" inheritAll="false"/>
</target>
<!-- ================================================================= -->
<!-- Cleaning -->
<!-- ================================================================= -->
<target name="clean" depends="init,builder:clean"
description="Clean up everything">
<echo>Entering Plugins module</echo>
<echo>Entering Bluetooth plugin</echo>
<ant antfile="${bluetooth.dir}/build.xml"
target="clean" inheritAll="false"/>
<echo>Entering Appdoc module</echo>
<ant antfile="${appdoc.dir}/build.xml"
target="clean" inheritAll="false"/>
<echo>Entering MIDP module</echo>
<ant antfile="${midp.dir}/build.xml"
target="clean" inheritAll="false"/>
<echo>Entering Agent module</echo>
<ant antfile="${agent.dir}/build.xml"
target="clean" inheritAll="false"/>
</target>
</project>
See more files for this project here