concept web in category ant

appears as: Web, Web
Ant in Action

This is an excerpt from Manning's book Ant in Action.

This <copy> task will copy only the files from the web directory that don’t exist in the currentfiles directory. Using the <contains> selector, we choose only those files containing a certain string:

<copy todir="currentfiles" includeemptydirs="false">
  <fileset dir="web">
    <contains text="System"/>
  </fileset>
</copy>

Only the files containing the text “System” in the web directory are copied to the currentfiles directory. By default <contains> is case-sensitive, but it can be changed using casesensitive="no".