How can I zip multiple folders individually with ant?

I used for-each from ant contrib for this kind of thing. You may able to improve on this question : Ant: How to execute a command for each file in directory?

You don't want to use ant-contrib. Ant-contrib sucks, every time you use it, you're incurring technical debt. The number one thing to keep in mind when using ant: let ant be ant.

Ant is what it is. It's declarative. The original intent of ant was simple declarations of properties and with the meat of the work being done in java (where you had a real IDE with a debugger and test frameworks).

As noted in elements of ant style - "Let ant be ant". If you have to use ant-contrib, you should make your own ant task. If you can't do that, don't use ant.

Ant-contrib takes the worst of ant ant makes it worse, you'll soon find things unmaintainable. Enough ranting. You don't even need to make a task for this one, this should work... it takes everything dir in /tmp and zips it up.

Should get you most of the way there.

– aditsu Jun 10 at 11:42 yes and no, the doesn't support a mapper or redirector - you could make a zip task that did. You're exactly right that it's sub-optimal to call out to the zip executable... it should nearly always work on your linux box, but you're going to have trouble on a pc. – thekbb Jun 10 at 13:03 "the doesn't support a mapper or redirector" - the what?

– aditsu Jun 10 at 13:19 doh. That should have read: "the zip ant task doesn't support a mapper or redirector". I shouldn't even try to type before coffee.

– thekbb Jun 10 at 14:33.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions