incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r897995 [2/2] - in /incubator/kato/trunk/org.apache.kato: kato.api.vm/src/main/java/javax/tools/diagnostics/vm/ kato.api.vm/src/main/java/javax/tools/diagnostics/vm/spi/delegates/ kato.api/src/main/java/javax/tools/diagnostics/image/ kato.a...
Date Mon, 11 Jan 2010 18:35:33 GMT
Added: incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.classpath
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.classpath?rev=897995&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.classpath (added)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.classpath Mon Jan 11 18:35:31
2010
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
+	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.project
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.project?rev=897995&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.project (added)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.project Mon Jan 11 18:35:31
2010
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>jdump</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+	</natures>
+</projectDescription>

Added: incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/pom.xml?rev=897995&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/pom.xml (added)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/pom.xml Mon Jan 11 18:35:31
2010
@@ -0,0 +1,132 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<description>Execute  TCK against  JDump</description>
+  <parent>
+    <artifactId>kato.tck.execution</artifactId>
+    <groupId>org.apache.kato</groupId>
+    <version>M1-incubating</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.kato</groupId>
+  <artifactId>kato.tck.execution.hprof</artifactId>
+  <name>Execute  TCK against  JDump</name>
+  <version>M1-incubating</version>
+  <dependencies>
+
+
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.tck.scenario.142</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.tck.scenario.150</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.tck.scenario.160</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.common.142</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.jdump</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.tck.testcases</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+	</dependencies>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.6</source>
+					<target>1.6</target>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-antrun-plugin</artifactId>
+				<version>1.3</version>
+				<executions>
+					<execution>
+						<id>setup</id>
+						<phase>generate-test-resources</phase>
+						<configuration>
+							<tasks>
+
+
+								<ant antfile="test.xml" dir="src/test/ant">
+									<property name="path" refid="maven.test.classpath" />
+									<property name="target" value="${project.build.directory}" />
+									<property name="results" value="${project.build.directory}/surefire-reports"
/>
+								</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.jdump</artifactId>
+						<version>M1-incubating</version>
+					</dependency>
+					<dependency>
+						<groupId>org.apache.kato</groupId>
+						<artifactId>kato.anttasks</artifactId>
+						<version>M1-incubating</version>
+
+					</dependency>
+					<dependency>
+						<groupId>org.apache.kato</groupId>
+						<artifactId>kato.tck.harness</artifactId>
+						<version>M1-incubating</version>
+
+					</dependency>
+					<dependency>
+						<groupId>ant</groupId>
+						<artifactId>ant-junit</artifactId>
+						<version>1.6.5</version>
+					</dependency>
+					<dependency>
+						<groupId>junit</groupId>
+						<artifactId>junit</artifactId>
+						<version>3.8.1</version>
+
+					</dependency>
+				</dependencies>
+			</plugin>
+
+
+
+		</plugins>
+	</build>
+  
+</project>
\ No newline at end of file

Modified: incubator/kato/trunk/org.apache.kato/kato.tck/execution/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/execution/pom.xml?rev=897995&r1=897994&r2=897995&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/execution/pom.xml (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/execution/pom.xml Mon Jan 11 18:35:31 2010
@@ -39,6 +39,7 @@
     </activation>
     <modules>
   		<module>cjvmti</module>
+  		<module>jdump</module>
   	</modules>
   </profile>
   <profile>
@@ -51,6 +52,7 @@
     <modules>
   		<module>cjvmti</module>
   		<module>hprof</module>
+  		<module>jdump</module>
   	</modules>
   </profile>
   

Modified: incubator/kato/trunk/org.apache.kato/kato.tck/testcases/src/main/java/org/apache/kato/tck/tests/process/TestEnvironmentVariables.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/testcases/src/main/java/org/apache/kato/tck/tests/process/TestEnvironmentVariables.java?rev=897995&r1=897994&r2=897995&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/testcases/src/main/java/org/apache/kato/tck/tests/process/TestEnvironmentVariables.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/testcases/src/main/java/org/apache/kato/tck/tests/process/TestEnvironmentVariables.java
Mon Jan 11 18:35:31 2010
@@ -14,6 +14,7 @@
 package org.apache.kato.tck.tests.process;
 
 import java.util.Iterator;
+import java.util.Map;
 import java.util.Properties;
 
 import javax.tools.diagnostics.image.CorruptDataException;
@@ -44,8 +45,8 @@
 		
 		// get environment 
 	
-			Properties properties=process.getEnvironment();
-			String value=properties.getProperty(SetupEnvironmentVariables.KEY1);
+		Map<String,String> properties=process.getEnvironment();
+			String value=properties.get(SetupEnvironmentVariables.KEY1);
 			assertEquals(SetupEnvironmentVariables.VALUE,value);
 		
 
@@ -67,8 +68,8 @@
 		
 		// get environment 
 	
-			Properties properties=process.getEnvironment();
-			String value=properties.getProperty(SetupEnvironmentVariables.KEY2);
+		Map<String,String> properties=process.getEnvironment();
+			String value=properties.get(SetupEnvironmentVariables.KEY2);
 			assertEquals("key2 value should be empty String","",value);
 			
 
@@ -90,8 +91,8 @@
 		
 		// get environment 
 	
-			Properties properties=process.getEnvironment();
-			String value=properties.getProperty(SetupEnvironmentVariables.KEY3);
+		Map<String,String> properties=process.getEnvironment();
+			String value=properties.get(SetupEnvironmentVariables.KEY3);
 			System.out.println("KEY3 "+SetupEnvironmentVariables.KEY3+" value \""+value+"\"");
 			assertNull(value);
 			

Modified: incubator/kato/trunk/org.apache.kato/kato.tck/testcases/src/main/java/org/apache/kato/tests/junit/ImageProcessTest.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/testcases/src/main/java/org/apache/kato/tests/junit/ImageProcessTest.java?rev=897995&r1=897994&r2=897995&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/testcases/src/main/java/org/apache/kato/tests/junit/ImageProcessTest.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/testcases/src/main/java/org/apache/kato/tests/junit/ImageProcessTest.java
Mon Jan 11 18:35:31 2010
@@ -14,6 +14,7 @@
 package org.apache.kato.tests.junit;
 
 import java.util.Iterator;
+import java.util.Map;
 import java.util.Properties;
 
 import javax.tools.diagnostics.image.CorruptData;
@@ -56,7 +57,7 @@
 	public void testGetEnvironment()
 	{
 		try {
-			Properties env = _proc.getEnvironment();
+			Map<String,String> env = _proc.getEnvironment();
 			assertNotNull(env);
 		} catch (DataUnavailable e) {
 			//acceptable

Modified: incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoProcCommand.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoProcCommand.java?rev=897995&r1=897994&r2=897995&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoProcCommand.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tools.katoview/src/main/java/org/apache/kato/katoview/commands/infocommands/InfoProcCommand.java
Mon Jan 11 18:35:31 2010
@@ -15,6 +15,7 @@
 
 import java.util.HashMap;
 import java.util.Iterator;
+import java.util.Map;
 import java.util.Stack;
 import java.util.Properties;
 import java.util.Enumeration;
@@ -157,7 +158,7 @@
 		out.print("\t Environment variables for current process:");
 		out.print("\n");
 		
-		Properties variables;
+		Map<String,String> variables;
 		try {
 			variables = ip.getEnvironment();
 		} catch (CorruptDataException e) {
@@ -168,11 +169,9 @@
 			return;
 		}
 		
-		Enumeration keys = variables.propertyNames();
-		while (keys.hasMoreElements())
+		for(String key:variables.keySet()) 
 		{
-			String key = (String)keys.nextElement();
-			printVariableInfo(key, variables.getProperty(key), out);
+			printVariableInfo(key, variables.get(key), out);
 		}
 	}
 	



Mime
View raw message