diff options
author | Ralph Sennhauser <sera@gentoo.org> | 2012-06-17 15:20:15 +0000 |
---|---|---|
committer | Ralph Sennhauser <sera@gentoo.org> | 2012-06-17 15:20:15 +0000 |
commit | d2d2957f7815eaec9a9d8f9ba5ff732342584a45 (patch) | |
tree | 77afafa26bb648a36a143c8ff07c0590c9b28959 /dev-java/jformatstring/files | |
parent | Remove old (diff) | |
download | gentoo-2-d2d2957f7815eaec9a9d8f9ba5ff732342584a45.tar.gz gentoo-2-d2d2957f7815eaec9a9d8f9ba5ff732342584a45.tar.bz2 gentoo-2-d2d2957f7815eaec9a9d8f9ba5ff732342584a45.zip |
Add build.xml and fix various QA issues. #364915
(Portage version: 2.1.10.62/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/jformatstring/files')
-rw-r--r-- | dev-java/jformatstring/files/build.xml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-java/jformatstring/files/build.xml b/dev-java/jformatstring/files/build.xml new file mode 100644 index 000000000000..68cb8b6b86a5 --- /dev/null +++ b/dev-java/jformatstring/files/build.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- author: Ralph Sennhauser --> +<project name="jformatstring" default="jar"> + + <property name="junit.jar" value="lib/junit.jar"/> + + <target name="clean"> + <delete dir="build"/> + </target> + + <target name="compile"> + <mkdir dir="build/classes"/> + <javac srcdir="src/java" + destdir="build/classes" + encoding="UTF-8" + includeantruntime="false"> + </javac> + </target> + + <target name="jar" depends="compile"> + <jar destfile="build/${ant.project.name}.jar"> + <fileset dir="build/classes"/> + </jar> + </target> + + <target name="javadoc"> + <mkdir dir="build/javadoc"/> + <javadoc destdir="build/javadoc" + encoding="UTF-8"> + <fileset dir="src/java"/> + </javadoc> + </target> + + <target name="compile-tests" depends="jar"> + <mkdir dir="build/test-classes"/> + <javac srcdir="src/junit" + destdir="build/test-classes" + encoding="UTF-8" + includeantruntime="false"> + <classpath> + <fileset file="build/${ant.project.name}.jar"/> + <fileset file="${junit.jar}"/> + </classpath> + </javac> + </target> + + <target name="test" depends="compile-tests"> + <mkdir dir="build/test-results"/> + <junit haltonfailure="true" printsummary="on"> + <classpath> + <fileset file="build/${ant.project.name}.jar"/> + <pathelement location="build/test-classes"/> + </classpath> + <batchtest todir="build/test-results"> + <fileset dir="build/test-classes"/> + <formatter type="xml"/> + </batchtest> + </junit> + </target> +</project> |