You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2006/10/04 10:03:43 UTC

svn commit: r452788 - /incubator/harmony/enhanced/classlib/trunk/build.xml

Author: hindessm
Date: Wed Oct  4 01:03:42 2006
New Revision: 452788

URL: http://svn.apache.org/viewvc?view=rev&rev=452788
Log:
Fix descriptions so "ant -p" produces reasonable output.
Minor clean up.

Modified:
    incubator/harmony/enhanced/classlib/trunk/build.xml

Modified: incubator/harmony/enhanced/classlib/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/build.xml?view=diff&rev=452788&r1=452787&r2=452788
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/build.xml (original)
+++ incubator/harmony/enhanced/classlib/trunk/build.xml Wed Oct  4 01:03:42 2006
@@ -18,7 +18,7 @@
 <!-- ====================================================================== 
      Build source and lay out results in the required format
      ====================================================================== -->
-<project name="build-contribution" default="default" basedir=".">
+<project name="build-contribution" default="build" basedir=".">
     <description>
     	Build contributed source and lay out results in the required format 
     </description>
@@ -73,32 +73,33 @@
 	     
 	 builds with a clean first
 	 ================================= -->
-    <target name="rebuild" depends="clean,build" />
+    <target name="rebuild" depends="clean,build"
+        description="Performs a full build - that is 'clean' then 'build'" />
 	
-    <!-- ================================= 
-          target: default              
-         ================================= -->
-    <target name="default" depends="build" />
-
-    <target name="build" depends="build-java,build-native">
+    <target name="build" depends="build-java,build-native"
+        description="Compiles the java and native code to produce a jdk">
         <ant antfile="make/build-test.xml" inheritall="false"
              target="support-jar"/>
     </target>
 
+    <target name="clean" depends="clean-java,clean-native" 
+            description="Removes all the files generated by a build" />
 
     <!-- ================================
 	 target : rebuild-java
 	     
 	 builds java source with a clean first
 	 ================================= -->
-    <target name="rebuild-java" depends="clean-java,build-java" />
+    <target name="rebuild-java" depends="clean-java,build-java"
+            description="Like 'rebuild' but for java code only" />
 
     <!-- ================================= 
           target: build-java              
 
           runs the build target in build-java.xml
          ================================= -->
-    <target name="build-java">
+    <target name="build-java"
+            description="Compiles the java code only" >
         <echo>
 ========================================
 Building Java component archives...
@@ -112,7 +113,8 @@
 
           runs the clean target in build-java.xml
          ================================= -->
-    <target name="clean-java">
+    <target name="clean-java"
+            description="Removes the compiled java code" >
         <ant antfile="make/build-java.xml" inheritall="false" target="clean" />
     </target>
 
@@ -121,14 +123,16 @@
 	     
 	 builds native source with a clean first
 	 ================================= -->
-    <target name="rebuild-native" depends="clean-native,build-native" />
+    <target name="rebuild-native" depends="clean-native,build-native"
+            description="Like 'rebuild' but for native code only" />
 
     <!-- ================================= 
           target: build-native             
 
           runs the build target in build-native.xml
          ================================= -->
-    <target name="build-native">
+    <target name="build-native"
+            description="Compiles the native code only" >
         <echo>
 ========================================
 Building native libs and executables...
@@ -142,11 +146,14 @@
 
           runs the clean target in build-native.xml
          ================================= -->
-    <target name="clean-native">
+    <target name="clean-native"
+        description="Removes the compiled native code" >
+
         <ant antfile="make/build-native.xml" inheritall="false" target="clean" />
     </target>
 
-    <target name="test">
+    <target name="test"
+            description="Runs all tests">
         <echo>
 ========================================
 Testing class libraries...
@@ -159,7 +166,8 @@
     <!-- ================================= 
           target: doc             
          ================================= -->
-    <target name="doc">
+    <target name="doc"
+            description="Generates the javadoc">
         <echo>
 ========================================
 Generating HTML using Doxygen...
@@ -168,16 +176,12 @@
         <ant antfile="doc/build.xml" inheritall="false" />
     </target>
 
-    <!-- ================================= 
-          target: clean
-         ================================= -->
-    <target name="clean" depends="clean-java,clean-native">
-        <!-- Removed this for now since svn diff complains with
-             svn: Working copy 'doc/kernel_doc' is missing or not locked
-             if we run it.  We shouldn't really clean things that are in the
-             repository.
-             <ant antfile="doc/build.xml" inheritall="false" target="clean" />
-         -->
+    <target name="clean-doc" if="${really.clean.doc}">
+        <!-- We really shouldn't do this, since svn diff complains
+             with svn: Working copy 'doc/kernel_doc' is missing or not
+             locked if we run it.  We shouldn't really clean things
+             that are in the repository. -->
+        <ant antfile="doc/build.xml" inheritall="false" target="clean" />
     </target>
 
     <!-- ================================= 
@@ -195,12 +199,13 @@
     <!-- ================================= 
           target: snapshot
          ================================= -->
-    <target name="snapshot" depends="snapshot-tar, snapshot-zip" />
+    <target name="snapshot" depends="-snapshot-tar,-snapshot-zip"
+            description="Produce a classlib snapshot tar/zip" />
 
     <!-- ================================= 
           target: snapshot-tar
          ================================= -->
-    <target name="snapshot-tar" depends="default, -properties" if="is.unix">
+    <target name="-snapshot-tar" depends="build, -properties" if="is.unix">
         <echo>
 ========================================
 Generating snapshot tar
@@ -232,7 +237,7 @@
     <!-- ================================= 
           target: snapshot-zip
          ================================= -->
-    <target name="snapshot-zip" depends="default, -properties" if="is.windows">
+    <target name="-snapshot-zip" depends="build,-properties" if="is.windows">
         <echo>
 ========================================
 Generating snapshot zip
@@ -258,15 +263,19 @@
         <md5sum file="${deploy.zip}" />
     </target>
 
-    <target name="check-depends">
+    <target name="check-depends"
+            description="Report on whether the dependencies are met">
         <ant antfile="make/depends.xml" inheritall="false" target="check" />
     </target>
 
-    <target name="fetch-depends">
+    <target name="fetch-depends"
+        description="Fetches dependencies. Note: Some of Harmony's dependencies are licensed under terms other than the Apache License v2.">
         <ant antfile="make/depends.xml" inheritall="false" target="download" />
     </target>
 
-    <target name="properties" depends="echo" />
+    <target name="properties" depends="echo"
+        description="Display the properties that are use in the ant build files"
+            />
 
     <macrodef name="md5sum">
         <attribute name="file" />