[snip]
Simon Laws wrote:
>> In particular I will need to copy some schema and wsdl files from one
>> module to another.
>> I notice that various build helper plugins are used in
>> various poms. Is there a recommended one for copying resources in
from
>> dependencies.
I apologize if I missed it in an earlier thread but why would the build
need to copy the files around?
No problem. I wasn't very clear. The question was motivated by needing to
use all of the resource (XSDs etc) in the common module in the other
test
modules. I.e. I want to use the same XSD across tests but don't want to
create manual copies=. How do the processors in each test access the
common
resources?
As always, there's probably many ways to do it, but here's one way.
Add this to your pom:
<dependency>
<groupId>...</groupId>
<artifactId>common</artifactId>
<version>...</version>
<scope>test</scope>
</dependency>
Put abc.wsdl in common/src/main/resources.
And in your test case:
getClass().getClassLoader().getResourceAsStream("abc.wsdl")
Hope this helps.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]