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:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 8:00 AM
To: [EMAIL PROTECTED]
Subject: Re: How to concatenate files in ant
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) [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