ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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 <monsorno-nospam@gmx.de> 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.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message