mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 04:55:10 +00:00
This commit is contained in:
parent
57b1cde03a
commit
601620b039
@ -88,8 +88,12 @@ public class StyleLoader {
|
||||
InputStream internalIs = null;
|
||||
SFile localFile = new SFile(filename);
|
||||
Log.info("Trying to load style " + filename);
|
||||
if (localFile.exists() == false)
|
||||
localFile = FileSystem.getInstance().getFile(filename);
|
||||
try {
|
||||
if (localFile.exists() == false)
|
||||
localFile = FileSystem.getInstance().getFile(filename);
|
||||
} catch (IOException e) {
|
||||
Log.info("Cannot open file. " + e);
|
||||
}
|
||||
|
||||
if (localFile.exists()) {
|
||||
Log.info("File found : " + localFile.getPrintablePath());
|
||||
@ -104,7 +108,6 @@ public class StyleLoader {
|
||||
}
|
||||
return internalIs;
|
||||
}
|
||||
|
||||
private void loadSkinInternal(final BlocLines lines) {
|
||||
for (Style newStyle : getDeclaredStyles(lines, styleBuilder))
|
||||
this.styleBuilder.loadInternal(newStyle.getSignature(), newStyle);
|
||||
|
Loading…
Reference in New Issue
Block a user