From b8e7754db69aa3c011bb866f50c9e1dcecac645b Mon Sep 17 00:00:00 2001 From: kuzniarz Date: Thu, 14 May 2020 16:51:49 +0200 Subject: [PATCH] Fixed first composite creation Composite properties file creation was failing if properties directory was not existent Signed-off-by: kuzniarz --- .../workspacecomposite/CompositeImportWizardController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.eclipse.buildship.ui/src/main/java/org/eclipse/buildship/ui/internal/wizard/workspacecomposite/CompositeImportWizardController.java b/org.eclipse.buildship.ui/src/main/java/org/eclipse/buildship/ui/internal/wizard/workspacecomposite/CompositeImportWizardController.java index 266f6ce658..9170ad33c7 100644 --- a/org.eclipse.buildship.ui/src/main/java/org/eclipse/buildship/ui/internal/wizard/workspacecomposite/CompositeImportWizardController.java +++ b/org.eclipse.buildship.ui/src/main/java/org/eclipse/buildship/ui/internal/wizard/workspacecomposite/CompositeImportWizardController.java @@ -211,7 +211,8 @@ public boolean performCreateComposite(IWizardContainer container, IWorkingSetMan workingSet.setId(IGradleCompositeIDs.NATURE); workingSetManager.addWorkingSet(workingSet); - + compositePreferenceFile.getParentFile().mkdir(); + compositePreferenceFile.createNewFile(); FileOutputStream out = new FileOutputStream(compositePreferenceFile.getAbsoluteFile()); Properties prop = getConfiguration().toCompositeProperties().toProperties(); prop.store(out, " ");