Package net.sourceforge.marathon.util

Examples of net.sourceforge.marathon.util.Path


    }

    protected Process launchVM(JavaRuntimeProfile jprofile, ILogger logViewLogger) throws IOException {
        String[] cmdElements = createCommand(jprofile);
        logger.info("Command: " + Arrays.asList(cmdElements));
        Path extendedClasspath = getExtendedClassPath(jprofile);
        ProcessBuilder processBuilder = new ProcessBuilder(cmdElements);
        Map<String, String> environ = processBuilder.environment();
        logger.info("Classpath: " + extendedClasspath);
        environ.put("CLASSPATH", extendedClasspath.toString());
        StringBuilder msg = new StringBuilder();
        msg.append("Command:\n").append(processBuilder.command().toString()).append("\n\n");
        msg.append("CLASSPATH set to:    \n").append(extendedClasspath.toString()).append("\n");
        logViewLogger.info("Launcher", "Launching Application", msg.toString());
        return processBuilder.directory(jprofile.getWorkingDirectory()).start();
    }
View Full Code Here


        logViewLogger.info("Launcher", "Launching Application", msg.toString());
        return processBuilder.directory(jprofile.getWorkingDirectory()).start();
    }

    protected Path getExtendedClassPath(JavaRuntimeProfile jprofile) {
        Path extendedClasspath = new Path(jprofile.getClasspath());
        return extendedClasspath;
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.util.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.