incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r834547 - in /incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142: ./ src/main/java/org/apache/kato/tck/scenario142/ src/main/java/org/apache/kato/tck/scenario142/javaruntime/ src/test/ant/
Date Tue, 10 Nov 2009 17:00:31 GMT
Author: spoole
Date: Tue Nov 10 17:00:30 2009
New Revision: 834547

URL: http://svn.apache.org/viewvc?rev=834547&view=rev
Log:
added new ant task to setup tck scenarios

Added:
    incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/ScenarioLauncher142.java
      - copied, changed from r834146, incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/CommonScenerioLauncher.java
    incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/test/ant/
    incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/test/ant/test.xml
Removed:
    incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/CommonScenerioLauncher.java
Modified:
    incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/pom.xml
    incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/JavaruntimeScenerioSetup.java

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/pom.xml?rev=834547&r1=834546&r2=834547&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/pom.xml (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/pom.xml Tue Nov 10
17:00:30 2009
@@ -39,6 +39,40 @@
 					<target>1.4</target>
 				</configuration>
 			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-antrun-plugin</artifactId>
+				<version>1.3</version>
+				<executions>
+					<execution>
+						<id>compile</id>
+						<phase>test</phase>
+						<configuration>
+							<tasks>
+								<ant antfile="test.xml" dir="src/test/ant">
+									<property name="path" refid="maven.runtime.classpath" />
+								</ant>
+							</tasks>
+						</configuration>
+						<goals>
+							<goal>run</goal>
+						</goals>
+					</execution>
+				</executions>
+				<dependencies>
+					<dependency>
+            			<groupId>ant</groupId>
+            			<artifactId>ant-trax</artifactId>
+            			<version>1.6.5</version>
+          			</dependency>    
+        			
+				<dependency>
+  			<groupId>org.apache.kato</groupId>
+  			<artifactId>kato.anttasks</artifactId>
+  			<version>M1-incubating</version>
+  		</dependency>
+				</dependencies>
+				</plugin>
 		</plugins>
 	</build>
   	<dependencies>

Copied: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/ScenarioLauncher142.java
(from r834146, incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/CommonScenerioLauncher.java)
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/ScenarioLauncher142.java?p2=incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/ScenarioLauncher142.java&p1=incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/CommonScenerioLauncher.java&r1=834146&r2=834547&rev=834547&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/CommonScenerioLauncher.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/ScenarioLauncher142.java
Tue Nov 10 17:00:30 2009
@@ -2,19 +2,15 @@
 
 import org.apache.kato.tck.scenario142.javaruntime.JavaruntimeScenerioSetup;
 
-public class CommonScenerioLauncher  {
+public class ScenarioLauncher142  {
 
 	private JavaruntimeScenerioSetup runtime=null;
 	
-	public CommonScenerioLauncher() {
+	public ScenarioLauncher142() {
 		runtime=new JavaruntimeScenerioSetup();
-	}
-	
-	public static void main(String args[]) {
-		
-		CommonScenerioLauncher launcher=new CommonScenerioLauncher();
-			
 		
 	}
+	
+
 
 }

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/JavaruntimeScenerioSetup.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/JavaruntimeScenerioSetup.java?rev=834547&r1=834546&r2=834547&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/JavaruntimeScenerioSetup.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/main/java/org/apache/kato/tck/scenario142/javaruntime/JavaruntimeScenerioSetup.java
Tue Nov 10 17:00:30 2009
@@ -1,11 +1,13 @@
 package org.apache.kato.tck.scenario142.javaruntime;
 
+import org.apache.kato.tck.harness.AbstractScenarioSetup;
+
 
 public class JavaruntimeScenerioSetup extends AbstractScenarioSetup {
 
 	
 	
-	public void configure() {
+	public JavaruntimeScenerioSetup() {
 		configure(new SetupJavaClass_getName());
 		configure(new SetupJavaClassLoader_getJavaObject());
 		configure(new SetupJavaField_equals());

Added: incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/test/ant/test.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/test/ant/test.xml?rev=834547&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/test/ant/test.xml
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.testsuite.scenario.142/src/test/ant/test.xml
Tue Nov 10 17:00:30 2009
@@ -0,0 +1,12 @@
+<project default="test">
+	
+	<taskdef resource="org/apache/kato/anttasks/anttasks.properties">
+			<classpath path="${path}" />
+		</taskdef>
+	<target name="test">
+		<tcksetup>
+			<classpath path="${path}" />
+			<scenario name="142"/>
+		</tcksetup>
+	</target>
+</project>
\ No newline at end of file



Mime
View raw message