Author: rob.stryker(a)jboss.com
Date: 2009-11-09 17:31:47 -0500 (Mon, 09 Nov 2009)
New Revision: 18520
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishCopyUtil.java
Log:
JBIDE-5177
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishCopyUtil.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishCopyUtil.java 2009-11-09
22:26:49 UTC (rev 18519)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishCopyUtil.java 2009-11-09
22:31:47 UTC (rev 18520)
@@ -307,6 +307,7 @@
}
public IStatus[] deleteResource(IPath resource, IProgressMonitor monitor) {
+ resource = deployRootFolder.append(resource);
if( resource.toFile().isDirectory())
return deleteDirectory(resource.toFile(), monitor);
if( !resource.toFile().delete()) {
@@ -398,8 +399,8 @@
return false;
}
- public IStatus[] makeDirectoryIfRequired(IPath dir, IProgressMonitor monitor) {
- dir.toFile().mkdirs();
+ public IStatus[] makeDirectoryIfRequired(IPath relativeDir, IProgressMonitor monitor)
{
+ deployRootFolder.append(relativeDir).toFile().mkdirs();
return new IStatus[] {Status.OK_STATUS};
}