ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Add file with complete path to zip-file
Date Wed, 17 Jul 2002 08:58:00 GMT
On Wed, 17 Jul 2002, Martin Monsorno <> wrote:

> What I want to do is to add a file that I have referenced as a
> property containing the complete path to the file to a zip-file, but
> without the path.

I think you will like the basename and dirname tasks of Ant 1.5.

Basically, split your property into two with the help of above tasks
and use a fileset with the dirname part as dir and the basename part
as include pattern.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message