>From: Millies, Sebastian >Sent: Friday, January 13, 2012 6:40 PM >To: '[email protected]' >Subject: Imports cannot be loaded into contribution > >Hello there, > >how can I explicitly load an imported resource that is not a Java class or xsd >file? >I have failed to make this work in Tuscany 1.6 [snip] >because ContributionClassLoader#findResource(name), >which is called internally by getResource(), only looks at JavaImports, other >imports >are simply disregarded! [snip] >Do I really need to copy that properties file to every contribution that needs >it? >There must be a standard way to share such artifacts between contributions. >At least that’s how I understand the SCA assembly spec. >
I have decided on another workaround: I create a dedicated ResourceProvider class in each contribution, which can be imported using import.java. I keep the import.resource statements only for documentation. -- Sebastian IDS Scheer Consulting GmbH Geschäftsführer/Managing Directors: Kamyar Niroumand, Ivo Totev Sitz/Registered office: Altenkesseler Straße 17, 66115 Saarbrücken, Germany - Registergericht/Commercial register: Saarbrücken HRB 19681 http://www.softwareag.com
