You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bo...@apache.org on 2005/12/07 21:47:21 UTC

svn commit: r354853 - /jakarta/commons/sandbox/openpgp/trunk/build.xml

Author: bodewig
Date: Wed Dec  7 12:47:15 2005
New Revision: 354853

URL: http://svn.apache.org/viewcvs?rev=354853&view=rev
Log:
minimal Ant build file

Added:
    jakarta/commons/sandbox/openpgp/trunk/build.xml   (with props)

Added: jakarta/commons/sandbox/openpgp/trunk/build.xml
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/openpgp/trunk/build.xml?rev=354853&view=auto
==============================================================================
--- jakarta/commons/sandbox/openpgp/trunk/build.xml (added)
+++ jakarta/commons/sandbox/openpgp/trunk/build.xml Wed Dec  7 12:47:15 2005
@@ -0,0 +1,86 @@
+<?xml version="1.0"?>
+
+<!--
+  =======================================================================
+   Minimal Apache Ant build file for commons-openpgp
+
+   Copyright (c) 2005 The Apache Software Foundation.  All rights
+   reserved.
+
+  =======================================================================
+-->
+<project name="commons-openpgp" default="jar" basedir=".">
+
+  <target name="properties">
+    <property name="build.target.dir" location="target"/>
+    <property name="build.classes.dir" location="${build.target.dir}/classes"/>
+    <property name="build.tests.dir"
+              location="${build.target.dir}/test-classes"/>
+
+    <property name="build.junit.fork" value="false"/>
+    <property name="build.junit.forkmode" value="once"/>
+    <property name="build.jar.basename" value="commons-openpgp"/>
+    <property name="build.jar.version" value="0.1"/>
+    <property name="build.jar.name"
+      value="${build.target.dir}/${build.jar.basename}-${build.jar.version}.jar"/>
+  </target>
+
+  <target name="setup" depends="properties">
+    <mkdir dir="${build.classes.dir}"/>
+    <mkdir dir="${build.tests.dir}"/>
+
+    <!-- feel free to get fancy using the Maven 2 Ant tasks, this is
+         just a placeholder for now -->
+    <path id="compilation-dependencies">
+    </path>
+    <path id="test-dependencies">
+    </path>
+  </target>
+
+  <target name="compile" depends="setup">
+    <javac srcdir="src/main/java" destdir="${build.classes.dir}"
+      source="1.3" target="1.3" debug="true">
+      <classpath refid="compilation-dependencies"/>
+    </javac>
+  </target>
+
+  <target name="compile-tests" depends="compile" unless="skip.tests!">
+    <javac srcdir="src/test/java" destdir="${build.tests.dir}"
+      source="1.3" target="1.3" debug="true">
+      <classpath id="test-classpath">
+        <path refid="compilation-dependencies"/>
+        <path refid="test-dependencies"/>
+        <pathelement location="${build.classes.dir}"/>
+      </classpath>
+    </javac>
+  </target>
+
+  <target name="test" depends="compile-tests" unless="skip.tests!">
+    <junit printsummary="false" haltonfailure="false"
+      fork="${build.junit.fork}" forkmode="${build.junit.forkmode}"
+      failureproperty="tests.failed">
+      <classpath>
+        <path refid="test-classpath"/>
+        <pathelement location="${build.tests.dir}"/>
+        <pathelement location="src/test/resources"/>
+      </classpath>
+
+      <formatter type="brief" usefile="false"/>
+
+      <batchtest>
+        <fileset dir="src/test/java"/>
+      </batchtest>
+    </junit>
+    <fail if="tests.failed">At least one test has failed.</fail>
+  </target>
+
+  <target name="jar" depends="test">
+    <jar destfile="${build.jar.name}">
+      <fileset dir="${build.classes.dir}"/>
+    </jar>
+  </target>
+
+  <target name="clean" depends="properties">
+    <delete dir="${build.target.dir}"/>
+  </target>
+</project>
\ No newline at end of file

Propchange: jakarta/commons/sandbox/openpgp/trunk/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org