Author: rob.stryker(a)jboss.com
Date: 2010-06-18 01:31:09 -0400 (Fri, 18 Jun 2010)
New Revision: 22873
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/AbstractESBRuntimeResolver.java
Log:
JBIDE-6483 to trunk
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/AbstractESBRuntimeResolver.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/runtime/AbstractESBRuntimeResolver.java 2010-06-18
00:09:08 UTC (rev 22872)
+++
trunk/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)
@@ -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);
Show replies by date