[jbosstools-commits] JBoss Tools SVN: r22874 - branches/jbosstools-3.1.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Jun 18 01:33:42 EDT 2010


Author: rob.stryker at jboss.com
Date: 2010-06-18 01:33:41 -0400 (Fri, 18 Jun 2010)
New Revision: 22874

Modified:
   branches/jbosstools-3.1.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/AbstractESBRuntimeResolver.java
Log:
JBIDE-6483 - to 3.1.x stream

Modified: branches/jbosstools-3.1.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/AbstractESBRuntimeResolver.java
===================================================================
--- branches/jbosstools-3.1.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/AbstractESBRuntimeResolver.java	2010-06-18 05:31:09 UTC (rev 22873)
+++ branches/jbosstools-3.1.x/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/AbstractESBRuntimeResolver.java	2010-06-18 05:33:41 UTC (rev 22874)
@@ -16,6 +16,8 @@
 
 import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.Path;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerConstants;
+import org.jboss.ide.eclipse.as.core.util.IJBossRuntimeResourceConstants;
 
 public abstract class AbstractESBRuntimeResolver implements IESBRuntimeResolver {
 
@@ -27,16 +29,17 @@
 	public List<IPath> getJarDirectories(String runtimeLocation, String configuration) {
 		
 		if("".equals(configuration)){
-			configuration = "default";
+			configuration = IJBossRuntimeResourceConstants.DEFAULT_CONFIGURATION;
 		}
 		
 		List<IPath> directories = new ArrayList<IPath>();
 		
 		IPath rtHome = new Path(runtimeLocation);
-		IPath soapDeployPath = rtHome.append(SOAP_AS_LOCATION).append("server").append("default").append(
-		"deploy");
-		IPath deployPath = rtHome.append("server").append(configuration).append(
-				"deploy");
+		IPath soapDeployPath = rtHome.append(SOAP_AS_LOCATION)
+			.append(IJBossRuntimeResourceConstants.SERVER).append(configuration)
+			.append(IJBossRuntimeResourceConstants.DEPLOY);
+		IPath deployPath = rtHome.append(IJBossRuntimeResourceConstants.SERVER)
+			.append(configuration).append(IJBossRuntimeResourceConstants.DEPLOY);
 
 		IPath esbPath = deployPath.append(JBOSSESB_ESB);
 		IPath sarPath = deployPath.append(JBOSSESB_SAR);



More information about the jbosstools-commits mailing list