[mule-ide-dev] [549] branches/muleide-2.0.0/src/main/plugins/org.mule.ide.debug/src/org/mule/ide/debug/launching/MuleLaunchDelegate.java: MULEIDE-160 (Allow target execution to know the workspace from which it was launched)

View: New views
1 Messages — Rating Filter:   Alert me  

[mule-ide-dev] [549] branches/muleide-2.0.0/src/main/plugins/org.mule.ide.debug/src/org/mule/ide/debug/launching/MuleLaunchDelegate.java: MULEIDE-160 (Allow target execution to know the workspace from which it was launched)

by dirk-44 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
[549] branches/muleide-2.0.0/src/main/plugins/org.mule.ide.debug/src/org/mule/ide/debug/launching/MuleLaunchDelegate.java: MULEIDE-160 (Allow target execution to know the workspace from which it was launched)
Revision
549
Author
dirk
Date
2009-11-05 02:18:33 -0600 (Thu, 05 Nov 2009)

Log Message

MULEIDE-160 (Allow target execution to know the workspace from which it was launched)

Modified Paths

Diff

Modified: branches/muleide-2.0.0/src/main/plugins/org.mule.ide.debug/src/org/mule/ide/debug/launching/MuleLaunchDelegate.java (548 => 549)

--- branches/muleide-2.0.0/src/main/plugins/org.mule.ide.debug/src/org/mule/ide/debug/launching/MuleLaunchDelegate.java	2009-11-04 01:35:03 UTC (rev 548)
+++ branches/muleide-2.0.0/src/main/plugins/org.mule.ide.debug/src/org/mule/ide/debug/launching/MuleLaunchDelegate.java	2009-11-05 08:18:33 UTC (rev 549)
@@ -79,17 +79,20 @@
 		String args = super.getVMArguments(configuration);
 		int muleHome = -1;
 		if (args != null && args.length() > 0) {
-			newArgs = new StringBuffer(args);
 			muleHome = args.indexOf(MULE_HOME_ARG);
 			newArgs.append(" "); 
-		} else {
-			newArgs = new StringBuffer();
 		}
+		
 		if (muleHome < 0) {
 			newArgs.append(MULE_HOME_ARG);
 			newArgs.append("=");
 			newArgs.append(runtime.getDirectory().getAbsolutePath());
 		}
+	
+		// Allow the launched config to see where our workspace is and that we are launched from the IDE
+		newArgs.append(" -Dosgi.dev=true");
+        newArgs.append(" -Dosgi.instance.area=");
+        newArgs.append(ResourcesPlugin.getWorkspace().getRoot().getLocationURI().toString());
 		
 		return newArgs.toString();
 	}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MuleForge Dev" group.
To post to this group, send email to muleforgedev@...
To unsubscribe from this group, send email to muleforgedev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/muleforgedev?hl=en
-~----------~----~----~----~------~----~------~--~---
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://admin.muleforge.org/manage_email