morgand 2003/01/14 09:37:55
Modified: latka build.xml
Log:
updated build script from latest Maven bootstrap
Revision Changes Path
1.38 +221 -645 jakarta-commons/latka/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/latka/build.xml,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- build.xml 9 Jul 2002 03:00:50 -0000 1.37
+++ build.xml 14 Jan 2003 17:37:55 -0000 1.38
@@ -1,658 +1,234 @@
-<!-- $Id$ -->
-<project name="commons-latka" default="build-java" basedir=".">
+<?xml version="1.0" encoding="UTF-8"?>
- <!-- patternset describing files to be copied from the doc directory -->
- <patternset id="patternset-doc">
- <exclude name="*.xml"/>
- </patternset>
-
- <!-- patternset describing test classes -->
- <patternset id="patternset-test-classes">
- <include name="**/Test*.class"/>
- </patternset>
-
- <!-- patternset describing non test classes -->
- <patternset id="patternset-non-test-classes">
- <exclude name="**/Test*.class"/>
- </patternset>
-
- <!-- patternset describing non test source files (*.java, *html, etc.) -->
- <patternset id="patternset-javadocable-sources">
- <include name="**/*"/>
- <exclude name="**/Test*.java"/>
- </patternset>
-
- <!-- ######################################################### -->
-
- <target name="init">
- <tstamp/>
-
- <!-- read properties from the build.properties, if any -->
- <property name="component-propfile" value="${basedir}/build.properties"/>
- <property file="${component-propfile}"/>
-
- <!-- read properties from the commons build.properties, if any -->
- <property name="commons-propfile" value="${basedir}/../build.properties"/>
- <property file="${commons-propfile}"/>
-
- <!-- read properties from the ${user.home}/propfile, if any -->
- <property name="user-propfile" value="${user.home}/build.properties"/>
- <property file="${user-propfile}"/>
-
- <!-- command line classpath, if any -->
- <property name="cp" value=""/>
-
- <!-- The name of this component -->
- <property name="component.name" value="latka"/>
- <!-- The primary package name of this component -->
- <property name="component.package" value="org.apache.commons.latka"/>
- <!-- The title of this component -->
- <property name="component.title" value="Latka Functional Testing Suite"/>
- <!-- The current version number of this component -->
- <property name="component.version" value="1.0-dev"/>
- <property name="name" value="commons-${component.name}"/>
-
- <property name="test.entry" value="org.apache.commons.latka.TestAll"/>
- <property name="test.failonerror" value="true" />
- <property name="test.runner" value="junit.textui.TestRunner" />
-
- <property name="workdir"
value="${java.io.tmpdir}/buildtemp_${DSTAMP}${TSTAMP}"/>
- <property name="source" value="${basedir}"/>
- <property name="source.src" value="${basedir}/src"/>
- <property name="source.props" value="${source.src}/resources"/> <!--
properties files -->
- <property name="source.src.java" value="${source.src}/java"/>
- <property name="source.src.test" value="${source.src}/test"/>
- <property name="source.doc" value="${source.src}/docbook"/>
- <property name="source.doc.xsl"
value="${source.src}/xsl/docbook/html/docbook.xsl"/>
- <property name="dest" value="${basedir}/target"/>
- <property name="dest.classes" value="${dest}/classes"/>
- <property name="dest.doc" value="${basedir}/docs"/>
- <property name="dest.doc.api" value="${dest.doc}/api"/>
- <property name="dist" value="${basedir}/dist"/>
- <property name="dist.docs" value="${dist}/docs"/>
- <property name="dist.docs.dtds" value="${dist.docs}/dtds/1.0"/>
- <property name="resource" value="${source.src}/resources"/>
- <!-- does this module have docs? -->
- <available property="available-doc" file="${source.doc}"/>
- <!-- does this module have java src? -->
- <available property="available-src-java" file="${source.src.java}"/>
- <!-- does this module have test src? -->
- <available property="available-src-test" file="${source.src.test}"/>
-
- <!-- properties for xdocs creation -->
- <property name="dest.xdocs" value="${dest}/generated-xdocs" />
- <property name="source.xdocs" value="${source.src}/xdocs"/>
- <property name="source.xsl.converter.docbook"
- value="${source.src}/xsl/site/docbook2document.xsl"/>
- <property name="source.xsl.converter.site"
- value="${source.src}/xsl/site/site.xsl"/>
-
- <!-- now combine the classpaths -->
- <path id="classpath">
- <pathelement path="${cp}"/>
- <pathelement location="${regexp.jar}"/>
- <pathelement location="${jaxp.jar}"/>
- <pathelement location="${jdom.jar}"/>
- <pathelement location="${jaxen.jar}"/>
- <pathelement location="${saxpath.jar}"/>
- <pathelement location="${log4j.jar}"/>
- <pathelement location="${httpclient.jar}"/>
- <pathelement location="${sax2.jar}"/>
- <pathelement location="${jnet.jar}"/>
- <pathelement location="${jsse.jar}"/>
- <pathelement location="${jcert.jar}"/>
- <pathelement location="${junit.jar}"/>
- <pathelement location="${source.props}"/>
- </path>
-
- <available property="jaxen.present"
- classname="org.jaxen.jdom.JDOMXPath">
- <!-- We need a jaxen with JDOM support -->
- <classpath refid="classpath"/>
- </available>
-
- <available property="jelly.present"
- classname="org.apache.commons.jelly.Jelly">
- <classpath refid="classpath"/>
- </available>
- <echo message="-------- ${component.name} ${component.version} --------"/>
-
- </target>
-
- <!-- #########################################################
-
- <target name="copy-javadoc-source" depends="init" if="available-src-java">
- <mkdir dir="${javadoc-source-dir}"/>
- <copy todir="${javadoc-source-dir}" filtering="no">
- <fileset dir="${source.src.java}">
- <patternset refid="patternset-javadocable-sources"/>
- </fileset>
- </copy>
- </target>
-
- <target name="copy-doc" depends="init" if="available-doc">
- <mkdir dir="${doc-source-dir}/${name}"/>
- <copy todir="${doc-source-dir}/${name}" filtering="no">
- <fileset dir="${source.doc}">
- <patternset refid="patternset-doc"/>
- </fileset>
- </copy>
- </target>
--->
- <!-- ######################################################### -->
-
- <target name="clean" depends="init,clean-dist"
- description="removes generated files">
- <delete dir="${dest}"/>
- </target>
-
- <target name="clean-doc" depends="init,clean-javadoc">
- <delete dir="${dest.doc}"/>
- </target>
-
- <target name="clean-javadoc" depends="init">
- <delete dir="${dest.doc.api}"/>
- </target>
-
- <target name="clean-build" depends="init">
- <delete dir="${dest.classes}"/>
- </target>
-
- <target name="clean-dist" depends="init">
- <delete dir="${dist}"/>
- </target>
-
- <!-- ######################################################### -->
-
- <target name="doc" depends="init,doc-top,doc-copy,doc-javadoc,doc-xslt"
- description="generates javadocs and other documentation">
- </target>
-
- <target name="doc-top" depends="init">
- <mkdir dir="${dest}"/>
- <copy todir="${dest}" file="../LICENSE"/>
- </target>
-
- <target name="doc-copy" depends="init" if="available-doc">
- <mkdir dir="${dest.doc}"/>
- <copy todir="${dest.doc}">
- <fileset dir="${source.doc}">
- <patternset refid="patternset-doc"/>
- </fileset>
- </copy>
- </target>
-
- <!-- FIXME: Update task to only run if java files are more recent
- than the current html, and work off original sources
- -->
- <target name="check-javadoc" depends="init">
- <condition property="javadoc-required">
- <and>
- <equals arg1="${available-src-java}" arg2="true"/>
- <not>
- <uptodate targetfile="${dest.doc.api}/packages.html">
- <srcfiles dir="${source.src.java}" includes="**/*.java" />
- </uptodate>
- </not>
- </and>
- </condition>
- </target>
-
- <target name="doc-javadoc" depends="init,check-javadoc" if="javadoc-required">
- <!-- copy all the non-test sources out to the work directory and javadoc
that -->
- <mkdir dir="${workdir}"/>
- <copy todir="${workdir}">
- <fileset dir="${source.src.java}">
- <patternset refid="patternset-javadocable-sources"/>
- </fileset>
- </copy>
- <mkdir dir="${dest.doc.api}"/>
- <javadoc packagenames="org.*"
- sourcepath="${workdir}"
- classpathref="classpath"
- destdir="${dest.doc.api}"
- windowtitle="${component.title}"
- doctitle="${component.title}"
- bottom="<small>Copyright &copy; 2001-2002 Apache
Software Foundation. Documenation generated ${TODAY}</small>."
- protected="true"
- version="true"
- author="true"
- splitindex="false"
- nodeprecated="true"
- nodeprecatedlist="true"
- notree="true"
- noindex="false"
- nohelp="true"
- nonavbar="false"
- serialwarn="false">
- </javadoc>
- <delete dir="${workdir}"/>
- </target>
-
- <target name="doc-xslt" depends="init">
- <!-- generate html from sourceforge docbook stylesheets
- <style basedir="${source.doc}" destdir="${dest.doc}"
- extension=".html" style="${source.doc.xsl}"
- includes="*.xml"/>
- -->
- <!-- generate html from docbook via site.xsl -->
- <mkdir dir="${dest.xdocs}/stylesheets"/>
-
- <!-- generate xdocs from docbook -->
- <style basedir="${source.doc}"
- destdir="${dest.xdocs}"
- extension=".xml"
- style="${source.xsl.converter.docbook}"
- includes="**/*.xml"/>
-
- <!-- copy across project.xml and site.xsl -->
- <copy todir="${dest.xdocs}/stylesheets">
- <fileset dir="${source.xdocs}">
- <include name="project.xml"/>
- </fileset>
- </copy>
- <copy todir="${dest.xdocs}/stylesheets">
- <fileset dir="${source.src}/xsl/site">
- <include name="site.xsl"/>
- </fileset>
- </copy>
-
- <!-- transform xdocs to html -->
- <style basedir="${dest.xdocs}"
- destdir="${dest.doc}"
- extension=".html"
- style="${dest.xdocs}/stylesheets/site.xsl"
- includes="*.xml"/>
-
- </target>
-
- <!-- ######################################################### -->
-
- <target name="build" depends="init,build-java"
- description="compiles source files"/>
-
- <!-- Parametrize these ala Cocoon if we get any more validators with jar
- deps
- -->
- <target name="jaxen-warn" unless="jaxen.present">
- <echo>
- ***************************************************
- WARNING: XPath validator not built
-
- Property: $${jaxen.jar}
- Current value: ${jaxen.jar}
-
- If you wish to build this validator, please fix the
- above property in your build.properties file
- ***************************************************
- </echo>
- </target>
-
- <target name="build-java" depends="init, jaxen-warn" if="available-src-java">
- <mkdir dir="${dest.classes}"/>
- <javac destdir="${dest.classes}"
- srcdir="${source.src.java}"
- classpathref="classpath"
- debug="false"
- deprecation="true"
- optimize="true">
- <exclude name="**/XPath*.java" unless="jaxen.present"/>
- <exclude name="**/jelly/**" unless="jelly.present"/>
- <exclude name="**/servlet/*.java"/>
- </javac>
- <copy todir="${dest.classes}">
- <fileset dir="${resource}"/>
- </copy>
- </target>
-
- <target name="build-test" depends="init,build-java" if="available-src-test">
- <mkdir dir="${dest.classes}"/>
- <javac destdir="${dest.classes}"
- srcdir="${source.src.test}"
- classpathref="classpath"
- debug="false"
- deprecation="true"
- optimize="true">
- <exclude name="**/jelly/**" unless="jelly.present"/>
- </javac>
- </target>
-
- <!-- ######################################################### -->
-
- <target name="test" depends="build-test" if="test.entry" description="runs
(junit) unit tests">
-<!-- <junit printsummary="yes" fork="on" haltonfailure="yes">
- <formatter type="plain" usefile="false"/>
- <test name="${test.entry}"/>
- <sysproperty key="basedir" value="${basedir}"/>
- <classpath>
- <pathelement location="${dest.classes}" />
- <path refid="classpath"/>
- <pathelement path="${java.class.path}" />
- </classpath>
- </junit>
- -->
-
- <java classname="${test.runner}" fork="yes"
failonerror="${test.failonerror}">
- <arg value="${test.entry}"/>
- <sysproperty key="basedir" value="${basedir}"/>
- <classpath>
- <pathelement location="${dest.classes}" />
- <path refid="classpath"/>
- <pathelement path="${java.class.path}" />
- </classpath>
- </java>
- </target>
-
- <!-- ######################################################### -->
-
- <target name="dist" depends="jar,doc"
- description="builds binary distribution">
-
- <copy file="../LICENSE" todir="${dist}"/>
- <!-- need to copy docs directory from build to dist here
- The following stolen from the webpages target
- -->
- <mkdir dir="${dist.docs}" />
- <copy todir="${dist.docs}">
- <fileset dir="${dest.doc}">
- <include name="**/*"/>
- </fileset>
- </copy>
- <!-- copy dtds and entities-->
- <mkdir dir="${dist.docs.dtds}" />
- <copy todir="${dist.docs.dtds}">
- <fileset dir="${source.src}/distribution/conf">
- <include name="**/*.dtd"/>
- <include name="**/*.ent"/>
- </fileset>
- </copy>
- </target>
-
- <target name="jar" depends="build">
- <mkdir dir="${dist}"/>
- <mkdir dir="${workdir}"/>
- <copy todir="${workdir}">
- <fileset dir="${dest.classes}">
- <patternset refid="patternset-non-test-classes"/>
- </fileset>
- </copy>
- <jar jarfile="${dist}/commons-${component.name}-${component.version}.jar">
- <fileset dir="${workdir}"/>
- </jar>
- <delete dir="${workdir}"/>
- </target>
-
- <!-- ######################################################### -->
-
- <!--
- build the directory that is a shadow of
- jakarta.apache.org/commons/latka
- -->
- <target name="webpages" depends="init, doc"
- description="create web site documentation">
- <!-- this is jakarta-commons/docs/latka -->
- <property name="dest.webpages" value="${basedir}/../docs/latka"/>
- <!-- copy across docs and sample -->
- <copy todir="${dest.webpages}">
- <fileset dir="${dest.doc}">
- <include name="**/*"/>
- </fileset>
- </copy>
- <!-- copy dtds and entities-->
- <copy todir="${dest.webpages}/dtds/1.0">
- <fileset dir="${source.src}/distribution/conf">
- <include name="**/*.dtd"/>
- <include name="**/*.ent"/>
- </fileset>
- </copy>
- </target>
-
- <!-- ######################################################### -->
-
- <target name="check-checkstyle" depends="init">
- <condition property="available-checkstyle">
- <and>
- <available file="${antlr.jar}"/>
- <available file="${checkstyle.jar}"/>
- <available file="${regexp.jar}"/>
- </and>
- </condition>
- </target>
-
- <target name="checkstyle" depends="init,check-checkstyle"
- description="Check source code meets project standards"
- if="available-checkstyle">
- <taskdef name="checkstyle"
- classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
- <classpath>
- <pathelement location="${checkstyle.jar}" />
- <pathelement location="${regexp.jar}" />
- <pathelement location="${antlr.jar}" />
- </classpath>
- </taskdef>
-
- <checkstyle memberPattern="^_[a-z][a-zA-Z0-9]*$" allowProtected="true"
ignoreWhitespace="true">
- <fileset dir="${source.src.java}" includes="**/*.java"/>
- </checkstyle>
- </target>
-
- <!-- ######################################################### -->
-
- <target name="fetch-runtime-jars" depends="init"
- description="Fetch any jar files required for running latka into the
lib directory">
- <property name="gump.jars" value="http://gump.covalent.net/jars/latest"/>
- <get src="${gump.jars}/xml-commons/xml-apis.jar" dest="lib/jaxp.jar"
- usetimestamp="true"/>
- <!-- no crimson, jsse, jnet, jcert. Using xerces2 for crimson -->
- <get src="${gump.jars}/jakarta-log4j/log4j-${DSTAMP}.jar"
dest="lib/log4j.jar"
- usetimestamp="true"/>
- <get src="${gump.jars}/jakarta-commons/commons-httpclient.jar"
- dest="lib/commons-httpclient.jar"
- usetimestamp="true"/>
- <get src="${gump.jars}/jakarta-commons/commons-latka.jar"
- dest="lib/commons-latka.jar"
- usetimestamp="true"/>
- <get src="${gump.jars}/jakarta-regexp/jakarta-regexp-${DSTAMP}.jar"
- dest="lib/jakarta-regexp.jar"
- usetimestamp="true"/>
- <get src="${gump.jars}/jdom/jdom.jar" dest="lib/jdom.jar"
- usetimestamp="true"/>
- <get src="${gump.jars}/xml-xalan/xalan.jar" dest="lib/xalan2.jar"
- usetimestamp="true"/>
- <get src="http://prdownloads.sourceforge.net/sax/sax2r2.jar"
- dest="lib/sax2.jar"
- usetimestamp="true"/>
- <get src="${gump.jars}/xml-xerces2/xercesImpl.jar" dest="lib/crimson.jar"
- usetimestamp="true"/>
- </target>
-
- <!-- 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:iutest">
- <ant antfile="${maven.home}/plugins/iutest/build.xml" target="iutest"/>
- </target>
-
-
- <target name="maven:update-jars">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="update-jars"/>
- </target>
-
-
- <target name="maven:docs">
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="docs"/>
- </target>
-
-
- <target name="maven:cvs-change-log">
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="cvs-change-log"/>
- </target>
-
-
- <target name="maven:compile">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="compile"/>
- </target>
-
-
- <target name="maven:pdf">
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="pdf"/>
- </target>
-
-
- <target name="maven:validate-war">
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="validate-war"/>
- </target>
-
-
- <target name="maven:env">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="env"/>
- </target>
-
-
- <target name="maven:deploy-site">
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="deploy-site"/>
- </target>
-
-
- <target name="maven:gump-descriptor">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="gump-descriptor"/>
- </target>
-
-
- <target name="maven:announce">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="announce"/>
- </target>
-
-
- <target name="maven:install-jar">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="install-jar"/>
- </target>
-
-
- <target name="maven:war">
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="war"/>
- </target>
-
-
- <target name="maven:task-list">
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="task-list"/>
- </target>
-
-
- <target name="maven:dist">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="dist"/>
- </target>
-
-
- <target name="maven:javadocs">
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="javadocs"/>
- </target>
-
-
- <target name="maven:run-singletest">
- <ant antfile="${maven.home}/plugins/test/build.xml" target="run-singletest"/>
- </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:validate-pom">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="validate-pom"/>
- </target>
-
-
- <target name="maven:ear">
- <ant antfile="${maven.home}/plugins/j2ee/build.xml" target="ear"/>
- </target>
-
-
- <target name="maven:test">
- <ant antfile="${maven.home}/plugins/test/build.xml" target="test"/>
- </target>
-
-
- <target name="maven:deploy-dist">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="deploy-dist"/>
- </target>
-
-
- <target name="maven:maven-update">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="maven-update"/>
- </target>
-
-
- <target name="maven:generate-reactor">
- <ant antfile="${maven.home}/plugins/reactor/build.xml"
target="generate-reactor"/>
- </target>
-
-
- <target name="maven:clean">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="clean"/>
- </target>
-
-
- <target name="maven:fo">
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="fo"/>
- </target>
-
-
- <target name="maven:dist-build">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="dist-build"/>
- </target>
-
-
- <target name="maven:site">
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="site"/>
- </target>
-
-
- <target name="maven:activity-log">
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="activity-log"/>
- </target>
+<project default="jar" name="commons-latka" basedir=".">
+
+ <property name="defaulttargetdir" value="target"></property>
+ <property name="classesdir" value="target/classes"></property>
+ <property name="testclassesdir" value="target/test-classes"></property>
+ <property name="testreportdir" value="target/test-reports"></property>
+
+
+
+
+
+
+
+
+ <property name="resourcedir"
value="c:\cvsrep\jakarta-commons\latka/src/resources"></property>
+
+ <property name="distdir" value="dist"></property>
+ <property name="javadocdir" value="target/docs/apidocs"></property>
+ <property name="final.name" value="commons-latka-1.0-dev"></property>
+
+ <target name="init" description="o Initializes some properties">
+ <mkdir dir="lib"></mkdir>
+ <condition property="noget">
+ <equals arg2="only" arg1="${build.sysclasspath}"></equals>
+ </condition>
+ </target>
+
+ <target name="compile" description="o Compile the code" depends="get-deps">
+
+ <mkdir dir="${classesdir}"></mkdir>
+
+ <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false"
excludes="**/package.html">
+ <src>
+ <pathelement location="src/java"></pathelement>
+ </src>
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar"></include>
+ </fileset>
+ </classpath>
+ </javac>
+
+
+
+
+ <copy todir="${classesdir}">
+
+
+
+
+ <fileset dir="src/resources">
+
+
+ <include name="**/*latka*"></include>
+
+ <include name="*.properties"></include>
+
+
+ </fileset>
+ </copy>
+
+
+
+
+
+
+ <copy todir="${testclassesdir}">
+
+
+
+
+ <fileset dir="src/test">
+
+
+ <include name="**/*.jelly"></include>
+
+
+ </fileset>
+ </copy>
+
+
+ </target>
+
+ <target name="jar" description="o Create the jar" depends="compile,test">
- <target name="maven:cross-ref">
- <ant antfile="${maven.home}/plugins/docs/build.xml" target="cross-ref"/>
- </target>
+ <jar jarfile="target/${final.name}.jar" excludes="**/package.html"
basedir="${classesdir}"></jar>
+ </target>
+
+ <target name="clean" description="o Clean up the generated directories">
+ <delete dir="${defaulttargetdir}"></delete>
+ <delete dir="${distdir}"></delete>
+ </target>
+
+ <target name="dist" description="o Create a distribution" depends="jar, javadoc">
+ <mkdir dir="dist"></mkdir>
+ <copy todir="dist">
+ <fileset dir="${defaulttargetdir}"></fileset>
+ </copy>
+ </target>
+
+ <target name="test" description="o Run the test cases" if="test.failure"
depends="internal-test">
+ <fail message="There were test failures."></fail>
+ </target>
+ <target name="internal-test" depends="compile-tests">
+
+ <mkdir dir="${testreportdir}"></mkdir>
+ <junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true"
haltonerror="true">
+
+ <sysproperty key="basedir" value="."></sysproperty>
+ <formatter type="xml"></formatter>
+ <formatter usefile="false" type="plain"></formatter>
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar"></include>
+ </fileset>
+ <pathelement path="${testclassesdir}"></pathelement>
+ <pathelement path="${classesdir}"></pathelement>
+ </classpath>
+ <batchtest todir="${testreportdir}">
+ <fileset dir="src/test">
+
+ <include name="**/Test*.java"></include>
+
+
+ <exclude name="**/TestAll.java"></exclude>
+
+
+
+
+ </fileset>
+ </batchtest>
+ </junit>
+
+ </target>
+
+ <target name="compile-tests" depends="compile">
+
+ <mkdir dir="${testclassesdir}"></mkdir>
+ <javac destdir="${testclassesdir}" deprecation="true" debug="true"
optimize="false" excludes="**/package.html">
+ <src>
+ <pathelement location="src/test"></pathelement>
+ </src>
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar"></include>
+ </fileset>
+ <pathelement path="${classesdir}"></pathelement>
+ </classpath>
+ </javac>
- <target name="maven:verify-project">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="verify-project"/>
- </target>
+
+
+
+
+ </target>
+ <target name="javadoc" description="o Generate javadoc" depends="jar">
+
+
+ <mkdir dir="${javadocdir}"></mkdir>
+
+
+ <tstamp>
+ <format pattern="2002-yyyy" property="year"></format>
+ </tstamp>
+
+ <property name="copyright" value="Copyright &copy; Apache Software
Foundation. All Rights Reserved."></property>
+
+ <property name="title" value="Latka 1.0-dev API"></property>
+
+ <javadoc use="true" private="true" destdir="${javadocdir}" author="true"
version="true" sourcepath="src/java" packagenames="org.apache.commons.latka.*">
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar"></include>
+ </fileset>
+ <pathelement location="target/${final.name}.jar"></pathelement>
+ </classpath>
+ </javadoc>
+
+ </target>
- <target name="maven:metrics">
- <ant antfile="${maven.home}/plugins/metrics/build.xml" target="metrics"/>
- </target>
+ <target name="get-deps" unless="noget" depends="init">
+
+
+ <get dest="lib/ant-1.5.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar"></get>
+ <get dest="lib/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar"></get>
+ <get dest="lib/commons-httpclient-2.0alpha1-20020829.jar" usetimestamp="true"
ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-httpclient/jars/commons-httpclient-2.0alpha1-20020829.jar"></get>
+ <get dest="lib/commons-jelly-SNAPSHOT.jar" usetimestamp="true"
ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-SNAPSHOT.jar"></get>
+ <get dest="lib/commons-logging-1.0.1.jar" usetimestamp="true"
ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.1.jar"></get>
+ <get dest="lib/jaxen-1.0-FCS-full.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/jaxen/jars/jaxen-1.0-FCS-full.jar"></get>
+ <get dest="lib/jdom-b7.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/jdom/jars/jdom-b7.jar"></get>
+ <get dest="lib/dom4j-1.4-dev-7.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/dom4j/jars/dom4j-1.4-dev-7.jar"></get>
+ <get dest="lib/junit-3.8.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.jar"></get>
+ <get dest="lib/log4j-1.2.4.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/log4j/jars/log4j-1.2.4.jar"></get>
+ <get dest="lib/regexp-1.2.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/regexp/jars/regexp-1.2.jar"></get>
+ <get dest="lib/saxpath-1.0-FCS.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/saxpath/jars/saxpath-1.0-FCS.jar"></get>
+ <get dest="lib/servletapi-2.2.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.2.jar"></get>
+ <get dest="lib/xalan-2.3.1.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/xalan/jars/xalan-2.3.1.jar"></get>
+ <get dest="lib/xerces-2.0.0.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/xerces/jars/xerces-2.0.0.jar"></get>
+ <get dest="lib/xml-apis-1.0.b2.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-1.0.b2.jar"></get>
+ <get dest="lib/commons-collections-2.0.jar" usetimestamp="true"
ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.0.jar"></get>
+ <get dest="lib/commons-beanutils-1.4.1.jar" usetimestamp="true"
ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.4.1.jar"></get>
+ <get dest="lib/commons-jexl-1.0-beta-1.jar" usetimestamp="true"
ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-jexl/jars/commons-jexl-1.0-beta-1.jar"></get>
+
+ <get dest="lib/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar"></get>
+ <get dest="lib/ant-1.5.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar"></get>
+ <get dest="lib/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar"></get>
+ </target>
+
+
+
+
+
+
+
+
- <target name="maven:check-source">
- <ant antfile="${maven.home}/plugins/core/build.xml" target="check-source"/>
- </target>
+ <target name="install-maven">
+
- <target name="maven:validate-struts-war">
- <ant antfile="${maven.home}/plugins/struts/build.xml"
target="validate-struts-war"/>
- </target>
- <!-- maven:end -->
+ <get dest="${user.home}/maven-install-latest.jar" usetimestamp="true"
src="${maven.repo.remote}/maven/maven-install-latest.jar"></get>
+
+ <unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar"></unjar>
+
+ </target>
</project>
+
\ No newline at end of file
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>