Hi list!

We have resource scoping today with the //build/resources and //build/testresources elements - this is OK for stuff that's supposed to end up in the archived artifact.

(yes - I am aware that a different targetPath may be specified - but these directories won't be added to the surefire classpath when executing the tests).

Very often one wants to have some other resources (typically configuration) added to the classpath when running tests / execution in a procution environment.

What do you guys think is the most appropiate approach to this?

1. automatically add [test]resources with a targetPath element to the surefire classpath?
2. add filtering to the jar plugin?
3. Add ability to append to surefire's classpath manually (See http://jira.codehaus.org/browse/MSUREFIRE-153).

It could also be solved by adding the targetPaths to the manifest's classpath entries - but solving it this way will require the resource/config directory to have the same name in all environments.


WDYT?

Regards,

David


--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to