summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2009-02-05 00:22:59 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2009-02-05 00:22:59 +0000
commit7fe9eeecebf6cad9f606ba2224e567e131596d28 (patch)
tree4ad8d90fc1f22d501904ead9fa6aeec17e678824 /dev-java/jettison/files
parentMarking libmsn-4.0_beta4 ~ppc for bug 257114 (diff)
downloadhistorical-7fe9eeecebf6cad9f606ba2224e567e131596d28.tar.gz
historical-7fe9eeecebf6cad9f606ba2224e567e131596d28.tar.bz2
historical-7fe9eeecebf6cad9f606ba2224e567e131596d28.zip
Initial addition from java-experimental. Fixes bug #257512. Ebuild written by Mike Weissman <mike@weisso.com>.
Package-Manager: portage-2.2_rc20/cvs/Linux 2.6.28-gentoo i686
Diffstat (limited to 'dev-java/jettison/files')
-rw-r--r--dev-java/jettison/files/build.xml63
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-java/jettison/files/build.xml b/dev-java/jettison/files/build.xml
new file mode 100644
index 000000000000..b6b95dff7a2a
--- /dev/null
+++ b/dev-java/jettison/files/build.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+
+<project name="jettison" default="jar" basedir=".">
+ <!-- some properties -->
+ <property name="src.dir" value="org/codehaus/jettison" />
+ <property name="build.dir" value="build" />
+ <property name="docs.dir" value="docs" />
+ <property name="lib.dir" value="lib"/>
+ <property name="dist.dir" value="dist" />
+ <property name="jarfile" value="${dist.dir}/jettison.jar" />
+ <property name="pkg" value="${package.name}"/>
+ <property name="target.jdk" value="1.5" />
+
+
+ <available file="${lib}" type="dir" property="libdir.exists"/>
+
+
+ <!-- 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">
+ <mkdir dir="${build.dir}" />
+ <javac srcdir="${src.dir}"
+ destdir="${build.dir}"
+ source="${target.jdk}"
+ target="${target.jdk}"
+ classpath="${gentoo.classpath}">
+ </javac>
+ </target>
+
+ <!-- build the jar file -->
+ <target name="jar" depends="compile">
+ <jar jarfile="${jarfile}" basedir="${build.dir}" />
+ </target>
+
+ <!-- generate javadocs -->
+ <target name="javadoc" depends="compile">
+ <javadoc packagenames="org.*"
+ sourcepath="${src.dir}"
+ defaultexcludes="yes"
+ destdir="./${docs.dir}"
+ author="true"
+ version="true"
+ use="true"
+ windowtitle="${ant.project.name} API" >
+ <fileset dir="${src.dir}"/>
+ </javadoc>
+ </target>
+
+ <!-- clean up -->
+ <target name="clean">
+ <delete dir="${build.dir}" />
+ <delete dir="${docs.dir}" />
+ <delete dir="${dist.dir}" />
+ </target>
+
+</project>