incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r884835 - in /incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150: .settings/ src/main/java/org/apache/kato/tck/scenario150/
Date Fri, 27 Nov 2009 10:55:47 GMT
Author: spoole
Date: Fri Nov 27 10:55:46 2009
New Revision: 884835

URL: http://svn.apache.org/viewvc?rev=884835&view=rev
Log:
added 150 dump trigger for scenarios

Added:
    incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/
    incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/org.eclipse.jdt.core.prefs
    incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/org.maven.ide.eclipse.prefs
    incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/src/main/java/org/apache/kato/tck/scenario150/DumpDelegate.java
Modified:
    incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/src/main/java/org/apache/kato/tck/scenario150/DumpTrigger150.java

Added: incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/org.eclipse.jdt.core.prefs?rev=884835&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/org.eclipse.jdt.core.prefs
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/org.eclipse.jdt.core.prefs
Fri Nov 27 10:55:46 2009
@@ -0,0 +1,5 @@
+#Fri Nov 27 10:01:58 GMT 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.5

Added: incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/org.maven.ide.eclipse.prefs
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/org.maven.ide.eclipse.prefs?rev=884835&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/org.maven.ide.eclipse.prefs
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/.settings/org.maven.ide.eclipse.prefs
Fri Nov 27 10:55:46 2009
@@ -0,0 +1,9 @@
+#Fri Nov 27 10:01:47 GMT 2009
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1

Added: incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/src/main/java/org/apache/kato/tck/scenario150/DumpDelegate.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/src/main/java/org/apache/kato/tck/scenario150/DumpDelegate.java?rev=884835&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/src/main/java/org/apache/kato/tck/scenario150/DumpDelegate.java
(added)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/src/main/java/org/apache/kato/tck/scenario150/DumpDelegate.java
Fri Nov 27 10:55:46 2009
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+
+package org.apache.kato.tck.scenario150;
+
+import javax.tools.diagnostics.vm.DumpInitiatorDelegate;
+
+import org.apache.kato.common142.DumpTrigger;
+
+/**
+ * 
+ */
+public class DumpDelegate implements DumpInitiatorDelegate {
+
+	/* (non-Javadoc)
+	 * @see javax.tools.diagnostics.vm.DumpInitiatorDelegate#dump()
+	 */
+	
+	public boolean dump() {
+		DumpTrigger.triggerDump();
+		return true;
+	}
+
+}

Modified: incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/src/main/java/org/apache/kato/tck/scenario150/DumpTrigger150.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/src/main/java/org/apache/kato/tck/scenario150/DumpTrigger150.java?rev=884835&r1=884834&r2=884835&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/src/main/java/org/apache/kato/tck/scenario150/DumpTrigger150.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/scenarios/150/src/main/java/org/apache/kato/tck/scenario150/DumpTrigger150.java
Fri Nov 27 10:55:46 2009
@@ -13,12 +13,17 @@
  ******************************************************************************/
 package org.apache.kato.tck.scenario150;
 
+import javax.tools.diagnostics.vm.Dump;
+
 import org.apache.kato.tck.harness.scenario.IDumpTrigger;
+import org.apache.kato.tck.scenario150.DumpDelegate;
 
 public class DumpTrigger150 implements IDumpTrigger{
 
 	public void dump() {
-		System.out.println("BOOM");
+		Dump.setDumpDelegate(new DumpDelegate());
+		Dump d=new Dump();
+		d.execute();
 		
 	}
 



Mime
View raw message