forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: rev 30999 - forrest/trunk/scratchpad/eclipsePlugin/src/org/apache/forrest/eclipse/actions
Date Fri, 30 Jul 2004 17:19:24 GMT
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();

Mime
View raw message