You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jh...@apache.org on 2006/02/22 15:30:37 UTC

svn commit: r379780 - /ant/core/trunk/docs/manual/CoreTypes/filterchain.html

Author: jhm
Date: Wed Feb 22 06:30:19 2006
New Revision: 379780

URL: http://svn.apache.org/viewcvs?rev=379780&view=rev
Log:
fix error in sample code

Modified:
    ant/core/trunk/docs/manual/CoreTypes/filterchain.html

Modified: ant/core/trunk/docs/manual/CoreTypes/filterchain.html
URL: http://svn.apache.org/viewcvs/ant/core/trunk/docs/manual/CoreTypes/filterchain.html?rev=379780&r1=379779&r2=379780&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTypes/filterchain.html (original)
+++ ant/core/trunk/docs/manual/CoreTypes/filterchain.html Wed Feb 22 06:30:19 2006
@@ -1350,11 +1350,13 @@
     <pre>
 &lt;copy todir="dist"&gt;
   &lt;fileset dir="src" includes="**/*.txt"/&gt;
-  &lt;scriptfilter language="beanshell"&gt;
-      if (self.getToken().indexOf("bad") != -1) {
-          self.setToken(null);
-      }
-  &lt;/scriptfilter&gt;
+  &lt;filterchain&gt;
+    &lt;scriptfilter language="beanshell"&gt;
+        if (self.getToken().indexOf("bad") != -1) {
+            self.setToken(null);
+        }
+    &lt;/scriptfilter&gt;
+  &lt;/filterchain&gt;
 &lt;/copy&gt;
     </pre>
   </blockquote>
@@ -1400,4 +1402,4 @@
 <hr>
 
 <p align=center>Copyright &copy; 2002-2006 The Apache Software Foundation. All rights
-Reserved.</p></body></html>
+Reserved.</p></body></html>
\ No newline at end of file



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