Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problem loading resources from classpath in tests

tycho surefire uses a classloader which delegates to the test bundle for loading classes and resources, see [1].
We would need a sample project that demonstrates the problem to tell what's going on here.



-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Aaron Digulla
Sent: Donnerstag, 15. März 2012 12:35
To: Tycho user list
Subject: [tycho-user] Problem loading resources from classpath in tests


I have a test case which needs the resource  

In the code in  
org.eclipse.xtext.resource.ClassloaderClasspathUriResolver, this is  
truncated to "com/pany/eclipse/i18n_dsl/tests/Application.i18n" and  
then passed off to the OSGi classloader. I verified that  
target/classes/com/pany/eclipse/i18n_dsl/tests/Application.i18n exists.

The tests pass when run from inside Eclipse.

Why can't Tycho Surefire 0.13.0 load the resource?


Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."         
tycho-user mailing list

Back to the top