Lines 109-115
Link Here
|
109 |
} else { |
109 |
} else { |
110 |
outputFolder = root.getFolder(outputPath); |
110 |
outputFolder = root.getFolder(outputPath); |
111 |
if (!outputFolder.exists()) |
111 |
if (!outputFolder.exists()) |
112 |
createFolder(outputFolder); |
112 |
createOutputFolder(outputFolder); |
113 |
} |
113 |
} |
114 |
sLocations.add( |
114 |
sLocations.add( |
115 |
ClasspathLocation.forSourceFolder((IContainer) target, outputFolder, entry.fullInclusionPatternChars(), entry.fullExclusionPatternChars())); |
115 |
ClasspathLocation.forSourceFolder((IContainer) target, outputFolder, entry.fullInclusionPatternChars(), entry.fullExclusionPatternChars())); |
Lines 246-255
Link Here
|
246 |
binaryLocations[i].cleanup(); |
246 |
binaryLocations[i].cleanup(); |
247 |
} |
247 |
} |
248 |
|
248 |
|
249 |
private void createFolder(IContainer folder) throws CoreException { |
249 |
private void createOutputFolder(IContainer outputFolder) throws CoreException { |
250 |
if (!folder.exists()) { |
250 |
createParentFolder(outputFolder.getParent()); |
251 |
createFolder(folder.getParent()); |
251 |
((IFolder) outputFolder).create(IResource.FORCE | IResource.DERIVED, true, null); |
252 |
((IFolder) folder).create(true, true, null); |
252 |
} |
|
|
253 |
|
254 |
private void createParentFolder(IContainer parent) throws CoreException { |
255 |
if (!parent.exists()) { |
256 |
createParentFolder(parent.getParent()); |
257 |
((IFolder) parent).create(true, true, null); |
253 |
} |
258 |
} |
254 |
} |
259 |
} |
255 |
|
260 |
|