aslcore/build.xml

73 lines
2.3 KiB
XML

<project default="compile" basedir=".">
<property environment="env" />
<property name="globus.location" location="${env.GLOBUS_LOCATION}"/>
<property name="project.build" value="build"/>
<property name="build.classes" value="${project.build}/classes"/>
<target name="compile" depends="clean ,setenv" description="Compile project source code">
<echo>Compiling project source code</echo>
<javac srcdir="."
destdir="${build.classes}"
classpathref="classpath"
debug="on"
optimize="off"
deprecation="on"/>
<!--<copy file="etc/**" toDir="${build.classes}"/> -->
</target>
<target name="jar" depends="compile">
<jar destfile="ApplicationSupportLibraryCore.jar" >
<fileset dir="${build.classes}">
<include name="**/*.class"/>
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</fileset>
<fileset dir=".">
<include name="**/etc/*.xml"/>
<include name="**/etc/*.properties"/>
<include name="**/etc/*.xsl"/>
</fileset>
</jar>
</target>
<target name="setenv" description="Check for libraries and print out config information">
<mkdir dir="${project.build}"/>
<mkdir dir="${build.classes}"/>
<path id="classpath">
<pathelement location="${build.classes}"/>
<pathelement path="${java.class.path}"/>
<fileset dir="${globus.location}/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${ehcache}/">
<include name="*.jar"/>
</fileset>
</path>
</target>
<target name="javadoc">
<javadoc access="public"
author="true"
destdir="doc/api"
nodeprecated="false"
nodeprecatedlist="false"
noindex="false"
nonavbar="false"
notree="false"
source="1.5"
sourcepath="src"
packagenames="org.gcube.application.framework.*"
splitindex="true"
use="true"
version="true"
failonerror="false">
<classpath>
<fileset dir="${globus.location}/lib">
<include name="*.jar"/>
</fileset>
</classpath>
</javadoc>
</target>
<target name="clean" description="Delete classes and existing library">
<delete quiet="true" dir="${project.build}"/>
</target>
</project>