|
|
0a2d14 |
|
|
|
0a2d14 |
|
|
|
0a2d14 |
|
|
|
0a2d14 |
on date May 5 2007, time 1501-->
|
|
|
0a2d14 |
|
|
|
0a2d14 |
<project default="jar" name="jaxen" basedir=".">
|
|
|
0a2d14 |
<property name="defaulttargetdir" value="target">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<property name="libdir" value="target/lib">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<property name="classesdir" value="target/classes">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<property name="testclassesdir" value="target/test-classes">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<property name="testclassesdir" value="target/test-classes">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<property name="testreportdir" value="target/test-reports">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<property name="distdir" value="dist">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<property name="javadocdir" value="dist/docs/api">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<property name="final.name" value="jaxen-1.1.3">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<path id="build.classpath">
|
|
|
0a2d14 |
<fileset dir="${libdir}">
|
|
|
0a2d14 |
<include name="**/*.jar">
|
|
|
0a2d14 |
</include>
|
|
|
0a2d14 |
</fileset>
|
|
|
0a2d14 |
</path>
|
|
|
0a2d14 |
<target name="init" description="o Initializes some properties">
|
|
|
0a2d14 |
<mkdir dir="${libdir}">
|
|
|
0a2d14 |
</mkdir>
|
|
|
0a2d14 |
<condition property="noget">
|
|
|
0a2d14 |
<equals arg2="only" arg1="${build.sysclasspath}">
|
|
|
0a2d14 |
</equals>
|
|
|
0a2d14 |
</condition>
|
|
|
0a2d14 |
|
|
|
0a2d14 |
|
|
|
0a2d14 |
<available property="Junit.present" classname="junit.framework.Test">
|
|
|
0a2d14 |
</available>
|
|
|
0a2d14 |
</target>
|
|
|
0a2d14 |
<target name="compile" description="o Compile the code">
|
|
|
0a2d14 |
<mkdir dir="${classesdir}">
|
|
|
0a2d14 |
</mkdir>
|
|
|
0a2d14 |
<javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
|
|
|
0a2d14 |
<src>
|
|
|
0a2d14 |
<pathelement location="src/java/main">
|
|
|
0a2d14 |
</pathelement>
|
|
|
0a2d14 |
</src>
|
|
|
0a2d14 |
<classpath refid="build.classpath">
|
|
|
0a2d14 |
</classpath>
|
|
|
0a2d14 |
</javac>
|
|
|
0a2d14 |
</target>
|
|
|
0a2d14 |
<target name="jar" description="o Create the jar" depends="compile">
|
|
|
0a2d14 |
<jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}">
|
|
|
0a2d14 |
</jar>
|
|
|
0a2d14 |
</target>
|
|
|
0a2d14 |
<target name="clean" description="o Clean up the generated directories">
|
|
|
0a2d14 |
<delete dir="${defaulttargetdir}">
|
|
|
0a2d14 |
</delete>
|
|
|
0a2d14 |
<delete dir="${distdir}">
|
|
|
0a2d14 |
</delete>
|
|
|
0a2d14 |
</target>
|
|
|
0a2d14 |
<target name="dist" description="o Create a distribution" depends="jar, javadoc">
|
|
|
0a2d14 |
<mkdir dir="dist">
|
|
|
0a2d14 |
</mkdir>
|
|
|
0a2d14 |
<copy todir="dist">
|
|
|
0a2d14 |
<fileset dir="${defaulttargetdir}" includes="*.jar">
|
|
|
0a2d14 |
</fileset>
|
|
|
0a2d14 |
<fileset dir="${basedir}" includes="LICENSE*, README*">
|
|
|
0a2d14 |
</fileset>
|
|
|
0a2d14 |
</copy>
|
|
|
0a2d14 |
</target>
|
|
|
0a2d14 |
<target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
|
|
|
0a2d14 |
<fail message="There were test failures.">
|
|
|
0a2d14 |
</fail>
|
|
|
0a2d14 |
</target>
|
|
|
0a2d14 |
<target name="internal-test" if="Junit.present" depends="junit-present,compile-tests">
|
|
|
0a2d14 |
<mkdir dir="${testreportdir}">
|
|
|
0a2d14 |
</mkdir>
|
|
|
0a2d14 |
<junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
|
|
|
0a2d14 |
<sysproperty key="basedir" value=".">
|
|
|
0a2d14 |
</sysproperty>
|
|
|
0a2d14 |
<formatter type="xml">
|
|
|
0a2d14 |
</formatter>
|
|
|
0a2d14 |
<formatter usefile="false" type="plain">
|
|
|
0a2d14 |
</formatter>
|
|
|
0a2d14 |
<classpath>
|
|
|
0a2d14 |
<path refid="build.classpath">
|
|
|
0a2d14 |
</path>
|
|
|
0a2d14 |
<pathelement path="${testclassesdir}">
|
|
|
0a2d14 |
</pathelement>
|
|
|
0a2d14 |
<pathelement path="${classesdir}">
|
|
|
0a2d14 |
</pathelement>
|
|
|
0a2d14 |
</classpath>
|
|
|
0a2d14 |
<batchtest todir="${testreportdir}">
|
|
|
0a2d14 |
<fileset dir="src/java/test">
|
|
|
0a2d14 |
<include name="**/*Test.java">
|
|
|
0a2d14 |
</include>
|
|
|
0a2d14 |
</fileset>
|
|
|
0a2d14 |
</batchtest>
|
|
|
0a2d14 |
</junit>
|
|
|
0a2d14 |
</target>
|
|
|
0a2d14 |
<target name="junit-present" unless="Junit.present" depends="init">
|
|
|
0a2d14 |
<echo>================================= WARNING ================================</echo>
|
|
|
0a2d14 |
<echo>Junit isn't present in your ${ANT_HOME}/lib directory. Tests not executed.</echo>
|
|
|
0a2d14 |
<echo>==========================================================================</echo>
|
|
|
0a2d14 |
</target>
|
|
|
0a2d14 |
<target name="compile-tests" if="Junit.present" depends="junit-present,compile">
|
|
|
0a2d14 |
<mkdir dir="${testclassesdir}">
|
|
|
0a2d14 |
</mkdir>
|
|
|
0a2d14 |
<javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
|
|
|
0a2d14 |
<src>
|
|
|
0a2d14 |
<pathelement location="src/java/test">
|
|
|
0a2d14 |
</pathelement>
|
|
|
0a2d14 |
</src>
|
|
|
0a2d14 |
<classpath>
|
|
|
0a2d14 |
<path refid="build.classpath">
|
|
|
0a2d14 |
</path>
|
|
|
0a2d14 |
<pathelement path="${classesdir}">
|
|
|
0a2d14 |
</pathelement>
|
|
|
0a2d14 |
</classpath>
|
|
|
0a2d14 |
</javac>
|
|
|
0a2d14 |
</target>
|
|
|
0a2d14 |
<target name="javadoc" description="o Generate javadoc">
|
|
|
0a2d14 |
<mkdir dir="${javadocdir}">
|
|
|
0a2d14 |
</mkdir>
|
|
|
0a2d14 |
<tstamp>
|
|
|
0a2d14 |
<format pattern="2001-yyyy" property="year">
|
|
|
0a2d14 |
</format>
|
|
|
0a2d14 |
</tstamp>
|
|
|
0a2d14 |
<property name="copyright" value="Copyright © 2001-2007 Codehaus. All Rights Reserved.">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<property name="title" value="jaxen 1.1.3 API">
|
|
|
0a2d14 |
</property>
|
|
|
0a2d14 |
<javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java/main" packagenames="org.jaxen.*">
|
|
|
0a2d14 |
<classpath>
|
|
|
0a2d14 |
<path refid="build.classpath">
|
|
|
0a2d14 |
</path>
|
|
|
0a2d14 |
</classpath>
|
|
|
0a2d14 |
</javadoc>
|
|
|
0a2d14 |
</target>
|
|
|
0a2d14 |
</project>
|