You can probably do this with <foreach> from ant-contrib, creating a fileset with all month-based directories, and then running a target with each directory, doing a simple <zip> task.
Roland. > -----Message d'origine----- > De : Terry Steichen [mailto:terry@;net-frame.com] > Envoyé : lundi 4 novembre 2002 14:55 > À : Ant Users List > Objet : Archiving Question > > > I've got a directory that contains a variable number of > month-based subdirectories plus an archive directory. Each > month-based subdirectory holds documents for a given month, > so the name of the subdirectory is in the form of 'MMYY' > (1002, 1102, etc). All the files in a given month-based > subdirectory are archived in a similarly-named zip file > located in the archive directory (that is, the files in the > 1002 subdirectory are archived in a 1002.zip archive, etc.) > > What I'd like to do is periodically run an Ant script that > updates the zip files in the archive directory. Also, as > time passes additional month-based subdirectories are created > by a backend application, so new zip files must also be > periodically created. > > I'm trying to avoid writing a special task for this. It > seems like Ant can probably do this, but I can't figure out > how. Any thoughts would be appreciated. > > Regards, > > Terry > -- To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>