geirm 01/05/07 15:28:13
Added: jjar/examples/ant-task README.txt build.xml
Log:
initial commit
Revision Changes Path
1.1 jakarta-commons-sandbox/jjar/examples/ant-task/README.txt
Index: README.txt
===================================================================
Simple test of how it will work with ant.
FIRST : build the jjar.jar and bring it
here... the build.xml expects it to be
local
Right now, the support is very simple - just gets a jar
from the repository, and any dependencies, and throws
into the 'local repository'.
When I figure out how to support getting a classpath from
ant, I will test the 'verify ignore' feature that
checks for a package/version in the classpath (or a dir, jar...)
and doesn't do the fetch if it exists.
1.1 jakarta-commons-sandbox/jjar/examples/ant-task/build.xml
Index: build.xml
===================================================================
<project name="JJARTest" default="test" basedir=".">
<property name="repository" value="repository" />
<!-- define the jjar target -->
<taskdef name="jjar"
classname="org.apache.commons.jjar.JJARTask">
<classpath>
<pathelement location="jjar.jar"/>
</classpath>
</taskdef>
<!-- simple test : get velocity - has a few dependencies -->
<target name="test" depends="testsimple, testverify">
</target>
<target name="testsimple">
<jjar package="ant" localrepository="${repository}" />
</target>
<target name="testverify">
<echo>
Adding jars in repository to classpath to test if they are skipped.
</echo>
<jjar package="velocity" verifyignore="true" localrepository="${repository}" >
</jjar>
</target>
</project>