[shrinkwrap-issues] [JBoss JIRA] (SHRINKRES-125) Using asSingleFile only works if you return a single file
Andrew Rubinger (JIRA)
jira-events at lists.jboss.org
Thu Apr 18 09:38:53 EDT 2013
[ https://issues.jboss.org/browse/SHRINKRES-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768478#comment-12768478 ]
Andrew Rubinger commented on SHRINKRES-125:
-------------------------------------------
Tommy is correct. The description of this issue notes {code} You should be able to replace asFile()[0] with asSingleFile,{code} which is not true.
>From the API Docs:
{code}/**
* Formats the resultant artifact as a {@link File}; assumes a single artifact is returned from resolution.
*
* @return
*/
File asSingleFile() throws NonUniqueResultException, NoResolvedResultException;{code}
> Using asSingleFile only works if you return a single file
> ---------------------------------------------------------
>
> Key: SHRINKRES-125
> URL: https://issues.jboss.org/browse/SHRINKRES-125
> Project: ShrinkWrap Resolvers
> Issue Type: Feature Request
> Reporter: John Ament
>
> In this code example
> return Maven.resolver().offline().loadPomFromFile("pom.xml")
> .resolve(artifact)
> .withTransitivity().asFile()[0];
> You should be able to replace asFile()[0] with asSingleFile, however it doesn't work since multiple files are actually returned.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the shrinkwrap-issues
mailing list