[shrinkwrap-issues] [JBoss JIRA] (SHRINKWRAP-496) Implement CacheUrlAsset

Karel Piwko (JIRA) issues at jboss.org
Mon Nov 23 12:41:00 EST 2015


    [ https://issues.jboss.org/browse/SHRINKWRAP-496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132868#comment-13132868 ] 

Karel Piwko commented on SHRINKWRAP-496:
----------------------------------------

My original plan was to have Arquillian Spacelift to be able to download and cache artifact in Maven repo. However, it was never implemented :-(. Maybe kindly asking [~mjobanek] would do the job :-).

I like [~alrubinger] comment about reproducibility. However, most of the testing assumes that the same holds for Maven, Gradle and such and these tools are also caching - but they have an option to force update. That said, it seems more reasonable to me to have such functionality not a part of SW but rather as an extension to it.

> Implement CacheUrlAsset
> -----------------------
>
>                 Key: SHRINKWRAP-496
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-496
>             Project: ShrinkWrap
>          Issue Type: Feature Request
>          Components: api
>    Affects Versions: 1.2.3
>            Reporter: Alex Soto
>            Priority: Minor
>
> In ShrinkWrap UrlAsset downloaded an asset from a URL, which can be external and then it creates the Archive element with that info. The problem is that sometimes you might want to download a big file (2MB) to put inside an Archive, and this means that for each test class that you execute you end up by downloading this file.
> A possible solution could be create a CacheUrlAsset that downloads the content and stores it in {java.io.tmp}/shrinkwrap so in successive calls before downloading the file again, it can take it directly from cache directory.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the shrinkwrap-issues mailing list