This sounded familiar, so I looked around and found a split task that
I'd done a while back. It seems to me I wanted to send a largish log
file by email from Ant (like 4 or 5 megs), but the mail server had a 1MB
limit. I added the task to Antelope, docs for it are at:
http://antelope.tigris.org/nonav/docs/manual/bk03ch21.html
It is more or less modeled after the Linux/Unix split utility. There is
an example of using the task to split a file, then it shows how to put
it back together with Ant's concat task.
The Antelope home page is at:
http://antelope.tigris.org.
I'm okay with adding this task to the Ant tasks, or to AntContrib if
that would help.
Dale
Matt Benson wrote:
--- Ed Moon <[EMAIL PROTECTED]> wrote:
Here's how to use cat to put a file back together
again:
cat part1 part2 part3 part4 > wholefile
Or
cat part1 > wholefile
cat part2 >> wholefile
cat part3 >> wholefile
cat part4 >> wholefile
or, when they are in order:
cat part? > wholefile
should also work.
In the context of Ant, <concat> with <fileset> should
easily handle the reassembly. Since cat and split are
historically related, I would be +1 to adding a
contributed Java split implementation to Ant core, if
anyone cares to submit one.
-Matt
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]