How can I add a directory to my test classpath without putting it in the target/test-classes directory?

Basically I have a conf directory for bootstrapping embedded jboss in my JUnit test. Then I deploy the target/test-classes directory to jboss to deploy my code. If the conf files for jboss exist in target/ test-classes jboss attempts to re-deploy the conf files again!

I have tried setting

<testResource>
        <directory>${baseDir}/src/test/resources/jbossconf</directory>
        <targetPath>../jbossconf</targetPath>
</testResource>

This puts the conf files in target/jbossconf instead of in target/ test-classes/jbossconf but NOT on the classpath :(

Any help would be much appreciated.

Adrian

-----------------------------------------
This message (including any attachments) may contain confidential
information intended for a specific individual and purpose.  If you
are not the intended recipient, delete this message.  If you are
not the intended recipient, disclosing, copying, distributing, or
taking any action based on this message is strictly prohibited.

Reply via email to