ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r413541 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/PropertyResource.java
Date Sun, 11 Jun 2006 22:00:53 GMT
Author: stevel
Date: Sun Jun 11 15:00:52 2006
New Revision: 413541

URL: http://svn.apache.org/viewvc?rev=413541&view=rev
Log:
change policy of PropertyResource to return the actual dereferenced value.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/PropertyResource.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/PropertyResource.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/PropertyResource.java?rev=413541&r1=413540&r2=413541&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/PropertyResource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/PropertyResource.java Sun
Jun 11 15:00:52 2006
@@ -107,8 +107,7 @@
         if (isReference()) {
             return getCheckedRef().toString();
         }
-        return getName()!=null?("${"+getName()+"}")
-                :"null";
+        return String.valueOf(getValue());
     }
     
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message