You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rd...@apache.org on 2009/02/12 21:31:23 UTC

svn commit: r743872 - in /james/jsieve/trunk: build.xml mailet/build.xml main/build.xml util/build.xml

Author: rdonkin
Date: Thu Feb 12 20:31:23 2009
New Revision: 743872

URL: http://svn.apache.org/viewvc?rev=743872&view=rev
Log:
Move documentation into description attributes. Improve 'ant usage'.

Modified:
    james/jsieve/trunk/build.xml
    james/jsieve/trunk/mailet/build.xml
    james/jsieve/trunk/main/build.xml
    james/jsieve/trunk/util/build.xml

Modified: james/jsieve/trunk/build.xml
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/build.xml?rev=743872&r1=743871&r2=743872&view=diff
==============================================================================
--- james/jsieve/trunk/build.xml (original)
+++ james/jsieve/trunk/build.xml Thu Feb 12 20:31:23 2009
@@ -174,11 +174,11 @@
     </macrodef>
 
 
-    <target name='clean' description='Cleans each module'>
+    <target name='clean' description=' - cleans modules                [multimodule]'>
         <forall do='clean' />
     </target>
 
-    <target name='main' description='Builds each module'>
+    <target name='main'  description=' - builds modules                [multimodule]'>
         <forall do='main' />
     </target>
 </project>

Modified: james/jsieve/trunk/mailet/build.xml
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/mailet/build.xml?rev=743872&r1=743871&r2=743872&view=diff
==============================================================================
--- james/jsieve/trunk/mailet/build.xml (original)
+++ james/jsieve/trunk/mailet/build.xml Thu Feb 12 20:31:23 2009
@@ -36,12 +36,6 @@
     <property file="../include.properties" />
     <property file="../default.properties" />
 
-    <!--
-    ===================================================================
-    Set the classpath
-    ===================================================================
-    -->
-
     <path id="mail.class.path">
         <pathelement location='${mail.jar}' />
         <pathelement location='${activation.jar}' />
@@ -66,69 +60,32 @@
 
      <import file='../build.xml'/>
     
-    <!--
-    ===================================================================
-                                  Main target
-    ===================================================================
-    -->
-    <target name="main" depends="run-tests" />
-
-    <!--
-    ===================================================================
-                                  Prepare target
-    ===================================================================
-    -->
-    <target name="prepare">
+    <target name="main" depends="run-tests" description=" - main target"/>
+
+    <target name="prepare" description=" - paparations                   [internal]">
         <CheckMailConditions/>
     </target>
 
-    <!--
-    ===================================================================
-                                  compile
-    ===================================================================
-    -->
-    <target name="compile" depends="prepare">
+    <target name="compile" depends="prepare" description=" - compiles test and main source">
         <CompileMain>
             <src path="${java.dir}" />
         </CompileMain>
         <CompileTests/>
     </target>
 
-    <!--
-    ===================================================================
-                                  Make jSieve jars
-    ===================================================================
-    -->
-
-    <target name="jar" depends="compile">
+    <target name="jar" depends="compile" description=" - jars classes">
         <Jar name='mailet'/> 
     </target>
 
-    <!--
-    ===================================================================
-                                  Test the dist-lite build
-    ===================================================================
-    -->
-    <target name="run-tests" depends="jar">
+    <target name="run-tests" depends="jar" description=" - runs all tests">
         <RunTests/>
     </target>
 
-    <!--
-    ===================================================================
-                                  delete dist/, build/ and www/
-    ===================================================================
-    -->
-    <target name="clean">
+    <target name="clean" description=" - cleans build files">
         <Clean/>
     </target>
 
-    <!--
-    ===================================================================
-                                   Help on usage                                                       
-    =================================================================== 
-    -->
-    <target name="usage">
+    <target name="usage" description=" - prints help">
         <Usage/>
     </target>
-
 </project>

Modified: james/jsieve/trunk/main/build.xml
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/main/build.xml?rev=743872&r1=743871&r2=743872&view=diff
==============================================================================
--- james/jsieve/trunk/main/build.xml (original)
+++ james/jsieve/trunk/main/build.xml Thu Feb 12 20:31:23 2009
@@ -36,12 +36,6 @@
     <property file="../include.properties" />
     <property file="../default.properties" />
 
-    <!--
-    ===================================================================
-    Set the classpath
-    ===================================================================
-    -->
-
     <path id="project.class.path">
         <pathelement location="${commons-logging.jar}" />
         <pathelement location="${log4j.jar}" />
@@ -61,33 +55,18 @@
     </path>
     
     <import file='../build.xml'/>
+    <target name="main" depends="run-tests" description=" - main target"/>
 
-    <!--
-    ===================================================================
-                                  Main target
-    ===================================================================
-    -->
-    <target name="main" depends="run-tests" description='foo'/>
-    <!--
-    ===================================================================
-                                  Prepare target
-    ===================================================================
-    -->
-    <target name="prepare" depends="preprocess">
+    <target name="prepare" depends="preprocess" description=" - paparations                   [internal]">
         <CheckMailConditions/>
     </target>
-
-    <!--
-    ===================================================================
-                                  pre-process
-    ===================================================================
-    -->
+    
     <!--
     Unless you want to alter the Sieve grammar, expressed by the seive.jjt 
     file, is built, consider the following processing a black box.
     Or zen for the more spiritual amongst you.
-    -->
-    <target name="preprocess">
+    -->                       
+    <target name="preprocess" description=" - generate source from grammar  [internal]">
         <!--
         Generate JavaCC source inserting parse tree building actions 
         and the Java source for the parse classes.
@@ -125,12 +104,7 @@
         </java>
     </target>
 
-    <!--
-    ===================================================================
-                                  compile
-    ===================================================================
-    -->
-    <target name="compile" depends="prepare">
+    <target name="compile" depends="prepare" description=" - compiles test and main source">
         <CompileMain>
             <src path="${build.src}" />
             <src path="${java.dir}" />
@@ -138,13 +112,7 @@
         <CompileTests/>
     </target>
 
-    <!--
-    ===================================================================
-                                  Make jSieve jars
-    ===================================================================
-    -->
-
-    <target name="jar" depends="compile">
+    <target name="jar" depends="compile" description=" - jars classes">
         <Jar name='' prefix=''/>     
     
         <!-- Make jSieve jUnit jar-->
@@ -162,30 +130,15 @@
         <copy todir='${lib.jsieve.dir}' file='${build.lib}/${name}-tests-${version}.jar' />
     </target>
 
-    <!--
-    ===================================================================
-                                  Test the dist-lite build
-    ===================================================================
-    -->
-    <target name="run-tests" depends="jar">
+    <target name="run-tests" depends="jar" description=" - runs all tests">
         <RunTests/>
     </target>
 
-    <!--
-    ===================================================================
-                                  delete dist/, build/ and www/
-    ===================================================================
-    -->
-    <target name="clean">
+    <target name="clean" description=" - cleans build files">
         <Clean/>
     </target>
 
-    <!--
-    ===================================================================
-                                   Help on usage                                                       
-    =================================================================== 
-    -->
-    <target name="usage">
+    <target name="usage" description=" - prints help">
         <Usage/>
     </target>
 

Modified: james/jsieve/trunk/util/build.xml
URL: http://svn.apache.org/viewvc/james/jsieve/trunk/util/build.xml?rev=743872&r1=743871&r2=743872&view=diff
==============================================================================
--- james/jsieve/trunk/util/build.xml (original)
+++ james/jsieve/trunk/util/build.xml Thu Feb 12 20:31:23 2009
@@ -36,12 +36,6 @@
     <property file="../include.properties" />
     <property file="../default.properties" />
 
-    <!--
-    ===================================================================
-    Set the classpath
-    ===================================================================
-    -->
-
     <path id="mail.class.path">
         <pathelement location='${mail.jar}' />
         <pathelement location='${activation.jar}' />
@@ -65,68 +59,32 @@
     
     <import file='../build.xml'/>
     
-    <!--
-    ===================================================================
-                                  Main target
-    ===================================================================
-    -->
-    <target name="main" depends="run-tests" />
-
-    <!--
-    ===================================================================
-                                  Prepare target
-    ===================================================================
-    -->
-    <target name="prepare">
+    <target name="main" depends="run-tests" description=" - main target"/>
+
+    <target name="prepare" description=" - paparations                   [internal]">
         <CheckMailConditions/>
     </target>
 
-    <!--
-    ===================================================================
-                                  compile
-    ===================================================================
-    -->
-    <target name="compile" depends="prepare">
+    <target name="compile" depends="prepare" description=" - compiles test and main source">
         <CompileMain>
             <src path="${java.dir}" />
         </CompileMain>
         <CompileTests/>
     </target>
-    
-    <!--
-    ===================================================================
-                                  Make jSieve jars
-    ===================================================================
-    -->
 
-    <target name="jar" depends="compile">
+    <target name="jar" depends="compile" description=" - jars classes">
         <Jar name='util'/>    
     </target>
 
-    <!--
-    ===================================================================
-                                  Test the dist-lite build
-    ===================================================================
-    -->
-    <target name="run-tests" depends="jar">
+    <target name="run-tests" depends="jar" description=" - runs all tests">
         <RunTests/>
     </target>
 
-    <!--
-    ===================================================================
-                                  delete dist/, build/ and www/
-    ===================================================================
-    -->
-    <target name="clean">
+    <target name="clean" description=" - cleans build files">
         <Clean/>
     </target>
 
-    <!--
-    ===================================================================
-                                   Help on usage                                                       
-    =================================================================== 
-    -->
-    <target name="usage">
+    <target name="usage" description=" - prints help">
         <Usage/>
     </target>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org