Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

204 lines (146 sloc) 6.906 kb
<?xml version="1.0"?>
<project default="dist" basedir="." name="context broker">
<description>Context Broker build file</description>
<!-- load user nimbus.build.properties file, if it exists -->
<property file="${user.home}/nimbus.build.properties"/>
<!-- load defaults from colocated build.properties file -->
<property file="build.properties"/>
<!-- *******************************************************************
LOCATE GT DEPENDENCIES
******************************************************************* -->
<property environment="env"/>
<property name="abs.deploy.dir"
location="${env.GLOBUS_LOCATION}"/>
<property name="gt4_0.lib.dir"
location="${abs.deploy.dir}/lib"/>
<!-- *******************************************************************
CHECK MINIMUM JDK
******************************************************************* -->
<target name="checkjdk">
<available property="jdk1.5+"
classname="java.lang.Readable"/>
<fail message="Aborting: determined you are not building with >= JDK 1.5"
unless="jdk1.5+" />
</target>
<!-- *******************************************************************
INITIALIZE
******************************************************************* -->
<target name="init" depends="checkjdk">
<mkdir dir="${nimbus.ctxbroker.build.dir}"/>
<mkdir dir="${nimbus.ctxbroker.build.dest}"/>
<mkdir dir="${nimbus.ctxbroker.dist.dir}"/>
</target>
<!-- *******************************************************************
WSDL, STUBS ETC
******************************************************************* -->
<target name="stubs" depends="init">
<ant dir="${nimbus.ctxbroker.stubs.dir}" target="dist" />
</target>
<target name="stubscopyjar" depends="init">
<ant dir="${nimbus.ctxbroker.stubs.dir}" target="copyjar" />
</target>
<!-- *******************************************************************
COMPILATION
******************************************************************* -->
<path id="nimbus.ctxbroker.classpath">
<fileset dir="${gt4_0.lib.dir}">
<include name="*.jar"/>
<exclude name="nimbus-*.jar" />
</fileset>
<fileset dir="${nimbus.ctxbroker.stubs.dist}">
<include name="*.jar"/>
</fileset>
<fileset dir="${nimbus.authz.dist.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${nimbus.querygeneral.dist.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${nimbus.service.api.dist.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${nimbus.ctxbroker.lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<target name="compile" depends="stubs">
<javac srcdir="${nimbus.ctxbroker.src.dir}"
destdir="${nimbus.ctxbroker.build.dest}"
classpathref="nimbus.ctxbroker.classpath"
classpath="${nimbus.ctxbroker.stubs.dist}/*jar"
includeantruntime="false"
source="1.5"
target="1.5"
debug="on">
<include name="**/*.java"/>
</javac>
<copy todir="${nimbus.ctxbroker.build.dest}" >
<fileset dir="${nimbus.ctxbroker.src.dir}"
includes="**/*.properties" />
<fileset dir="${nimbus.ctxbroker.src.dir}"
includes="**/*.xml" />
<fileset dir="${nimbus.ctxbroker.src.dir}"
includes="**/*.txt" />
</copy>
</target>
<!-- *******************************************************************
CREATE ARCHIVE FILE
******************************************************************* -->
<target name="jar" depends="compile">
<jar destfile="${nimbus.ctxbroker.dist.dir}/${nimbus.ctxbroker.jar.name}"
basedir="${nimbus.ctxbroker.build.dest}"/>
</target>
<!-- *******************************************************************
CLEAN
******************************************************************* -->
<target name="clean">
<delete file=".ant-targets-build.xml" />
<delete dir="${nimbus.ctxbroker.build.dir}"/>
<delete dir="${nimbus.ctxbroker.dist.dir}"/>
<ant dir="${nimbus.ctxbroker.wsdl.compact.dir}" target="clean" />
<ant dir="${nimbus.ctxbroker.stubs.dir}" target="clean" />
<ant dir="${nimbus.ctxbroker.gar.dir}" target="clean" />
</target>
<!-- *******************************************************************
CREATE DISTRIBUTION
******************************************************************* -->
<target name="dist" depends="clean, jar" />
<!-- *******************************************************************
DEPLOY ONLY JARS (development target)
******************************************************************* -->
<target name="justjars" depends="jar">
<echo message="Copying JARs: ${basedir}" />
<copy todir="${gt4_0.lib.dir}" >
<fileset dir="${nimbus.ctxbroker.dist.dir}">
<include name="*.jar"/>
</fileset>
</copy>
</target>
<!-- *******************************************************************
GAR RELATED
******************************************************************* -->
<target name="gar-bundled">
<ant dir="${nimbus.ctxbroker.gar.dir}" target="dist-bundled" />
</target>
<target name="gar-standalone">
<ant dir="${nimbus.ctxbroker.gar.dir}" target="dist-standalone" />
</target>
<target name="deploy" depends="dist, gar-bundled">
<ant dir="${nimbus.ctxbroker.gar.dir}" target="deploy" />
</target>
<target name="deploy-standalone" depends="dist, gar-standalone">
<ant dir="${nimbus.ctxbroker.gar.dir}" target="deploy" />
</target>
<target name="undeploy">
<ant dir="${nimbus.ctxbroker.gar.dir}" target="undeploy" />
</target>
<!-- *******************************************************************
NEW WSDL
******************************************************************* -->
<target name="newcompact">
<ant dir="${nimbus.ctxbroker.wsdl.compact.dir}" target="clean" />
<ant dir="${nimbus.ctxbroker.wsdl.compact.dir}" target="copyToDeployableComponent" />
<ant dir="${nimbus.ctxbroker.stubs.dir}" target="clean" />
<ant dir="${nimbus.ctxbroker.stubs.dir}" target="dist" />
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.