ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John H. Lee" <j...@c.kiracom.com>
Subject [PATCH] All properties available as filters
Date Sun, 16 Jul 2000 06:13:53 GMT
My build.xml's are getting messy with <filter> tags for most user
properties and many system properties.  This change makes all properties
available as filters.  Make sense?  Patch below.

-John




Index: src/main/org/apache/tools/ant/Project.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/Project.java,v

retrieving revision 1.31
diff -u -r1.31 Project.java
--- src/main/org/apache/tools/ant/Project.java  2000/07/12 11:51:29
1.31
+++ src/main/org/apache/tools/ant/Project.java  2000/07/16 06:06:36
@@ -186,6 +186,7 @@
         log("Setting project property: " + name + " -> " +
             value, MSG_VERBOSE);
         properties.put(name, value);
+        addFilter(name, value);
     }

     public void setUserProperty(String name, String value) {
@@ -193,6 +194,7 @@
             value, MSG_VERBOSE);
         userProperties.put(name, value);
         properties.put(name, value);
+        addFilter(name, value);
     }

     public String getProperty(String name) {


Mime
View raw message