[cvs] expresso commit by mtraum: split test class compile into new target

JCorporate Ltd jcorp at jcorp2.servlets.net
Sun Nov 14 08:05:26 PST 2004


Log Message:
-----------
split test class compile into new target 'compile-tests'

Modified Files:
--------------
    expresso:
        build.xml

Revision Data
-------------
Index: build.xml
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/build.xml,v
retrieving revision 1.84
retrieving revision 1.85
diff -Lbuild.xml -Lbuild.xml -u -r1.84 -r1.85
--- build.xml
+++ build.xml
@@ -114,42 +114,43 @@
 		<echo><![CDATA[
 ===== GETTING THE LATEST SOURCE CODE ==============================
 [Not implemented Yet]
-ant cvs          : Retrieves the most recent code tree from CVS.
-ant download     : Downloads a ZIP file containing the source,
-                     then unpacks it into the current directory.
+ant cvs            : Retrieves the most recent code tree from CVS.
+ant download       : Downloads a ZIP file containing the source,
+                      then unpacks it into the current directory.
 
 ===== COMPILING THE SOURCE ========================================
-ant clean        : Remove all generated class and jar files, plus
-                     all generated documentation.
-ant compile      : Compiles only the Expresso base source without a clean
-ant build        : Compiles Expresso and generates all
-                     documentation after executing a clean
+ant clean          : Remove all generated class and jar files, plus
+                      all generated documentation.
+ant compile        : Compiles only the Expresso base source without a clean
+ant compile-tests  : Compiles the Expresso test source without a clean
+ant build          : Compiles Expresso and generates all
+                      documentation after executing a clean
 
-ant build-all		: Performs a clean, then builds every distribution defined.
+ant build-all      : Performs a clean, then builds every distribution defined.
 
 ===== DISTRIBUTIONS ===================================================
-ant src-war      : Builds a WAR file that contains all of the
-                     Expresso source code and docs.
+ant src-war        : Builds a WAR file that contains all of the
+                      Expresso source code and docs.
 
 ant expresso-binary: Builds a WAR file that contains all the binary files, but no
-							javadocs or source files.
+                      javadocs or source files.
 
 ant expresso-complete: Builds a ZIP file that contains all of Expresso including docs,
-					source, and a working copy of Apache Tomcat.
+                        source, and a working copy of Apache Tomcat.
 
-ant javadoc-zip  : Generate Javadocs and zip them up into a zip archive.
+ant javadoc-zip    : Generate Javadocs and zip them up into a zip archive.
 
 
 ===== DOCUMENTATION ===============================================
-ant javadoc      : Generates the API documentation.
-ant xmldocs       : Generates the Expresso XML documentation. NOTE:
-					you must define "docbook.home" in your local build.properties file
+ant javadoc        : Generates the API documentation.
+ant xmldocs        : Generates the Expresso XML documentation. NOTE:
+                      you must define "docbook.home" in your local build.properties file
 
 ===== MISCELLANEOUS ===============================================
-ant environment  : Display environment variables visible to Ant.
-ant language     : Run the translate utility against the
-                     message bundles.
-ant deploy		 : deploy .war file for local testing
+ant environment    : Display environment variables visible to Ant.
+ant language       : Run the translate utility against the
+                      message bundles.
+ant deploy		   : deploy .war file for local testing
 		]]></echo>
 	</target>
 	<!--
@@ -289,9 +290,26 @@
             optimize="true">
 
             <src path="${expresso.src}"/>
+        </javac>
+	</target>
+	
+	<!-- ==========================================================================
+	Target: compile
+	Reads in test source files and converts them into class files suitable for
+	execution by the JVM. 
+============================================================================-->
+	<target name="compile-tests" depends="init, buildDirs, copyResources, checklibs" description="Compile Expresso test source">
+		<javac
+            destdir="${expresso.build.classes}"
+            classpath="${buildclasspath}"
+            debug="true"
+            deprecation="false"
+            optimize="true">
+
             <src path="${testsrcdir}" />
         </javac>
 	</target>
+	
 	<!-- ================================================================================
 	Copies all the resource files to their target locations
 	-->


More information about the cvs mailing list