incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r882484 - /incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/scenario/ScenarioLauncher.java
Date Fri, 20 Nov 2009 10:18:01 GMT
Author: spoole
Date: Fri Nov 20 10:18:00 2009
New Revision: 882484

URL: http://svn.apache.org/viewvc?rev=882484&view=rev
Log:
removed 1.5 api use from scenario launcher 

Modified:
    incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/scenario/ScenarioLauncher.java

Modified: incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/scenario/ScenarioLauncher.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/scenario/ScenarioLauncher.java?rev=882484&r1=882483&r2=882484&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/scenario/ScenarioLauncher.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck.harness/src/main/java/org/apache/kato/tck/harness/scenario/ScenarioLauncher.java
Fri Nov 20 10:18:00 2009
@@ -365,8 +365,8 @@
 		
 		// what JVM level?
 		String version=System.getProperty("java.version");
-		if(version.contains("1.4")) return "org.apache.kato.tck.scenario142.DumpTrigger142";
-		if(version.contains("1.5")) return "org.apache.kato.tck.scenario150.DumpTrigger150";
+		if(version.indexOf("1.4")>=0) return "org.apache.kato.tck.scenario142.DumpTrigger142";
+		if(version.indexOf("1.5")>=0) return "org.apache.kato.tck.scenario150.DumpTrigger150";
 		
 		return "org.apache.kato.tck.scenario160.DumpTrigger160";
 		



Mime
View raw message