208 lines
6.5 KiB
Diff
208 lines
6.5 KiB
Diff
diff --git a/build.xml b/build.xml
|
|
index 3c48ef3..5b772fb 100644
|
|
--- a/build.xml
|
|
+++ b/build.xml
|
|
@@ -1,180 +1,30 @@
|
|
-<?xml version="1.0"?>
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
-<project name="cli" default="maven:jar" basedir=".">
|
|
+<project default="dist" name="commons-cli" basedir=".">
|
|
|
|
- <!-- Give user a chance to override without editing this file
|
|
- (and without typing -D each time they invoke a target) -->
|
|
+ <property name="defaulttargetdir" value="target"></property>
|
|
+ <property name="classesdir" value="target/classes"></property>
|
|
+ <property name="final.name" value="commons-cli-1.0-beta-2-dev"></property>
|
|
|
|
- <!-- Allow any user specific values to override the defaults -->
|
|
- <property file="${user.home}/build.properties" />
|
|
-
|
|
- <!-- Allow user defaults for this project -->
|
|
- <property file="build.properties" />
|
|
-
|
|
- <!-- Set default values for the build -->
|
|
- <property file="project.properties" />
|
|
-
|
|
- <!-- maven:start -->
|
|
-
|
|
- <!-- ================================================================== -->
|
|
- <!-- D E L E G A T O R S -->
|
|
- <!-- ================================================================== -->
|
|
-
|
|
- <target name="maven:gump-descriptor">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="gump-descriptor"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:maven-update">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="maven-update"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:update-jars">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="update-jars"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:jar">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="jar"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:docs-quick">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="docs-quick"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:run-singletest">
|
|
- <ant antfile="${maven.home}/plugins/test/build.xml" target="run-singletest"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:compile">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="compile"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:jar-resources">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="jar-resources"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:fo">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="fo"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:cvs-change-log">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="cvs-change-log"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:war">
|
|
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="war"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:generate-reactor">
|
|
- <ant antfile="${maven.home}/build-reactor.xml" target="generate-reactor"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:cross-ref">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="cross-ref"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:deploy-site">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="deploy-site"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:ear">
|
|
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="ear"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:install-jar">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="install-jar"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:task-list">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="task-list"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:docs">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="docs"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:site">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="site"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:deploy-dist">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="deploy-dist"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:javadocs">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="javadocs"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:announce">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="announce"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:check-source">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="check-source"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:dist">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="dist"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:dist-build">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="dist-build"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:metrics">
|
|
- <ant antfile="${maven.home}/plugins/metrics/build.xml" target="metrics"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:clean">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="clean"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:env">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="env"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:test">
|
|
- <ant antfile="${maven.home}/plugins/test/build.xml" target="test"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:pdf">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="pdf"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:iutest">
|
|
- <ant antfile="${maven.home}/plugins/iutest/build.xml" target="iutest"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:activity-log">
|
|
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="activity-log"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:verify-project">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="verify-project"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:validate-pom">
|
|
- <ant antfile="${maven.home}/plugins/core/build.xml" target="validate-pom"/>
|
|
- </target>
|
|
-
|
|
- <target name="maven:validate-war">
|
|
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="validate-war"/>
|
|
- </target>
|
|
-
|
|
+ <target name="jar" description="o Create the jar">
|
|
|
|
- <!-- maven:end -->
|
|
+ <mkdir dir="${classesdir}"></mkdir>
|
|
|
|
-<!-- ========== Helper Targets ============================================ -->
|
|
+ <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
|
|
+ <src>
|
|
+ <pathelement location="src/java"></pathelement>
|
|
+ </src>
|
|
+ </javac>
|
|
|
|
- <target name="clean" depends="maven:clean">
|
|
- <delete file="velocity.log"/>
|
|
- </target>
|
|
-
|
|
- <target name="site" depends="maven:site"/>
|
|
-
|
|
- <target name="test" depends="maven:test"/>
|
|
-
|
|
- <target name="compile" depends="maven:compile, maven:jar-resources"/>
|
|
|
|
- <target name="dist" depends="maven:dist-build"/>
|
|
-
|
|
+ <jar jarfile="target/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}"></jar>
|
|
+
|
|
+ </target>
|
|
+
|
|
+ <target name="dist" description="o Create a distribution" depends="jar">
|
|
+ <mkdir dir="dist"></mkdir>
|
|
+ <copy todir="dist">
|
|
+ <fileset dir="${defaulttargetdir}"></fileset>
|
|
+ </copy>
|
|
+ </target>
|
|
</project>
|