[shrinkwrap-issues] [JBoss JIRA] Commented: (SHRINKWRAP-249) Support add directory content

Davide D'Alto (JIRA) jira-events at lists.jboss.org
Fri Mar 18 06:37:45 EDT 2011


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

Davide D'Alto commented on SHRINKWRAP-249:
------------------------------------------

Do I have to add it every time a resource is a folder?

You can find a first prototype on github: https://github.com/DavideD/shrinkwrap/commits/SHRINKWRAP-249

It's implemented for:
addAsManifestResource(File resource, String target)
addAsManifestResource(File resource, ArchivePath target)
addAsManifestResource(File resource)
addAsManifestResource(String resource)

I would appreciate some feedback, just to know if I'm on the right direction.

Thanks

> Support add directory content
> -----------------------------
>
>                 Key: SHRINKWRAP-249
>                 URL: https://issues.jboss.org/browse/SHRINKWRAP-249
>             Project: ShrinkWrap
>          Issue Type: Feature Request
>          Components: api, impl-base
>    Affects Versions: 1.0.0-alpha-11
>            Reporter: Aslak Knutsen
>            Assignee: Davide D'Alto
>
> A common use case is to add multiple Assets from your directory structure:
> addManifestResource("src/main/resources/META-INF/name", "name") 
> addManifestResource("src/main/resources/META-INF/name2", "name2") 
> This can be quite painful if you have a lot of items, e.g. html/jsp/jsf
> We should support adding of recursive directory content, where target path is resolved as relative to where you add from:
> addManifestResource("src/main/resources/META-INF/")
> The expected target in the archive would be, root + CONTAINER_PATH + ('file.getName()' + parentDirectory if in a subdirectory of specified import source ) 
> src/main/resources/META-INF/test.html -> (CONTAINER_PATH) + test.html
> src/main/resources/META-INF/images/test.jpg -> (CONTAINER_PATH) + images/test.jpg

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the shrinkwrap-issues mailing list