All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.plantuml.dot.GraphvizLinux Maven / Gradle / Ivy

There is a newer version: 1.2024.8
Show newest version
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.dot;

import java.io.File;

import net.sourceforge.plantuml.style.ISkinParam;

class GraphvizLinux extends AbstractGraphviz {
	// ::remove file when __CORE__

	GraphvizLinux(ISkinParam skinParam, String dotString, String... type) {
		super(skinParam, dotString, type);
	}

	@Override
	protected File specificDotExe() {
		final File all[] = new File[] { new File("/usr/local/bin/dot"), new File("/usr/bin/dot"),
				new File("/opt/homebrew/bin/dot") };
		for (File f : all)
			if (f.exists())
				return f;
		return new File("/opt/local/bin/dot");
	}

	@Override
	protected String getExeName() {
		return "dot";
	}

	public boolean graphviz244onWindows() {
		return false;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy