ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <>
Subject AW: Split files using Ant
Date Fri, 05 Dec 2003 20:40:18 GMT
Hi Kavitha,

do I understand that you want to split one xml file into several ?

You might want to write xsl stylesheets to do that, and do the splitting by
using the <style/> task of ant.

<style/> is part of ant.

There are also some external tasks which can process XML files : have a look
on this web page :
I have read some postings mentioning the XmlTask which is at the end of this
list, there might be other suitable tasks as well.

If you think you can do your splitting with non xml aware tools, there are
also some filters in ant with which you can extract the n first lines of a
find a location, ... a little bit like with UNIX command line tools. See
this manual page :
(from the manual of the 1.6 beta)



-----Urspr√ľngliche Nachricht-----
Von: Kavitha Ranga []
Gesendet: Freitag, 5. Dezember 2003 19:20
Betreff: Split files using Ant

   I am using Jbuilder for developing EJB .
The deployment descriptor files like the ejb-jar.xml
, jboss.xml are all grouped into a single file as ejbgrpx by Jbuilder.
In my build process I check out all the files from CVS
and build the jar for the EJB.But since all the descriptor
files are gouped into one file, I want to split the file into
individual xml files during the build using Ant.

Any help is appreciated.

thanks in Advance,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message