jon 01/08/21 12:39:16 Modified: jpath build.xml Log: break up things so that a .jar file can be built without having to build the freaking javadocs. added an install-jar target -jon Revision Changes Path 1.3 +32 -8 jakarta-commons-sandbox/jpath/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/jpath/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- build.xml 2001/08/21 19:30:34 1.2 +++ build.xml 2001/08/21 19:39:16 1.3 @@ -3,7 +3,7 @@ <!-- "JPath" component of the Jakarta Commons Subproject - $Id: build.xml,v 1.2 2001/08/21 19:30:34 jon Exp $ + $Id: build.xml,v 1.3 2001/08/21 19:39:16 jon Exp $ --> @@ -24,6 +24,10 @@ <!-- The current version number of this component --> <property name="component.version" value="0.1-dev"/> + <!-- The jar name of this component --> + <property name="jar.name" + value="commons-${component.name}-${component.version}.jar"/> + <!-- The base directory for compilation targets --> <property name="build.home" value="target"/> @@ -228,26 +232,46 @@ bottom="Copyright (c) 2001 - Apache Software Foundation"/> </target> + <!-- ================================================================== --> + <!-- J A R --> + <!-- ================================================================== --> + <target name="jar" description="Build jar"> + <mkdir dir="${dist.home}"/> + <jar jarfile="${dist.home}/${jar.name}" + basedir="${build.home}/classes" + manifest="${build.home}/conf/MANIFEST.MF"/> + </target> + + <!-- ================================================================== --> + <!-- I N S T A L L J A R --> + <!-- ================================================================== --> + + <target name="install-jar" depends="jar" + description="==> Installs .jar file in ${lib.repo}"> + <copy todir="${lib.repo}" filtering="no"> + <fileset dir="${dist.home}"> + <include name="${jar.name}"/> + </fileset> + </copy> + </target> - <target name="dist" depends="compile,javadoc" + <!-- ================================================================== --> + <!-- D I S T --> + <!-- ================================================================== --> + + <target name="dist" depends="compile,jar,javadoc" description="Create binary distribution"> <mkdir dir="${dist.home}"/> <copy file="../LICENSE" todir="${dist.home}"/> - <jar jarfile="${dist.home}/commons-${component.name}.jar" - basedir="${build.home}/classes" - manifest="${build.home}/conf/MANIFEST.MF"/> </target> - <!-- ========== Unit Test Targets ========================================= --> - <target name="test" depends="compile.tests, test.jpath" description="Run all unit test cases"> </target> - <target name="test.jpath"> <echo message="Running JPath tests ..."/>