Package pl.allegro.tdr.gruntmaven.executable

Examples of pl.allegro.tdr.gruntmaven.executable.Executable


    @Parameter(property = "ignoreAllErrors", defaultValue = "false")
    private boolean ignoreAllErrors;

    @Override
    protected List<Executable> getExecutables() {
        Executable executable;
        if (runGruntWithNode) {
            executable = new Executable(nodeExecutable, customSuccessCodes());
        } else {
            executable = new Executable(gruntExecutable, customSuccessCodes());
        }

        appendArguments(executable);

        return Arrays.asList(executable);
View Full Code Here


    @Parameter(property = "bowerOptions")
    private String[] bowerOptions;

    @Override
    protected List<Executable> getExecutables() {
        Executable executable = new Executable(bowerExecutable);

        executable.addArgument(BOWER_INSTALL_COMMAND);
        if (!showColors) {
            executable.addArgument("--color=false");
        }

        for(String opt: bowerOptions) {
            executable.addNormalizedArgument(opt, "=");
        }

        return Arrays.asList(executable);
    }
View Full Code Here

        TarUtil.untar(offlineModules, targetPath, getLog());
    }

    private Executable createNpmInstallExecutable() {
        Executable executable = new Executable(npmExecutable);
        executable.addArgument(NPM_INSTALL_COMMAND);
        executable.addArgument("--ignore-scripts");
        appendNoColorsArgument(executable);
        appendNpmOptions(executable);

        executable.addEnvironmentVars(npmEnvironmentVar);

        return executable;
    }
View Full Code Here

        return executable;
    }

    private Executable createNpmRebuildExecutable() {
        Executable executable = new Executable(npmExecutable);
        executable.addArgument(NPM_REBUILD_COMMAND);
        appendNoColorsArgument(executable);
        executable.addNormalizedArguments(npmRebuildOptions, "=");

        return executable;
    }
View Full Code Here

    @Parameter
    protected Map<String, String> npmEnvironmentVar;

    @Override
    protected List<Executable> getExecutables() {
        Executable executable = new Executable(npmExecutable);

        executable.addEnvironmentVars(npmEnvironmentVar);

        executable.addArgument(NPM_INSTALL_COMMAND);
        appendNoColorsArgument(executable);
        appendNpmOptions(executable);

        return Arrays.asList(executable);
    }
View Full Code Here

TOP

Related Classes of pl.allegro.tdr.gruntmaven.executable.Executable

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.