donaldp     01/11/30 19:33:57

  Modified:    src/main/org/apache/tools/ant ProjectHelper.java
  Log:
  Add a method replaceProperties(Project,String). This delegates directly to 
replaceProperties(Project,String,HashMap). The Map parameter contains all the 
properties in Project.
  
  This makes it easier to have a lighter coupling between tasks and Project.
  
  Revision  Changes    Path
  1.69      +13 -1     
jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.java
  
  Index: ProjectHelper.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.java,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- ProjectHelper.java        2001/11/09 15:48:11     1.68
  +++ ProjectHelper.java        2001/12/01 03:33:57     1.69
  @@ -722,7 +722,19 @@
           IntrospectionHelper ih = 
IntrospectionHelper.getHelper(parent.getClass());
           ih.storeElement(project, parent, child, tag);
       }
  -    
  +
  +    /**
  +     * Replace ${} style constructions in the given value with the string 
value of
  +     * the corresponding data types.
  +     *
  +     * @param value the string to be scanned for property references.
  +     * @since 1.5
  +     */
  +     public static String replaceProperties(Project project, String value)
  +            throws BuildException {
  +         return replaceProperties(project,value,project.getProperties());
  +     }
  +
       /**
        * Replace ${} style constructions in the given value with the string 
value of
        * the corresponding data types.
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to