mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 15:26:52 -04:00
fixed a weird maven build issue on Windows.
This commit is contained in:
parent
fbf06ecd7d
commit
6acb0f49de
@ -67,7 +67,7 @@ public class ElementLibrary implements Iterable<ElementLibrary.ElementContainer>
|
||||
return new File("noLibFound");
|
||||
}
|
||||
if (path.endsWith("/target/classes/"))
|
||||
return new File(path.substring(0, path.length() - 16) + "/src/main/dig/lib");
|
||||
return toCanonical(new File(path.substring(0, path.length() - 16) + "/src/main/dig/lib"));
|
||||
if (path.endsWith("/target/Digital.jar"))
|
||||
return new File(path.substring(0, path.length() - 19) + "/src/main/dig/lib");
|
||||
if (path.endsWith("Digital.jar"))
|
||||
@ -76,6 +76,14 @@ public class ElementLibrary implements Iterable<ElementLibrary.ElementContainer>
|
||||
return new File("noLibFound");
|
||||
}
|
||||
|
||||
private static File toCanonical(File file) {
|
||||
try {
|
||||
return file.getCanonicalFile();
|
||||
} catch (IOException e) {
|
||||
return file;
|
||||
}
|
||||
}
|
||||
|
||||
private final HashMap<String, LibraryNode> map = new HashMap<>();
|
||||
private final HashSet<String> isProgrammable = new HashSet<>();
|
||||
private final ArrayList<LibraryListener> listeners = new ArrayList<>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user