Skip to content

Commit 23c723b

Browse files
author
jan
committed
Reattaching libs when lib folder does not exists throws exception
As the lib folder is now per configuration there are use cases (like imported projects) where it is expected the folder does not yet exists. So just create the folder if it does not exists.
1 parent ac9a26c commit 23c723b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

io.sloeber.core/src/io/sloeber/core/internal/SloeberConfiguration.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,9 @@ public void reAttachLibraries() {
586586
// Remove all existing lib folders that are not known or are linking to the
587587
// wrong lib
588588
try {
589+
if(!libFolder.exists()) {
590+
libFolder.create(true, true, new NullProgressMonitor());
591+
}
589592
for (IResource curResource : libFolder.members()) {
590593
if (curResource instanceof IFolder) {
591594
IFolder curFolder = (IFolder) curResource;

0 commit comments

Comments
 (0)