You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2004/07/30 19:19:24 UTC

svn commit: rev 30999 - forrest/trunk/scratchpad/eclipsePlugin/src/org/apache/forrest/eclipse/actions

Author: rgardler
Date: Fri Jul 30 10:19:23 2004
New Revision: 30999

Modified:
   forrest/trunk/scratchpad/eclipsePlugin/src/org/apache/forrest/eclipse/actions/StartForrest.java
Log:
Correct overwriting of VM arguments

Modified: forrest/trunk/scratchpad/eclipsePlugin/src/org/apache/forrest/eclipse/actions/StartForrest.java
==============================================================================
--- forrest/trunk/scratchpad/eclipsePlugin/src/org/apache/forrest/eclipse/actions/StartForrest.java	(original)
+++ forrest/trunk/scratchpad/eclipsePlugin/src/org/apache/forrest/eclipse/actions/StartForrest.java	Fri Jul 30 10:19:23 2004
@@ -195,10 +195,13 @@
 			workingCopy.setAttribute(ATTR_DEFAULT_CLASSPATH, false);
 
 			// specify working diretory
-			workingCopy.setAttribute(ATTR_WORKING_DIRECTORY, wdir);
+			File workingDir = workingDirectory.append("build").append("webapp")
+								.toFile();
+						workingCopy.setAttribute(ATTR_WORKING_DIRECTORY, workingDir
+								.getAbsolutePath());
 			
-			workingCopy.setAttribute(ATTR_VM_ARGUMENTS, "-Dproject.home=\"" + wdir.toString() + "\"");
-			workingCopy.setAttribute(ATTR_VM_ARGUMENTS, "-Dforrest.home=\"" + fhome.toString() + "\"");
+			workingCopy.setAttribute(ATTR_VM_ARGUMENTS, "-Dproject.home=\"" + wdir + "\"" 
+					+ " -Dforrest.home=\"" + fhome + "\"");
 
 			ILaunchConfiguration configuration = workingCopy.doSave();
 			IProgressMonitor monitor = new NullProgressMonitor();