Package com.alphacsp.cit.path

Examples of com.alphacsp.cit.path.Path


    public String getDescription() {
        return "Prints the environment variables";
    }

    public void execute(ExecutionContext context) {
        Path path = context.getEnvironment().getPath();

        context.println("native_os: " + path.toString(RenderHint.native_os));

        if (EnvironmentUtils.isWindows())
            context.println("unix: " + path.toString(RenderHint.unix));

        if (EnvironmentUtils.isCygwin()) {
            context.println("cygwin: " + path.toString(RenderHint.mixed));
        }
    }
View Full Code Here


        String windowsExecName = getWindowsExecutableName();
        if (windowsExecName == null || windowsExecName.length() == 0) {
            windowsExecName = getExecutableName() + ".exe";
        }
        Path path = context.getEnvironment().getPath();
        Collection<FileValue> elementsCopy = path.getElementsCopy();
        for (FileValue fileValue : elementsCopy) {
            File asFile = fileValue.getAsFile();
            if (asFile.exists() && asFile.isDirectory()) {
                File file = new File(asFile, windowsExecName);
                if (file.exists()) {
View Full Code Here

TOP

Related Classes of com.alphacsp.cit.path.Path

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.