ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eddie Bernard <ebern...@digitalthink.com>
Subject RE: How to concatenate files in ant
Date Tue, 15 May 2001 19:42:45 GMT
I'm having the same problem. 

Actually what I want to do is the following:

echo "blah blah blah" > foo.txt
echo bar.txt >> foo.txt

Could you please this task or e-mail it to me?

-----Original Message-----
From: Chris Winters [mailto:cwinters@optiron.com]
Sent: Thursday, May 10, 2001 8:00 AM
To: ant-user@jakarta.apache.org
Subject: Re: How to concatenate files in ant


* 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