ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/docs/manual/CoreTypes resources.html
Date Fri, 05 Aug 2005 18:07:11 GMT
mbenson     2005/08/05 11:07:11

  Modified:    src/main/org/apache/tools/ant/types/resources Restrict.java
               docs/manual/CoreTypes resources.html
  Log:
  Support cache attribute for <restrict>; delegate to component BaseRCWrapper.
  
  Revision  Changes    Path
  1.4       +16 -0     ant/src/main/org/apache/tools/ant/types/resources/Restrict.java
  
  Index: Restrict.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/resources/Restrict.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Restrict.java	5 Aug 2005 17:58:59 -0000	1.3
  +++ Restrict.java	5 Aug 2005 18:07:11 -0000	1.4
  @@ -68,6 +68,22 @@
       }
   
       /**
  +     * Set whether to cache collections.
  +     * @param b boolean cache flag.
  +     */
  +    public synchronized void setCache(boolean b) {
  +        w.setCache(b);
  +    }
  +
  +    /**
  +     * Learn whether to cache collections. Default is <code>true</code>.
  +     * @return boolean cache flag.
  +     */
  +    public synchronized boolean isCache() {
  +        return w.isCache();
  +    }
  +
  +    /**
        * Add a ResourceSelector.
        * @param s the ResourceSelector to add.
        */
  
  
  
  1.5       +13 -0     ant/docs/manual/CoreTypes/resources.html
  
  Index: resources.html
  ===================================================================
  RCS file: /home/cvs/ant/docs/manual/CoreTypes/resources.html,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- resources.html	5 Aug 2005 17:27:14 -0000	1.4
  +++ resources.html	5 Aug 2005 18:07:11 -0000	1.5
  @@ -324,6 +324,19 @@
   <h4><a name="restrict">restrict</a></h4>
   <p>Restricts another nested resource collection using resource selectors:
   <blockquote>
  +  <table border="1" cellpadding="2" cellspacing="0">
  +    <tr>
  +      <td valign="top"><b>Attribute</b></td>
  +      <td valign="top"><b>Description</b></td>
  +      <td align="center" valign="top"><b>Required</b></td>
  +    </tr>
  +    <tr>
  +      <td valign="top">cache</td>
  +      <td valign="top">Whether to cache results; disabling
  +        may seriously impact performance</td>
  +      <td valign="top" align="center">No, default <i>true</i></td>
  +    </tr>
  +  </table>
     <h4>Parameters specified as nested elements</h4>
     <p>A single resource collection is required.</p>
     <p>Nested resource selectors are used to "narrow down" the included
  
  
  

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


Mime
View raw message