[
https://issues.jboss.org/browse/SHRINKRES-125?page=com.atlassian.jira.plu...
]
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