Examples of workingDir()


Examples of org.gradle.api.tasks.JavaExec.workingDir()

        JavaExec exec = makeTask("runClient", JavaExec.class);
        {
            exec.setMain(getClientRunClass());
            exec.jvmArgs("-Xincgc", "-Xmx1024M", "-Xms1024M", "-Dfml.ignoreInvalidMinecraftCertificates=true");
            exec.args(getClientRunArgs());
            exec.workingDir(delayedFile("{ASSET_DIR}/.."));
            exec.setStandardOutput(System.out);
            exec.setErrorOutput(System.err);

            exec.setGroup("ForgeGradle");
            exec.setDescription("Runs the Minecraft client");
View Full Code Here

Examples of org.gradle.api.tasks.JavaExec.workingDir()

        exec = makeTask("runServer", JavaExec.class);
        {
            exec.setMain(getServerRunClass());
            exec.jvmArgs("-Xincgc", "-Dfml.ignoreInvalidMinecraftCertificates=true");
            exec.workingDir(delayedFile("{ASSET_DIR}/.."));
            exec.args(getServerRunArgs());
            exec.setStandardOutput(System.out);
            exec.setStandardInput(System.in);
            exec.setErrorOutput(System.err);
View Full Code Here

Examples of org.gradle.api.tasks.JavaExec.workingDir()

        exec = makeTask("debugClient", JavaExec.class);
        {
            exec.setMain(getClientRunClass());
            exec.jvmArgs("-Xincgc", "-Xmx1024M", "-Xms1024M", "-Dfml.ignoreInvalidMinecraftCertificates=true");
            exec.args(getClientRunArgs());
            exec.workingDir(delayedFile("{ASSET_DIR}/.."));
            exec.setStandardOutput(System.out);
            exec.setErrorOutput(System.err);
            exec.setDebug(true);

            exec.setGroup("ForgeGradle");
View Full Code Here

Examples of org.gradle.api.tasks.JavaExec.workingDir()

        exec = makeTask("debugServer", JavaExec.class);
        {
            exec.setMain(getServerRunClass());
            exec.jvmArgs("-Xincgc", "-Dfml.ignoreInvalidMinecraftCertificates=true");
            exec.workingDir(delayedFile("{ASSET_DIR}/.."));
            exec.args(getServerRunArgs());
            exec.setStandardOutput(System.out);
            exec.setStandardInput(System.in);
            exec.setErrorOutput(System.err);
            exec.setDebug(true);
View Full Code Here

Examples of org.gradle.process.internal.DefaultExecAction.workingDir()

        } catch (IOException e) {
            throw new GradleException("Faild to store javadoc options.", e);
        }

        ExecAction execAction = new DefaultExecAction();
        execAction.workingDir(execDirectory);
        execAction.executable(GUtil.elvis(executable, Jvm.current().getJavadocExecutable()));
        execAction.args("@" + optionsFile.getAbsolutePath());

        options.contributeCommandLineOptions(execAction);
View Full Code Here

Examples of org.gradle.process.internal.ExecAction.workingDir()

        } catch (IOException e) {
            throw new GradleException("Faild to store javadoc options.", e);
        }

        ExecAction execAction = new DefaultExecAction();
        execAction.workingDir(execDirectory);
        execAction.executable(GUtil.elvis(executable, Jvm.current().getJavadocExecutable()));
        execAction.args("@" + optionsFile.getAbsolutePath());

        options.contributeCommandLineOptions(execAction);
View Full Code Here

Examples of org.gradle.process.internal.ExecAction.workingDir()

    public void execute(CommandLineToolInvocation invocation) {
        ExecAction compiler = execActionFactory.newExecAction();
        compiler.executable(executable);
        if (invocation.getWorkDirectory() != null) {
            GFileUtils.mkdirs(invocation.getWorkDirectory());
            compiler.workingDir(invocation.getWorkDirectory());
        }

        compiler.args(invocation.getArgs());

        if (!invocation.getPath().isEmpty()) {
View Full Code Here

Examples of org.gradle.process.internal.ExecAction.workingDir()

        } catch (IOException e) {
            throw new GradleException("Failed to store javadoc options.", e);
        }

        ExecAction execAction = execActionFactory.newExecAction();
        execAction.workingDir(execDirectory);
        execAction.executable(GUtil.elvis(executable, Jvm.current().getJavadocExecutable()));
        execAction.args("@" + optionsFile.getAbsolutePath());

        options.contributeCommandLineOptions(execAction);
View Full Code Here

Examples of org.gradle.process.internal.ExecHandleBuilder.workingDir()

        builder.setErrorOutput(errStream);
        builder.environment("GRADLE_HOME", "");
        builder.environment("JAVA_HOME", System.getProperty("java.home"));
        builder.environment("GRADLE_OPTS", "-ea");
        builder.environment(getEnvironmentVars());
        builder.workingDir(getWorkingDir());

        commandBuilder.build(builder);

        builder.args(getAllArgs());
View Full Code Here

Examples of org.gradle.process.internal.ExecHandleBuilder.workingDir()

                try {
                   
                    executionInfo = protocol.getExecutionInfo(getPort() );

                    ExecHandleBuilder builder = new ExecHandleBuilder();
                    builder.workingDir(executionInfo.getWorkingDirectory());
                    builder.commandLine((Object[]) executionInfo.getCommandLineArguments());
                    builder.environment(executionInfo.getEnvironmentVariables());
                    output = new ByteArrayOutputStream();
                    builder.setStandardOutput(output);
                    builder.setErrorOutput(output);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.