ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Winters <cwint...@optiron.com>
Subject Re: How to concatenate files in ant
Date Thu, 10 May 2001 15:00:05 GMT
* debic@epiphany.com (debic@epiphany.com) [010509 18:08]:
> I need to do something like 
> 
> type a.txt b.txt c.txt >merged.txt
> 
> I tried the follwoing code but it doesn't seem to be working. Has anyone
> done something
> like that before? Thx.
> 
> 		<copy tofile="merged.txt">
> 			<fileset dir="." >
> 				<patternset>
> 				 <include name="aa"/>
> 				 <include name="bb"/>
> 				 <include name="cc"/>
>     				</patternset>
> 			</fileset>
> 		</copy>

I wrote a task to do this and would be happy to make it
available. I've been using it for months without a problem to create
EJB XML descriptors from lots (!) of individual XML files. The task
could probably written more elegantly, but I've only been doing Java
for a few months now :-)

Chris

Mime
View raw message