diff options
Diffstat (limited to 'dev-java/xerces/files/xerces-1.3.1-build.xml')
-rw-r--r-- | dev-java/xerces/files/xerces-1.3.1-build.xml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-java/xerces/files/xerces-1.3.1-build.xml b/dev-java/xerces/files/xerces-1.3.1-build.xml new file mode 100644 index 000000000000..d688a62057ce --- /dev/null +++ b/dev-java/xerces/files/xerces-1.3.1-build.xml @@ -0,0 +1,64 @@ +<?xml version="1.0"?> + +<project name="xerces" default="jar"> + <!-- some properties --> + <property name="src.dir" value="src" /> + <property name="build.dir" value="build" /> + <property name="docs.dir" value="docs" /> + <property name="dist.dir" value="dist" /> + <property name="jarfile" value="${dist.dir}/xerces.jar" /> + <property name="target.jdk" value="1.3" /> + + <!-- init --> + <target name="init"> + <mkdir dir="${dist.dir}" /> + <mkdir dir="${build.dir}" /> + <mkdir dir="${docs.dir}" /> + </target> + + <!-- compile everything --> + <target name="compile" depends="init"> + <mkdir dir="${build.dir}" /> + <javac srcdir="${src.dir}" + destdir="${build.dir}" + source="${target.jdk}" + target="${target.jdk}" /> + + <copy todir="${build.dir}"> + <fileset dir="${src.dir}"> + <exclude name="**/*.java" /> + </fileset> + </copy> + </target> + + <!-- build the jar file --> + <target name="jar" depends="compile"> + <jar jarfile="${jarfile}" basedir="${build.dir}" /> + </target> + + <!-- generate javadocs --> + <target name="docs" depends="init"> + <javadoc sourcepath="${src.dir}" + packagenames="org.* , javax.*" + destdir="${docs.dir}" + author="true" + version="true" + use="true" + windowtitle="${ant.project.name} API" /> + </target> + + <!-- clean up --> + <target name="clean"> + <delete dir="${build.dir}" /> + <delete dir="${docs.dir}" /> + <delete dir="${dist.dir}" /> + </target> + + <!-- zip the sources --> + <target name="sourcezip"> + <zip destfile="${dist.dir}/${ant.project.name}-src.zip"> + <zipfileset dir="${src.dir}" /> + </zip> + </target> + +</project> |