http://nagoya.apache.org/bugzilla/show_bug.cgi?id=904
*** shadow/904 Thu Mar 8 09:38:28 2001 --- shadow/904.tmp.22016 Thu Mar 8 09:38:29 2001 *************** *** 0 **** --- 1,34 ---- + +============================================================================+ + | Reading System Properties may return Objects | + +----------------------------------------------------------------------------+ + | Bug #: 904 Product: Ant | + | Status: NEW Version: 1.2 | + | Resolution: Platform: All | + | Severity: Normal OS/Version: All | + | Priority: Component: Core | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + When invoking ant from within a running vm, the system properties may contain + objects, in contrast to calling ant from a shell, when they will only contain + strings. This is an extremely useful feature of the system properties, and + should not lead to problems when using ant. + + However, the system properties containing objects will cause a type cast error + in ant's Project.java. I'd like to submit the following fix for this issue: + + Index: Project.java + =================================================================== + RCS file: + /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/Project.java,v + retrieving revision 1.53 + diff -r1.53 Project.java + 207c207 + < String value = (String) systemP.get(name); + --- + > String value = systemP.get(name).toString(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
