本文整理了Java中hudson.Launcher.inherit()
方法的一些代码示例,展示了Launcher.inherit()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Launcher.inherit()
方法的具体详情如下:
包路径:hudson.Launcher
类名称:Launcher
方法名:inherit
[英]Expands the list of environment variables by inheriting current env variables.
[中]通过继承当前环境变量展开环境变量列表。
代码示例来源:origin: jenkinsci/jenkins
/**
* Expands the list of environment variables by inheriting current env variables.
*/
private static EnvVars inherit(@CheckForNull String[] env) {
// convert String[] to Map first
EnvVars m = new EnvVars();
if(env!=null) {
for (String e : env) {
int index = e.indexOf('=');
m.put(e.substring(0,index), e.substring(index+1));
}
}
// then do the inheritance
return inherit(m);
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Expands the list of environment variables by inheriting current env variables.
*/
private static EnvVars inherit(@CheckForNull String[] env) {
// convert String[] to Map first
EnvVars m = new EnvVars();
if(env!=null) {
for (String e : env) {
int index = e.indexOf('=');
m.put(e.substring(0,index), e.substring(index+1));
}
}
// then do the inheritance
return inherit(m);
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Expands the list of environment variables by inheriting current env variables.
*/
private static EnvVars inherit(String[] env) {
// convert String[] to Map first
EnvVars m = new EnvVars();
if(env!=null) {
for (String e : env) {
int index = e.indexOf('=');
m.put(e.substring(0,index), e.substring(index+1));
}
}
// then do the inheritance
return inherit(m);
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Expands the list of environment variables by inheriting current env variables.
*/
private static EnvVars inherit(String[] env) {
// convert String[] to Map first
EnvVars m = new EnvVars();
if(env!=null) {
for (String e : env) {
int index = e.indexOf('=');
m.put(e.substring(0,index), e.substring(index+1));
}
}
// then do the inheritance
return inherit(m);
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Expands the list of environment variables by inheriting current env variables.
*/
private static EnvVars inherit(String[] env) {
// convert String[] to Map first
EnvVars m = new EnvVars();
if(env!=null) {
for (String e : env) {
int index = e.indexOf('=');
m.put(e.substring(0,index), e.substring(index+1));
}
}
// then do the inheritance
return inherit(m);
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Expands the list of environment variables by inheriting current env
* variables.
*/
private static EnvVars inherit(String[] env) {
// convert String[] to Map first
EnvVars m = new EnvVars();
if (env != null) {
for (String e : env) {
int index = e.indexOf('=');
m.put(e.substring(0, index), e.substring(index + 1));
}
}
// then do the inheritance
return inherit(m);
}
内容来源于网络,如有侵权,请联系作者删除!