You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@locus.apache.org on 2000/09/27 02:04:17 UTC
cvs commit: jakarta-struts build.xml
craigmcc 00/09/26 17:04:17
Modified: . build.xml
Log:
Add a "targets" target that lists the Ant targets useful to developers.
Submitted by: Warner Onstine <on...@intalio.com>
Revision Changes Path
1.17 +22 -0 jakarta-struts/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/build.xml,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- build.xml 2000/09/20 04:21:48 1.16
+++ build.xml 2000/09/27 00:04:16 1.17
@@ -5,6 +5,8 @@
<property name="build.home" value="../build/${app.name}"/>
<property name="catalina.home" value="../build/tomcat-4.0"/>
<property name="dist.home" value="../dist/${app.name}"/>
+ <property name="project.name" value="jakarta-struts"/>
+ <property name="project.version" value="1.0-dev"/>
<property name="tomcat.home" value="../build/tomcat"/>
<!-- BUILD: Create directories and copy files for library -->
@@ -230,6 +232,26 @@
<mkdir dir="${tomcat.home}/webapps/struts-test"/>
<copydir src="${build.home}/test"
dest="${tomcat.home}/webapps/struts-test"/>
+ </target>
+
+ <!-- UTILITY: Display all targets intended for developer use -->
+ <target name="targets">
+ <echo message=""/>
+ <echo message="ANT build for ${project.name} ${project.version}"/>
+ <echo message=""/>
+ <echo message="The following targets are available:"/>
+ <echo message=" all Cleans and builds library and webapps"/>
+ <echo message=" clean Cleans the build and distribution directories"/>
+ <echo message=" compile.documentation Builds the documentation webapp"/>
+ <echo message=" compile.examples Builds the examples webapp"/>
+ <echo message=" compile.javadoc Builds Javadoc API docs for Struts"/>
+ <echo message=" compile.library Builds the main packages"/>
+ <echo message=" compile.tests Builds the tests webapp"/>
+ <echo message=" deploy.catalina Deploys build to Catalina build directory"/>
+ <echo message=" deploy.tomcat Depoys build to Tomcat build directory"/>
+ <echo message=" dist Builds binary distribution in dist directory"/>
+ <echo message=""/>
+ <echo message="Default target is 'compile.library'"/>
</target>
<!-- UTILITY: Clean up build and distribution directories -->