本文整理了Java中org.apache.tools.ant.taskdefs.Execute.getProcEnvironment()
方法的一些代码示例,展示了Execute.getProcEnvironment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Execute.getProcEnvironment()
方法的具体详情如下:
包路径:org.apache.tools.ant.taskdefs.Execute
类名称:Execute
方法名:getProcEnvironment
[英]Find the list of environment variables for this process.
[中]查找此过程的环境变量列表。
代码示例来源:origin: io.prestosql.hadoop/hadoop-apache
/**
* Extracts environment properties on a JRE < 1.5. This implementation
* uses ant for this purpose.
*/
void extractProperties14()
{
extractPropertiesFromCollection(Execute.getProcEnvironment());
}
代码示例来源:origin: org.testatoo.openqa/selenium-server
/** Returns the current process environment variables
*
* @return the current process environment variables
*/
public static synchronized Properties loadEnvironment() {
if (env != null) return env;
// DGF lifted directly from Ant's Property task
env = new Properties();
Vector osEnv = Execute.getProcEnvironment();
for (Enumeration e = osEnv.elements(); e.hasMoreElements();) {
String entry = (String) e.nextElement();
int pos = entry.indexOf('=');
if (pos == -1) {
log.warn("Ignoring: " + entry);
} else {
env.put(entry.substring(0, pos),
entry.substring(pos + 1));
}
}
return env;
}
代码示例来源:origin: org.seleniumhq.selenium.server/selenium-server-coreless
/** Returns the current process environment variables
*
* @return the current process environment variables
*/
public static synchronized Properties loadEnvironment() {
if (env != null) return env;
// DGF lifted directly from Ant's Property task
env = new Properties();
Vector osEnv = Execute.getProcEnvironment();
for (Enumeration e = osEnv.elements(); e.hasMoreElements();) {
String entry = (String) e.nextElement();
int pos = entry.indexOf('=');
if (pos == -1) {
log.warn("Ignoring: " + entry);
} else {
env.put(entry.substring(0, pos),
entry.substring(pos + 1));
}
}
return env;
}
代码示例来源:origin: maven-nar/nar-maven-plugin
return new File[] {};
final Vector osEnv = Execute.getProcEnvironment();
final String match = envVariable.concat("=");
for (final Enumeration e = osEnv.elements(); e.hasMoreElements();) {
代码示例来源:origin: org.apache.maven/maven-ant-tasks
List<String> env = Execute.getProcEnvironment();
for ( String var: env )
内容来源于网络,如有侵权,请联系作者删除!