Show build.xml syntax highlighted
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
<!ENTITY builder SYSTEM "../../../builder/builder.ent">
<!ENTITY modules SYSTEM "../../../builder/modules.ent">
]>
<!-- $Id: build.xml,v 1.2 2006/03/02 14:36:01 mikkonen Exp $ -->
<project name="gb-gridlib-gridsp" default="help" basedir="../../..">
<!-- Set the relative path to current module directory -->
<property name="module.dir" value="${basedir}/gb-security/gb-gridlib/gridsp"/>
<!-- ================================================================== -->
<!-- Setup the builder environment-->
<!-- ================================================================== -->
<!-- Common GridBlocks build scripts
defined in builder/builder.ent file -->
&builder;
<!-- GridBlocks modules and their dependencies
defined in builder/modules.ent file -->
&modules;
<!-- ================================================================= -->
<!-- Initialisation-->
<!-- ================================================================= -->
<!-- Initialise the common build system.
Other targets should depend on this init before doing anything. -->
<target name="init" unless="builder:initialised" depends="builder:init, modules: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-gridlib-gridsp"/>
<property name="module.version" value="0.0.1"/>
<!-- fill here your local property names -->
<!-- Javadoc package includes -->
<property name="javadoc.packages" value="fi.hip.gb.gridlib.gridsp.*"/>
<!-- Javadoc package includes -->
<property name="cvs.package" value="gb-security/gb-gridlib/gridsp"/>
<!-- Additional bootclasspath variables for building-->
<property name="bootclasspath.local" value=""/>
<!-- External libraries needed for building-->
<path id="library.classpath">
<!-- Module dependencies -->
<path refid="bluetooth.classpath"/>
<!-- for building -->
<fileset dir="${basedir}/gb-security/gb-gridlib/proxy-extension/lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${basedir}/gb-security/gb-gridlib/proxy-extension/output">
<include name="gb-gridlib-proxyextension.jar"/>
</fileset>
<fileset dir="${basedir}/gb-security/gb-gridlib/proxy-extension/output/lib">
<include name="gb-gridlib-proxyextension-xml.jar"/>
</fileset>
<!-- GridBank library -->
<fileset dir="${basedir}/gb-security/gb-gridbank/output/lib">
<include name="**/*.jar"/>
</fileset>
<!-- 3rd party libraries -->
<fileset dir="${module.lib}">
<include name="**/*.jar"/>
</fileset>
<!-- JBOSS -->
<fileset dir="${jboss.home}/server/default/lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${jboss.home}/lib">
<include name="**/*.jar"/>
</fileset>
</path>
</target>
<!-- ================================================================= -->
<!-- Help-->
<!-- ================================================================= -->
<target name="help" depends="init,builder:help">
<echo>
This is a sample ANT build script for Gridblocks projects.
</echo>
</target>
<!-- ================================================================= -->
<!-- Default task-->
<!-- ================================================================= -->
<target name="all" depends="init, clean, jars, docs, release"
description="Clean, compile and release everything">
</target>
<!-- ================================================================= -->
<!-- Compilations-->
<!-- ================================================================= -->
<target name="compile" depends="init">
<mkdir dir="${bld.classes}"/>
<javac
destdir="${bld.classes}"
srcdir="${source.java}"
excludes=""
debug="${javac.debug}"
depend="${javac.depend}"
deprecation="${javac.deprecation}"
optimize="${javac.optimize}"
verbose="${javac.verbose}"
failonerror="${javac.fail.onerror}">
<bootclasspath refid="javac.bootclasspath"/>
<classpath refid="javac.classpath"/>
</javac>
<jar jarfile="${bld.dir}/${application.name}-resources.jar" update="false">
<fileset dir="gb-security/gb-gridlib/gridsp/src/conf">
<include name="proxyextension.properties"/>
</fileset>
</jar>
</target>
<!-- ================================================================= -->
<!-- Documenting-->
<!-- ================================================================= -->
<target name="docs" depends="init,builder:docs-api"
description="Build Java documentation">
</target>
<!-- ================================================================= -->
<!-- Archives -->
<!-- ================================================================= -->
<target name="jars" depends="init,compile"
description="Build JAR files">
<mkdir dir="${bld.lib}"/>
<!-- core classes -->
<delete file="${bld.webinf}/lib/${application.name}.jar"/>
<jar jarfile="${bld.webinf}/lib/${application.name}.jar" update="false">
<fileset dir="${bld.classes}">
<include name="fi/hip/gb/gridlib/gridsp/**/*.class"/>
</fileset>
</jar>
</target>
<target name="war" depends="init,compile"
description="Build WAR files">
<!-- core classes -->
<delete file="${bld.dir}/${application.name}.war"/>
<war destfile="${bld.dir}/${application.name}.war" webxml="gb-security/gb-gridlib/gridsp/src/meta/web.xml">
<webinf dir="gb-security/gb-gridlib/gridsp/src/meta">
<include name="jboss-web.xml"/>
</webinf>
<classes dir="gb-security/gb-gridlib/gridsp/src/resources">
<include name="*.xml"/>
</classes>
<classes dir="${bld.classes}">
<include name="**/*.class"/>
</classes>
<zipfileset dir="gb-security/gb-gridlib/gridsp/src/web" prefix="sp">
<include name="*.jsp"/>
</zipfileset>
<fileset dir="gb-security/gb-gridlib/gridsp/src/conf">
<include name="proxyextension.properties"/>
</fileset>
<lib dir="gb-security/gb-gridlib/proxy-extension/lib">
<include name="*.jar"/>
</lib>
<lib dir="gb-security/gb-gridlib/proxy-extension/output">
<include name="*.jar"/>
</lib>
<lib dir="gb-security/gb-gridlib/proxy-extension/output/lib">
<include name="*.jar"/>
</lib>
<lib dir="${basedir}/gb-security/gb-gridbank/output/lib">
<include name="*.jar"/>
</lib>
<lib dir="${bld.dir}">
<include name="${application.name}-resources.jar"/>
</lib>
<lib dir="gb-security/gb-gridlib/gridsp/lib">
<include name="*.jar"/>
</lib>
<lib dir="gb-security/gb-gridlib/idb/lib">
<include name="*.jar"/>
</lib>
</war>
<jar jarfile="${bld.dir}/${application.name}.jar" update="false">
<fileset dir="${bld.classes}">
<include name="**/*.class"/>
</fileset>
</jar>
</target>
<!-- ================================================================= -->
<!-- Install and release -->
<!-- ================================================================= -->
<target name="deploy" depends="init,compile,war"
description="Deploy the module into JBoss">
<copy todir="${jboss.deploy.dir}" file="${bld.dir}/${application.name}.war"/>
<copy tofile="${jboss.deploy.dir}/${application.name}.sar" file="gb-security/gb-gridlib/idb/lib/sourceid-idff-demo.sar"/>
<copy todir="${jboss.deploy.dir}" file="gb-security/gb-gridlib/idb/src/resources/sourceid-service.xml"/>
</target>
<target name="release">
<!-- TODO -->
</target>
<!-- ================================================================= -->
<!-- Testing -->
<!-- ================================================================= -->
<target name="test" depends="init,builder:test"
description="Unit testing">
</target>
<!-- ================================================================= -->
<!-- Cleaning -->
<!-- ================================================================= -->
<target name="clean" depends="init,builder:clean"
description="Clean up everything">
</target>
</project>
See more files for this project here