incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 6498 - incubator/depot/trunk/version/src/test/java/ant/org/apache/version/ant/stamp
Date Wed, 04 Feb 2004 09:01:38 GMT
Author: nickchalko
Date: Wed Feb  4 01:01:36 2004
New Revision: 6498

Modified:
   incubator/depot/trunk/version/src/test/java/ant/org/apache/version/ant/stamp/VersionGeneratorTaskTest.java
   incubator/depot/trunk/version/src/test/java/ant/org/apache/version/ant/stamp/version.xml
Log:
The junit test for stamp should also compile the jars.

Modified: incubator/depot/trunk/version/src/test/java/ant/org/apache/version/ant/stamp/VersionGeneratorTaskTest.java
==============================================================================
--- incubator/depot/trunk/version/src/test/java/ant/org/apache/version/ant/stamp/VersionGeneratorTaskTest.java
(original)
+++ incubator/depot/trunk/version/src/test/java/ant/org/apache/version/ant/stamp/VersionGeneratorTaskTest.java
Wed Feb  4 01:01:36 2004
@@ -222,7 +222,7 @@
     }
 
     public void setUp() {
-        configureProject("src/test/ant/org/apache/version/ant/stamp/version.xml");
+        configureProject("src/test/java/ant/org/apache/version/ant/stamp/version.xml");
     }
     public void testComplex() {
         executeTarget("testComplex");

Modified: incubator/depot/trunk/version/src/test/java/ant/org/apache/version/ant/stamp/version.xml
==============================================================================
--- incubator/depot/trunk/version/src/test/java/ant/org/apache/version/ant/stamp/version.xml
(original)
+++ incubator/depot/trunk/version/src/test/java/ant/org/apache/version/ant/stamp/version.xml
Wed Feb  4 01:01:36 2004
@@ -1,64 +1,80 @@
 <?xml version="1.0"?>
-<project name="version-test" basedir="../../../../../../../.." default="testSimple">
+<project name="version-test" basedir="../../../../../../../../.." default="testSimple">
 	
-	<taskdef resource="version"/>
+	<taskdef resource="version-antlib.xml"/>
 	
 	<target name="init" >
+	    <delete dir="transient/test"/>
 		<mkdir dir="transient/test"/>
 	</target>
 	<target name="testComplex" depends="init" >
-		<version-stamp dest="transient/test" overWrite="true">
+		<stamp dest="transient/test" overWrite="true">
 			<versionMarker
 				versionId="org.apache.acorn">
 				<version major ="1" minor="2"/>
 			</versionMarker>
-		</version-stamp>
+		</stamp>
+		<antcall target="compile" />
 	</target>
 	
 	<target name="testComplexAttributed" depends="init" >
-		<version-stamp dest="transient/test" overWrite="true">
+		<stamp dest="transient/test" overWrite="true">
 			<versionMarker 
 				versionId="org.apache.acorn.attr">
 				<version major ="1" minor="2" />
 				<attribute name="foo" value="bar"/>
 			</versionMarker>
-		</version-stamp>
+		</stamp>
+		<antcall target="compile" />
 	</target>
 
     <target name="testVersionString" depends="init"> 
-		<version-stamp dest="transient/test" overWrite="true" >
+		<stamp dest="transient/test" overWrite="true" >
 			<versionMarker
 				versionId="org.apache.acorn.version"
 				version ="1.2">
 				<attribute name="foo" value="bar"/>
 			</versionMarker>
-		</version-stamp>
+		</stamp>
+		<antcall target="compile" />
 	</target>
 	
     <target name="testVersionString2"  depends="init">
-		<version-stamp dest="transient/test" versionId="org.apache.acorn.version"
+		<stamp dest="transient/test" versionId="org.apache.acorn.version"
 				version ="1.2" overWrite="true" />
+				<antcall target="compile" />
 	</target>
 
     <target name="testVersionString3"  depends="init">
-		<version-stamp dest="transient/test" versionId="org.apache.acorn.version"
+		<stamp dest="transient/test" versionId="org.apache.acorn.version"
 				version ="1.2" overWrite="true">
 			<versionMarker>
 					<attribute name="foo" value="bar"/>
 			</versionMarker>
-		</version-stamp>
+		</stamp>
+		<antcall target="compile" />
 	</target>
 
     <target name="testDefaultedAttributes" depends="init">
-		<version-stamp dest="transient/test"  overWrite="true">
+        
+		<stamp dest="transient/test"  overWrite="true">
 			<versionMarker
 				versionId="org.apache.acorn.defaulted"
 				version ="1.2">
 				<defaultAttributes />
 				<attribute name="foo" value="bar"/>
 			</versionMarker>
-		</version-stamp>
+		</stamp>
+		<antcall target="compile" />
 	</target>
-
+    
+    <target name="compile" > 
+        <mkdir dir="build/transient"/>
+        <javac srcdir      ="transient/test"
+           destdir     ="build/transient/"
+>
+      <classpath path="target\classes"/>
+    </javac>
+    </target>
 	
 </project>

Mime
View raw message