mirror of
https://github.com/octoleo/plantuml.git
synced 2025-04-08 19:21:52 +00:00
fix: add some hard-coded dot path for MacOS
https://github.com/plantuml/plantuml/issues/1583
This commit is contained in:
parent
4adacbabe5
commit
1e6ffb0bec
@ -48,10 +48,10 @@ class GraphvizLinux extends AbstractGraphviz {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected File specificDotExe() {
|
protected File specificDotExe() {
|
||||||
final File all[] = new File[] { new File("/usr/local/bin/dot"), new File("/usr/bin/dot"),
|
final File all[] = new File[] { new File("/usr/local/bin/dot"), new File("/opt/homebrew/bin/dot"),
|
||||||
new File("/opt/homebrew/bin/dot") };
|
new File("/opt/homebrew/opt/graphviz/bin/dot"), new File("/usr/bin/dot") };
|
||||||
for (File f : all)
|
for (File f : all)
|
||||||
if (f.exists())
|
if (f.exists() && f.canRead() && f.canExecute())
|
||||||
return f;
|
return f;
|
||||||
return new File("/opt/local/bin/dot");
|
return new File("/opt/local/bin/dot");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user