ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 904] New - Reading System Properties may return Objects
Date Thu, 08 Mar 2001 17:38:29 GMT
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: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: peter.holzwarth@io-software.com                              |
+ |      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: ant-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: ant-dev-help@jakarta.apache.org


Mime
View raw message