if the string "DONTPROCESS" **only*$ appears in these files and not the
others...
<delete>
<fileset dir="${xmlfiles}" includes="**/*.xml">
<contains text="DONTPROCESS" casesensitive="yes"/>
</fileset>
</delete>
/t
>-----Original Message-----
>From: Robert Soesemann [mailto:[EMAIL PROTECTED]
>Sent: Thursday, December 02, 2004 6:09 PM
>To: Ant Users List
>Subject: Delete XML Files depending on content
>
>Hello,
>
>I am looking for a clean and fast way to delete XML files depending on
>their content.
>
>To give you an idea of what I am doing: During a time consuming
>migration process I need to scan a folder structure for relevant files
>that need to be xsltransformed and validated and so on...
>Files that are not relevant will be marked by an xslt with an
>empty root
>node <DONTPROCESS/>
>
>In Ant I want to delete all xml files that have this node.
>
>Any ideas would be welcome!
>
>Thanks in advance,
>
>Robert
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]