Hi all,
 
I've been struggling with this for a few days now. We have a parent
project including several sub-projects. We have tests runing in both
test and integration-test phases.
 
In one of Seam 2.1 test framework classes they are calling
getClass().getResource("/"). This works well on Windows (Maven 2.0.8,
Surefire 2.4.3), the code returning path to test-classes folder of the
tested sub-project. On Linux (same versions), however, this only works
when I run the tests from the subproject's folder. The code returns null
when maven is started from the parent project.
 
I tried playing with forking, etc. Currenty I have:
 
<forkMode>once</forkMode>
<useSystemClassLoader>true</useSystemClassLoader>
<useManifestOnlyJar>true</useManifestOnlyJar>

 
BTW, on Linux it looks like the classpath is built differently by
default (without providing the above parameters), at least judging on
java.class.path, surefire.test.class.path and surefire.real.class.path
values in the report xml file.
 
Anyone has an idea why the code doesn't work?
 
Thanks, 
 
Petr


The information contained in this email and its attachments is confidential and 
may be the subject of legal, professional or other privileged information. It 
is intended only for the named addressees and may not be disclosed to anyone 
else without consent from On Demand. If you are not the named addressee you 
must not use, disclose, distribute, copy, print or rely on the contents of this 
email and should destroy it immediately. Whilst On Demand takes care to protect 
its systems from electronic virus attack or other harmful event, the firm gives 
no warranty that this email message (including any attachments to it) is free 
of any virus or other harmful matter and accepts no responsibility for any loss 
or damage resulting from the recipient receiving, opening or using it. If you 
need any further information, please contact the originator of this message on 
+44 (0)20 7131 6700. Website: www.ondemand.co.uk. Registered Office: 1 Stephen 
Street, London, W1T 1AL. Registered in the UK No.4094951.

This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com

Reply via email to