hudson.Launcher.inherit()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中hudson.Launcher.inherit()方法的一些代码示例,展示了Launcher.inherit()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Launcher.inherit()方法的具体详情如下:
包路径:hudson.Launcher
类名称:Launcher
方法名:inherit

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);
}

相关文章