[ 
https://issues.apache.org/jira/browse/BUILDR-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timo Rantalaiho updated BUILDR-212:
-----------------------------------

    Attachment: BUILDR-212-update_snapshots_support.patch

Here's a simplistic patch ( BUILDR-212-update_snapshots_support.patch ) that 
does two things

1) If a dependency contains SNAPSHOT in its version and is older than one day, 
it's downloaded again whenever it will be used
2) If a dependency contains SNAPSHOT in its version and the option -u 
(--update-snapshots) is given, it's downloaded again whenever it will be used

One thing that's not very wise is that I had to add removing the file to be 
downloaded in Artifact.download before downloading. This causes the obvious 
problem that if the dependency was downloaded earlier but is now not found in 
remote repositories, it will be deleted :) So downloading should just be able 
to overwrite  an existing file, but I didn't have time to investigate how to do 
that.

Other thing that's still missing are the specs and updating the old specs, 
these ones fail with the patch

Rake::Task artifacts
- should download all specified artifacts (ERROR - 1)
- should fail if failed to download an artifact (FAILED - 2)
- should succeed if artifact already exists (FAILED - 3)

I looked at the specs briefly but they went way over my Ruby-noob head :)

It would be great if someone could finish this and that it could be applied to 
Ruby! This is one of the most important things missing now that downloading 
dependency sources is in.

> Snapshot update support
> -----------------------
>
>                 Key: BUILDR-212
>                 URL: https://issues.apache.org/jira/browse/BUILDR-212
>             Project: Buildr
>          Issue Type: Improvement
>            Reporter: Teppo Kurki
>         Attachments: BUILDR-212-update_snapshots_support.patch
>
>
> Buildr should be able to update snapshot versions of artefacts.
> http://mail-archives.apache.org/mod_mbox/incubator-buildr-user/200811.mbox/browser

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to