You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kavitha Ranga <ka...@mci.com> on 2003/12/05 19:20:10 UTC

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


AW: Split files using Ant

Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
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