Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2014-11-05 09:41:26 +0000
committerSebastian Struckmann2014-11-05 14:28:34 +0000
commitcabcdd2f7be6cc45897ab0741fafd73ebdfc2ed6 (patch)
treee584655b52872b0b635d7217eac0ccdebd2836e4 /org.eclipse.jubula.toolkit.api.gen
parentad492490508dd707fba405eca4dc0326c58917d6 (diff)
downloadorg.eclipse.jubula.core-cabcdd2f7be6cc45897ab0741fafd73ebdfc2ed6.tar.gz
org.eclipse.jubula.core-cabcdd2f7be6cc45897ab0741fafd73ebdfc2ed6.tar.xz
org.eclipse.jubula.core-cabcdd2f7be6cc45897ab0741fafd73ebdfc2ed6.zip
Sprint task - Java API - Fixed creation/cleanup of resource folder in o.e.j.client.api.converter
Diffstat (limited to 'org.eclipse.jubula.toolkit.api.gen')
-rw-r--r--org.eclipse.jubula.toolkit.api.gen/src/org/eclipse/jubula/toolkit/api/gen/internal/APIGenerator.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/org.eclipse.jubula.toolkit.api.gen/src/org/eclipse/jubula/toolkit/api/gen/internal/APIGenerator.java b/org.eclipse.jubula.toolkit.api.gen/src/org/eclipse/jubula/toolkit/api/gen/internal/APIGenerator.java
index 3c9715b6a..698fff986 100644
--- a/org.eclipse.jubula.toolkit.api.gen/src/org/eclipse/jubula/toolkit/api/gen/internal/APIGenerator.java
+++ b/org.eclipse.jubula.toolkit.api.gen/src/org/eclipse/jubula/toolkit/api/gen/internal/APIGenerator.java
@@ -98,11 +98,16 @@ public class APIGenerator {
String converterInfoDir = loader.getConverterInfoDir();
// Clean up
- try {
- FileUtils.cleanDirectory(new File(converterInfoDir));
- } catch (IOException e) {
- e.printStackTrace();
- System.exit(1);
+ File converterDirectory = new File(converterInfoDir);
+ if (converterDirectory.exists()) {
+ try {
+ FileUtils.cleanDirectory(converterDirectory);
+ } catch (IOException e) {
+ e.printStackTrace();
+ System.exit(1);
+ }
+ } else {
+ converterDirectory.mkdirs();
}
for (ToolkitInfo tkInfo : toolkitInfos) {
cleanUp(tkInfo, generationBaseDir);

Back to the top