--- a/jdk/test/tools/pack200/Utils.java Mon Aug 23 10:19:20 2010 -0700
+++ b/jdk/test/tools/pack200/Utils.java Mon Aug 23 10:47:42 2010 -0700
@@ -415,12 +415,17 @@
}
return out;
}
-
static List<String> runExec(List<String> cmdsList) {
+ return runExec(cmdsList, null);
+ }
+ static List<String> runExec(List<String> cmdsList, Map<String, String> penv) {
ArrayList<String> alist = new ArrayList<String>();
ProcessBuilder pb =
new ProcessBuilder(cmdsList);
Map<String, String> env = pb.environment();
+ if (penv != null && !penv.isEmpty()) {
+ env.putAll(penv);
+ }
pb.directory(new File("."));
dirlist(new File("."));
for (String x : cmdsList) {