mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-26 06:46:45 +00:00
This commit is contained in:
parent
57b1cde03a
commit
601620b039
@ -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);
|
||||||
|
try {
|
||||||
if (localFile.exists() == false)
|
if (localFile.exists() == false)
|
||||||
localFile = FileSystem.getInstance().getFile(filename);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user