ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Soesemann" <rsoesem...@sapient.com>
Subject RE: Delete XML Files depending on content
Date Fri, 03 Dec 2004 08:20:29 GMT
Cool, that's easy.
Thanks,

Robert

-----Original Message-----
From: Peter Reilly [mailto:peterreilly@apache.org] 
Sent: Donnerstag, 2. Dezember 2004 18:35
To: Ant Users List
Subject: Re: Delete XML Files depending on content


<delete>
    <fileset dir="${xml.dir}" includes="**/*.xml">
       <contains text="&lt;DONTPROCESS/&gt;"/>
    </fileset>
</delete>

Peter

Robert Soesemann wrote:

>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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


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


Mime
View raw message