sb.append(nodeVersion); if (OSDetector.isWindows() && _npmVersions.containsKey(nodeVersion)) { String bitmode = OSDetector.getBitmode(); if (OSDetector.isApple()) { os = "darwin"; else if (OSDetector.isWindows()) { os = "win"; sb.append("-x"); String bitmode = OSDetector.getBitmode(); if (OSDetector.isWindows()) { sb.append(".zip");
private List<String> _getCommandLine() { List<String> commandLine = new ArrayList<>(); if (OSDetector.isWindows()) { commandLine.add("cmd"); commandLine.addAll(_getWindowsArgs()); } else { commandLine.add(_getExecutable()); commandLine.addAll(GradleUtil.toStringList(getArgs())); } return commandLine; }
private List<String> _getCommandLine() { List<String> commandLine = new ArrayList<>(); if (OSDetector.isWindows()) { commandLine.add("cmd"); commandLine.addAll(_getWindowsArgs()); } else { commandLine.add(_getExecutable()); commandLine.addAll(GradleUtil.toStringList(getArgs())); } return commandLine; }
sb.append(nodeVersion); if (OSDetector.isWindows() && _npmVersions.containsKey(nodeVersion)) { String bitmode = OSDetector.getBitmode(); if (OSDetector.isApple()) { os = "darwin"; else if (OSDetector.isWindows()) { os = "win"; sb.append("-x"); String bitmode = OSDetector.getBitmode(); if (OSDetector.isWindows()) { sb.append(".zip");
@Override public void execute(ExecSpec execSpec) { if (OSDetector.isWindows()) { execSpec.args( "/MIR", "/NDL", "/NFL", "/NJH", "/NJS", "/NP", sourceDir.getAbsolutePath(), targetDir.getAbsolutePath()); execSpec.setExecutable("robocopy"); } else { execSpec.args( "--archive", "--delete", sourceDir.getAbsolutePath() + File.separator, targetDir.getAbsolutePath()); execSpec.setExecutable("rsync"); } execSpec.setIgnoreExitValue(true); }
@Override public String call() throws Exception { String npmVersion = getNpmVersion(); if (OSDetector.isWindows() && Validator.isNull(npmVersion)) { String nodeVersion = getNodeVersion(); if (_npmVersions.containsKey(nodeVersion)) { npmVersion = _npmVersions.get(nodeVersion); } } if (Validator.isNull(npmVersion)) { return null; } return "https://registry.npmjs.org/npm/-/npm-" + npmVersion + ".tgz"; }
@Override public String call() throws Exception { String npmVersion = getNpmVersion(); if (OSDetector.isWindows() && Validator.isNull(npmVersion)) { String nodeVersion = getNodeVersion(); if (_npmVersions.containsKey(nodeVersion)) { npmVersion = _npmVersions.get(nodeVersion); } } if (Validator.isNull(npmVersion)) { return null; } return "https://registry.npmjs.org/npm/-/npm-" + npmVersion + ".tgz"; }
@Override public void execute(ExecSpec execSpec) { if (OSDetector.isWindows()) { execSpec.args( "/MIR", "/NDL", "/NFL", "/NJH", "/NJS", "/NP", sourceDir.getAbsolutePath(), targetDir.getAbsolutePath()); execSpec.setExecutable("robocopy"); } else { execSpec.args( "--archive", "--delete", sourceDir.getAbsolutePath() + File.separator, targetDir.getAbsolutePath()); execSpec.setExecutable("rsync"); } execSpec.setIgnoreExitValue(true); }
if (!OSDetector.isWindows()) { File binDir = new File(nodeDir, "bin");
if (!OSDetector.isWindows()) { File binDir = new File(nodeDir, "bin");
if (!OSDetector.isWindows()) { _createBinDirLinks(logger, nodeModulesDir);
if (!OSDetector.isWindows()) { _createBinDirLinks(logger, nodeModulesDir);