All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.sdorra.buildfrontend.Node Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package com.github.sdorra.buildfrontend;

import com.google.common.annotations.VisibleForTesting;

import java.io.File;

public class Node {

    private final File workingDirectory;
    private final File executable;

    Node(File workingDirectory, File executable) {
        this.workingDirectory = workingDirectory;
        this.executable = executable;
    }

    @VisibleForTesting
    File getExecutable() {
        return executable;
    }

    public void execute(String command, String... args) {
        builder().execute(command, args);
    }

    public NodeExecutionBuilder builder() {
        return new NodeExecutionBuilder(workingDirectory, executable);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy