commit | 34f4c3b881d893cbdeb702d907d58487c7bc0329 | [log] [tgz] |
---|---|---|
author | Dorian Birsan <dbirsan> | Tue Oct 14 20:10:54 2003 +0000 |
committer | Dorian Birsan <dbirsan> | Tue Oct 14 20:10:54 2003 +0000 |
tree | 8b579ec2067dc8aa886aaaf0180d38e9a20ee438 | |
parent | 755a7df1cc4b42782f280e2b811c913a6187902b [diff] |
Create site directory when it does not exist
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/standalone/InstallCommand.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/standalone/InstallCommand.java index d97fcf8..98aac7c 100644 --- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/standalone/InstallCommand.java +++ b/update/org.eclipse.update.core/src/org/eclipse/update/internal/standalone/InstallCommand.java
@@ -51,6 +51,8 @@ IConfiguredSite[] sites = getConfiguration().getConfiguredSites(); if (toSite != null) { File sitePath = new File(toSite); + if (!sitePath.exists()) + sitePath.mkdirs(); URL toSiteURL = sitePath.toURL(); ISite site = SiteManager.getSite(toSiteURL, null); if (site == null) {