jvanzyl 02/02/17 16:22:16
Modified: . Tag: rundata_security_changes build.xml
Log:
- cleaning up and documenting a bit
Revision Changes Path
No revision
No revision
1.20.2.18 +33 -30 jakarta-turbine-3/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-3/build.xml,v
retrieving revision 1.20.2.17
retrieving revision 1.20.2.18
diff -u -r1.20.2.17 -r1.20.2.18
--- build.xml 17 Feb 2002 23:00:59 -0000 1.20.2.17
+++ build.xml 18 Feb 2002 00:22:15 -0000 1.20.2.18
@@ -32,6 +32,7 @@
<!-- b) Construct pattern sets that can be used for various task like -->
<!-- copying a set of resources into a JAR for deployment. -->
<!-- ================================================================== -->
+
<target
name="init">
@@ -45,9 +46,16 @@
classname="org.apache.maven.CreatePatternSet">
</taskdef>
+ <!-- Create Classpath -->
<create-path rid="classpath" descriptor="${deps}" basedir="${lib.repo}"/>
+
+ <!-- JAR Resources PatternSet -->
<create-patternset rid="jar.resources.set"
descriptor="${project.defs}/jar.resources"/>
+
+ <!-- Source Directories -->
<create-path rid="src.set" descriptor="${project.defs}/src.set"/>
+
+ <!-- Source Directories with Aspects -->
<create-path rid="src.aspect.set" descriptor="${project.defs}/src.aspect.set"/>
</target>
@@ -57,11 +65,12 @@
<!-- ================================================================== -->
<target
- name="update-jars">
+ name="update-jars"
+ description="o Update JARs required for building">
<taskdef
- name="httpget"
- className="org.apache.tdk.task.Get">
+ name="update-resources"
+ className="org.apache.maven.update.Get">
</taskdef>
<!-- If you need proxy support you'll have to manually add:
@@ -72,7 +81,7 @@
We'll clean this up but it worked for a user behind a proxy.
-->
- <httpget
+ <update-resources
baseUrl="http://jakarta.apache.org/turbine/jars/"
dest="${lib.repo}"
dependencyFile="${deps}"
@@ -117,7 +126,8 @@
<target
name="compile"
- depends="javac.compile,aspectj.compile"/>
+ depends="javac.compile,aspectj.compile"
+ description="o Compile project source code"/>
<!-- ================================================================== -->
<!-- J A V A C C O M P I L E -->
@@ -127,8 +137,9 @@
name="javac.compile"
unless="build.includes.aspects"
depends="env"
- description="--> compiles the source code with javac">
+ description="o Compile project source code with javac">
+ <!-- Make sure the target directory exists -->
<mkdir dir="${build.dest}"/>
<javac
@@ -152,7 +163,7 @@
name="aspectj.compile"
if="build.includes.aspects"
depends="env"
- description="--> compiles the source code with ajc">
+ description="o Compile project source code with AspectJ compiler">
<taskdef
name="ajc"
@@ -180,6 +191,7 @@
<!-- ================================================================== -->
<!-- J A R R E S O U R C E S -->
<!-- ================================================================== -->
+
<target
name="jar-resources"
if="jar.resources">
@@ -207,12 +219,13 @@
<target
name="jar"
depends="compile,jar-resources"
- description="--> generates the turbine.jar file (default)">
+ description="o Generates the ${project} JAR file (default)">
<jar
jarfile="${build.dir}/${final.name}.jar"
basedir="${build.dest}"
- excludes="**/package.html"/>
+ excludes="**/package.html"
+ />
</target>
@@ -222,7 +235,8 @@
<target
name="dist"
- depends="jar,javadocs">
+ depends="jar,javadocs"
+ description="o Create source and binary distributions">
<property name="distDir" value="${build.dir}/${final.name}"/>
@@ -318,8 +332,11 @@
<!-- I N S T A L L J A R -->
<!-- ================================================================== -->
- <target name="install-jar" depends="jar"
- description="==> Installs .jar file in ${lib.repo}">
+ <target
+ name="install-jar"
+ depends="jar"
+ description="o Installs JAR file in local ${lib.repo}">
+
<copy todir="${lib.repo}" filtering="no">
<fileset dir="${build.dir}">
<include name="${final.name}.jar"/>
@@ -328,27 +345,13 @@
</target>
<!-- ================================================================== -->
- <!-- J A R S O U R C E -->
- <!-- ================================================================== -->
-
- <target
- name="jarsrc"
- description="--> generates the turbine.src.jar file containing source only">
-
- <jar
- jarfile="${build.dir}/${final.name}.src.jar"
- basedir="${build.src}"
- excludes="**/package.html"/>
-
- </target>
-
- <!-- ================================================================== -->
<!-- D V S L D O C U M E N T A T I O N -->
<!-- ================================================================== -->
<target
name="docs"
- depends="init">
+ depends="init"
+ description="o Generate html project documentation xdoc sources">
<taskdef name="dvsl" classname="org.apache.tools.dvsl.DVSLTask">
<classpath>
@@ -376,7 +379,7 @@
<target
name="javadocs"
depends="init"
- description="--> generates the API documentation">
+ description="o Generates the Javadoc API documentation">
<mkdir dir="${javadoc.destdir}"/>
@@ -402,7 +405,7 @@
<target
name="clean"
- description="--> cleans up the build directory">
+ description="o Cleans up the build directory">
<delete dir="${build.dir}"/>
</target>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>