- private static String getPathToCmd() {
- //TODO this needs to come from config file!!
- //FIXME ..
- //should not be in this class!
- String path = "";
- final String os = ForesterUtil.OS_NAME.toLowerCase();
- if ( ( os.indexOf( "mac" ) >= 0 ) && ( os.indexOf( "os" ) > 0 ) ) {
- path = "/usr/local/bin/mafft";
- }
- else if ( os.indexOf( "win" ) >= 0 ) {
- path = "C:\\Program Files\\mafft-win\\mafft.bat";
- }
- else {
- path = "/home/czmasek/bin/mafft";
- }
- return path;
- }
-
- public static boolean isInstalled() {
- return SystemCommandExecutor.isExecuteableFile( new File( getPathToCmd() ) );
- }
-