ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Scokart" <>
Subject Re: [Ivy] How to add a new option to ivy settings
Date Thu, 29 May 2008 06:47:47 GMT
The idea of configuring wether a retrieve should keep the server
timestamp or use the current time is great I think.

However, I would not put this parameter in the ivy file.  For the same
ivy files, some would like one option, other would preffer the other

I think it should better be a parameter of the retrieve task, or maybe
an attribute of the resolver in the settings file.
preservelastmodified sounds a good name (like the ant copy task).

Note that if you put it in the resolver settings, that should maybe
also impact the publish and the install task.
If you put it in both the settings and the task, then the task should
have the priority.


2008/5/29 Claudio Miranda <>:
>    I am doing some testing with Ivy and have implemented a small
> modification, to allow the downloaded resource to have the same date
> timestamp as the file in remote repo. It is a requirement from the customer.
>    At src, File dest,
> CopyProgressListener l)
>    I added
> dest.setLastModified(srcConn.getLastModified());
>    How is it possible to add an attribute "timestamp" to the "dependencies"
> xml tag ? See below, a sample:
> <ivy-module version="2.0">
>    <info organisation="" module="hello-ivy"/>
>    <dependencies timestamp="remote">
>      <dependency org="commons-lang" name="commons-lang" rev="2.0"/>
>      <dependency org="commons-cli" name="commons-cli" rev="1.0"/>
>      <dependency org="skaringa" name="skaringa" rev="r1p8"/>
>    </dependencies>
> </ivy-module>
>    It can have 2 values "remote" or "current", whereas "remote" set the
> last modified attribute, as the remote file is. The "current" means the
> current Ivy behavior.
>    How can I read the timestamp value, at BasicURLHandler class ?
>    This is the thread, with more explanation about this requested behavior
>    I plan to submit it as an enhancement to the Ivy issue tracking.
> Thanks
> Claudio Miranda
> -----
> Claudio Miranda
> --
> View this message in context:
> Sent from the Ant - Dev mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message