ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1480] Changed - Bad Environment kills ant
Date Tue, 24 Apr 2001 17:36:45 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1480

*** shadow/1480	Tue Apr 24 09:23:25 2001
--- shadow/1480.tmp.16664	Tue Apr 24 10:36:45 2001
***************
*** 2,11 ****
  | Bad Environment kills ant                                                  |
  +----------------------------------------------------------------------------+
  |        Bug #: 1480                        Product: Ant                     |
! |       Status: NEW                         Version: 1.3                     |
! |   Resolution:                            Platform: PC                      |
! |     Severity: Normal                   OS/Version:                         |
! |     Priority:                           Component: Core tasks              |
  +----------------------------------------------------------------------------+
  |  Assigned To: ant-dev@jakarta.apache.org                                   |
  |  Reported By: neil+apache@askneil.com                                      |
--- 2,11 ----
  | Bad Environment kills ant                                                  |
  +----------------------------------------------------------------------------+
  |        Bug #: 1480                        Product: Ant                     |
! |       Status: RESOLVED                    Version: 1.3                     |
! |   Resolution: INVALID                    Platform: PC                      |
! |     Severity: Normal                   OS/Version: All                     |
! |     Priority: High                      Component: Core tasks              |
  +----------------------------------------------------------------------------+
  |  Assigned To: ant-dev@jakarta.apache.org                                   |
  |  Reported By: neil+apache@askneil.com                                      |
***************
*** 44,48 ****
                  if (pos > 0) {
                          props.put(prefix + entry.substring(0, pos), 
                                  entry.substring(pos + 1));
                  }
!             }
--- 44,62 ----
                  if (pos > 0) {
                          props.put(prefix + entry.substring(0, pos), 
                                  entry.substring(pos + 1));
+                 }
+             }
+ 
+ ------- Additional Comments From nico@apache.org  2001-04-24 10:36 -------
+ Already fixed in CVS - current code reads: 
+ 
+             for (Enumeration e = osEnv.elements(); e.hasMoreElements(); ) {
+                 String entry = (String)e.nextElement();
+                 int pos = entry.indexOf('=');
+                 if (pos == -1) {
+                     log("Ignoring: " + entry, Project.MSG_WARN);
+                 } else {
+                     props.put(prefix + entry.substring(0, pos), 
+                               entry.substring(pos + 1));
                  }
!             }

Mime
View raw message