You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/05/13 20:20:06 UTC
DO NOT REPLY [Bug 9043] New: -
Support to loading environment variables on IBM OS/390
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9043>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9043
Support to loading environment variables on IBM OS/390
Summary: Support to loading environment variables on IBM OS/390
Product: Ant
Version: 1.4.1
Platform: All
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Core tasks
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: bwit@pobox.com
Following is a context diff of the changes I had to make to
org.apache.tools.ant.taskdefs.Execute.java to support the evironment attribute
of the property task on OS/390. Sorry for the context diff, diff -u did not
work on my platforms.
Thanks,
Bob Withers
*** Execute.java.orig Mon May 13 13:09:38 2002
--- Execute.java Mon May 13 13:04:56 2002
***************
*** 164,171 ****
// Just try to use what we got
}
! BufferedReader in =
! new BufferedReader(new StringReader(out.toString()));
String var = null;
String line, lineSep = System.getProperty("line.separator");
while ((line = in.readLine()) != null) {
--- 164,175 ----
// Just try to use what we got
}
! BufferedReader in;
! if ("os/390".equalsIgnoreCase(System.getProperty("os.name")))
! in = new BufferedReader(new StringReader(out.toString
("Cp1047")));
! else
! in = new BufferedReader(new StringReader(out.toString()));
!
String var = null;
String line, lineSep = System.getProperty("line.separator");
while ((line = in.readLine()) != null) {
***************
*** 238,243 ****
--- 242,251 ----
String[] cmd = {"command.com", "/c", "set" };
return cmd;
}
+ }
+ else if (osname.indexOf("os/390") >= 0) {
+ String[] cmd = {"env"};
+ return(cmd);
}
else {
// Generic UNIX
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>