diff options
author | Keri Harris <keri@gentoo.org> | 2006-10-06 22:12:31 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2006-10-06 22:12:31 +0000 |
commit | 7668b0e7122855438d8c895696186284a940380b (patch) | |
tree | 7b23dee40f77efb2edb06217cdc6289b5578e1e9 /dev-lang/tuprolog/files | |
parent | fixing dependency, solving bug #150179. (diff) | |
download | gentoo-2-7668b0e7122855438d8c895696186284a940380b.tar.gz gentoo-2-7668b0e7122855438d8c895696186284a940380b.tar.bz2 gentoo-2-7668b0e7122855438d8c895696186284a940380b.zip |
Add custom build.xml
(Portage version: 2.1.2_pre2-r5)
Diffstat (limited to 'dev-lang/tuprolog/files')
-rw-r--r-- | dev-lang/tuprolog/files/build.xml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-lang/tuprolog/files/build.xml b/dev-lang/tuprolog/files/build.xml new file mode 100644 index 000000000000..c2a5eb1c98fd --- /dev/null +++ b/dev-lang/tuprolog/files/build.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> + +<project name="tuprolog" 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="${ant.project.name}.jar"/> + + <property file="build.properties"/> + + <!-- init --> + <target name="init"> + <tstamp/> + <mkdir dir="${dist.dir}"/> + <mkdir dir="${build.dir}"/> + <mkdir dir="${docs.dir}"/> + </target> + + <!-- compile everything --> + <target name="compile" depends="init"> + <javac srcdir="${src.dir}" destdir="${build.dir}" classpath="${classpath}" source="1.3" target="1.4" encoding="ISO-8859-1" deprecation="on"/> + <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="${dist.dir}/${jarfile}" basedir="${build.dir}"/> + </target> + + <!-- generate javadocs --> + <target name="javadoc" depends="init"> + <javadoc sourcepath="${src.dir}" + packagenames="alice.*" + destdir="${docs.dir}" + author="true" + version="true" + use="true" + windowtitle="${ant.project.name} API" + encoding="ISO-8859-1" /> + </target> + + <!-- clean up --> + <target name="clean"> + <delete dir="${build.dir}"/> + <delete dir="${dist.dir}"/> + <delete dir="${docs.dir}"/> + </target> +</project> |