ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <anto...@antbuild.com>
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 : http://ant.apache.org/external.html
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
file,
find a location, ... a little bit like with UNIX command line tools. See
this manual page :
http://ant.apache.org/manual-1.6beta/CoreTypes/filterchain.html
(from the manual of the 1.6 beta)

Cheers,

Antoine

-----Urspr√ľngliche Nachricht-----
Von: Kavitha Ranga [mailto:kavitha.ranganathan@mci.com]
Gesendet: Freitag, 5. Dezember 2003 19:20
An: user@ant.apache.org
Betreff: Split files using Ant


Hello,
   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,
Kavitha




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


Mime
View raw message