Author: rob.stryker(a)jboss.com
Date: 2007-11-19 15:35:39 -0500 (Mon, 19 Nov 2007)
New Revision: 4979
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishUtil.java
Log:
JBIDE-1338
added a mkdirs() if the folder is not created.
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishUtil.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishUtil.java 2007-11-19
19:31:32 UTC (rev 4978)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/xpl/PublishUtil.java 2007-11-19
20:35:39 UTC (rev 4979)
@@ -775,6 +775,9 @@
String path =
ServerAttributeHelper.createHelper(server)
.getAttribute(IDeployableServer.TEMP_DEPLOY_DIRECTORY, tempDir.getAbsolutePath());
+ File f = new File(path);
+ if( !f.exists() )
+ f.mkdirs();
return new File(path);
}
}
\ No newline at end of file
Show replies by date