workcraft/workcraft

View on GitHub
workcraft/WorkcraftCore/src/org/workcraft/utils/ExecutableUtils.java

Summary

Maintainability
A
0 mins
Test Coverage
package org.workcraft.utils;

import java.io.File;

public class ExecutableUtils {

    public static String getAbsoluteCommandPath(String path) {
        File file = new File(path);
        return file.exists() ? file.getAbsolutePath() : file.getPath();
    }

}