geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r393633 - /geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/LaunchOSGIMojo.java
Date Wed, 12 Apr 2006 22:28:43 GMT
Author: sppatel
Date: Wed Apr 12 15:28:40 2006
New Revision: 393633

URL: http://svn.apache.org/viewcvs?rev=393633&view=rev
Log:
call shutdown and bump up heap size

Modified:
    geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/LaunchOSGIMojo.java

Modified: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/LaunchOSGIMojo.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/LaunchOSGIMojo.java?rev=393633&r1=393632&r2=393633&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/LaunchOSGIMojo.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-emf-plugin/src/main/java/org/apache/emf/plugin/LaunchOSGIMojo.java
Wed Apr 12 15:28:40 2006
@@ -94,6 +94,8 @@
 		getLog().debug(Arrays.asList(args).toString());
 
 		System.setProperty(PROP_USE_SYS_PROPS, "true");
+		
+		Class clazz = null;
 
 		try {
 			Map initalPropertyMap = new HashMap();
@@ -105,11 +107,10 @@
 			initalPropertyMap.put(PROP_INSTANCE_AREA, workspace.toURL().toExternalForm());
 			initalPropertyMap.put(PROP_APPLICATION_ID, getApplicationID());
 			initalPropertyMap.put(PROP_NOSHUTDOWN, Boolean.toString(keepFrameworkAlive));
-			initalPropertyMap.put("eclipse.vmargs","-Xmx256M");
+			initalPropertyMap.put("eclipse.vmargs","-Xmx512M");
 
 			URL[] osgiURLArray = { new URL((String) initalPropertyMap.get(PROP_FRAMEWORK)) };
 			
-			Class clazz = null;
 			if(getPluginContext().containsKey(STARTER)) {
 				clazz = (Class) getPluginContext().get(STARTER);
 			} else  {
@@ -138,6 +139,12 @@
 		
 		if(getCurrentExecution() == getTotalExecutions()) {
 			getPluginContext().remove(CURRENT_EXECUTION);
+			try {
+				Method shutdownMethod = clazz.getMethod("shutdown", new Class[] {});
+				shutdownMethod.invoke(null, null);
+			} catch (Exception e) {
+				e.printStackTrace();
+			} 
 		} else {
 			getPluginContext().put(CURRENT_EXECUTION, new Integer(getCurrentExecution() + 1));
 		}



Mime
View raw message