本文整理了Java中com.github.eirslett.maven.plugins.frontend.lib.YarnRunner.execute()
方法的一些代码示例,展示了YarnRunner.execute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YarnRunner.execute()
方法的具体详情如下:
包路径:com.github.eirslett.maven.plugins.frontend.lib.YarnRunner
类名称:YarnRunner
方法名:execute
暂无
代码示例来源:origin: jooby-project/jooby
@Override
protected NodeTask newTask(FrontendPluginFactory factory, Config conf, ProxyConfig proxy,
Map<String, String> env, String nodeVersion) throws InstallationException {
Function<String, String> property = key -> conf.hasPath(key) ? conf.getString(key) : null;
factory.getYarnInstaller(proxy)
.setYarnVersion(yarnVersion)
.setYarnDownloadRoot(conf.getString("yarn.downloadRoot"))
.setUserName(property.apply("yarn.username"))
.setPassword(property.apply("yarn.password"))
.install();
YarnRunner yarn = factory.getYarnRunner(proxy, conf.getString("npm.registryURL"));
return (cmd, args) -> {
String cmdline = cmd + " " + Arrays.asList(args).stream().collect(Collectors.joining(" "));
yarn.execute(cmdline, env);
};
}
代码示例来源:origin: eirslett/frontend-maven-plugin
@Override
public void execute(FrontendPluginFactory factory) throws TaskRunnerException {
File packageJson = new File(this.workingDirectory, "package.json");
if (this.buildContext == null || this.buildContext.hasDelta(packageJson)
|| !this.buildContext.isIncremental()) {
ProxyConfig proxyConfig = getProxyConfig();
factory.getYarnRunner(proxyConfig, getRegistryUrl()).execute(this.arguments,
this.environmentVariables);
} else {
getLog().info("Skipping yarn install as package.json unchanged");
}
}
代码示例来源:origin: com.vaadin/flow-maven-plugin
args.append(networkConcurrency);
runnerManager.getYarnRunner().execute(args.toString(),
Collections.emptyMap());
} catch (TaskRunnerException e) {
代码示例来源:origin: com.github.eirslett/frontend-maven-plugin
@Override
public void execute(FrontendPluginFactory factory) throws TaskRunnerException {
File packageJson = new File(this.workingDirectory, "package.json");
if (this.buildContext == null || this.buildContext.hasDelta(packageJson)
|| !this.buildContext.isIncremental()) {
ProxyConfig proxyConfig = getProxyConfig();
factory.getYarnRunner(proxyConfig, getRegistryUrl()).execute(this.arguments,
this.environmentVariables);
} else {
getLog().info("Skipping yarn install as package.json unchanged");
}
}
内容来源于网络,如有侵权,请联系作者删除!