ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Kost <>
Subject outputting a fileset as xml
Date Tue, 30 Apr 2002 09:39:01 GMT

I've search the web, the mailing lists and even asked friends - but no
answer has been found.
I need a fileset as xml :
to further process this with the styler (I am trying to build my EJB
deployment descriptor from fragments).
I currently tried the follwoing code :

<delete file="${basePath}/xmlfiles.xml"/>
<echo file="${basePath}/xmlfiles.xml">&lt;files&gt;
<exec dir="${basePath}"
      executable="find" output="${basePath}/xmlfiles.xml">
	<arg line="${sourcePath} -name &quot;ejb-jar.xml&quot; -printf
		&quot;  &lt;file&gt;%p&lt;/file&gt;\n&quot;"/>
<echo file="${basePath}/xmlfiles.xml" append="yes">&lt;/files&gt;

This isn't nice as I need to use exec to use the unix-find command.
And it doesn't work as exec has no append option like exec

Does anyone know about a external task to do it. Otherwise I will check
the docs and write one.


 < W E B M A C H E R > 

POST: August Bebel Str. 69
      04275 Leipzig

FON:  +49 341 30 34 833
FAX:  +49 341 30 34 840

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

View raw message