Author: rob.stryker(a)jboss.com
Date: 2009-04-20 02:04:54 -0400 (Mon, 20 Apr 2009)
New Revision: 14815
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java
Log:
JBIDE-4184
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java 2009-04-17
22:00:33 UTC (rev 14814)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/ServerListener.java 2009-04-20
06:04:54 UTC (rev 14815)
@@ -52,10 +52,11 @@
IRuntime rt = server.getRuntime();
IJBossServerRuntime jbsrt =
(IJBossServerRuntime)rt.loadAdapter(IJBossServerRuntime.class, new
NullProgressMonitor());
String config = jbsrt.getJBossConfiguration();
- String newTemp = new Path(IJBossServerConstants.SERVER).append(config)
+ IPath newTemp = new Path(IJBossServerConstants.SERVER).append(config)
.append(IJBossServerConstants.TMP)
- .append(IJBossServerConstants.JBOSSTOOLS_TMP).makeRelative().toString();
- new File(newTemp).mkdirs();
+ .append(IJBossServerConstants.JBOSSTOOLS_TMP).makeRelative();
+ IPath newTempAsGlobal = DeployableServer.makeGlobal(jbsrt, newTemp);
+ newTempAsGlobal.toFile().mkdirs();
}
}