PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3048 *** shadow/3048 Wed Aug 8 10:32:00 2001 --- shadow/3048.tmp.6228 Wed Aug 8 10:32:00 2001 *************** *** 0 **** --- 1,27 ---- + +============================================================================+ + | line without "=" in environment causes exception | + +----------------------------------------------------------------------------+ + | Bug #: 3048 Product: Ant | + | Status: NEW Version: 1.3 | + | Resolution: Platform: PC | + | Severity: Major OS/Version: Other | + | Priority: Other Component: Core tasks | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + I am running under cygwin. There is a line in the environment that does not + contain an "=". This is an entry for PS1 command prompt that is a multiline + entry. I am using the following line in my build.xml file + <property name="env" environment="env."/> + This attempts to read in the environment but throws an exception and bails out + when it hits a line that does not contain an "=". The code that does this is in + src/main/org/apache/tools/ant/taskdefs/Property.java + line 247. This code looks for an "=" but if one doesn't exist in the line it is + parsing it gets an StringOutOfBounds exception because the variable "pos" is -1. + I suggest the code look for the error condition and check for -1 and not jus + throw a build exception. \ No newline at end of file
