1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-26 06:46:45 +00:00
PlantUML 2022-03-10 12:26:37 +01:00 committed by GitHub
parent 57b1cde03a
commit 601620b039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,8 +88,12 @@ public class StyleLoader {
InputStream internalIs = null; InputStream internalIs = null;
SFile localFile = new SFile(filename); SFile localFile = new SFile(filename);
Log.info("Trying to load style " + filename); Log.info("Trying to load style " + filename);
if (localFile.exists() == false) try {
localFile = FileSystem.getInstance().getFile(filename); if (localFile.exists() == false)
localFile = FileSystem.getInstance().getFile(filename);
} catch (IOException e) {
Log.info("Cannot open file. " + e);
}
if (localFile.exists()) { if (localFile.exists()) {
Log.info("File found : " + localFile.getPrintablePath()); Log.info("File found : " + localFile.getPrintablePath());
@ -104,7 +108,6 @@ public class StyleLoader {
} }
return internalIs; return internalIs;
} }
private void loadSkinInternal(final BlocLines lines) { private void loadSkinInternal(final BlocLines lines) {
for (Style newStyle : getDeclaredStyles(lines, styleBuilder)) for (Style newStyle : getDeclaredStyles(lines, styleBuilder))
this.styleBuilder.loadInternal(newStyle.getSignature(), newStyle); this.styleBuilder.loadInternal(newStyle.getSignature(), newStyle);