1 of 1 people found this helpful
Is there a way of adding multiple sun-resources?
Right now there isn't. The embedded-GF plugin uses Glassfish's CommandRunner to process the sunResourcesXml file. This is equivalent to running "asadmin add-resources sunResourcesXmlfile"; it does so only once. For now, you'll have to place all your resources in one sun-resources.xml/glassfish-resources.xml file and provide it's location in arquillian.xml.
Ah thank you, after your response, i had a quick look to the source of
if(configuration.getSunResourcesXml() != null)
catch (Throwable e)
throw new RuntimeException("Could not deploy sun-reosurces file: " + configuration.getSunResourcesXml(), e);
It seems possible to make this feature available. Do you think that in a future Version of Arquillian this can be added?
So for now, I will write me an maven-merge plugin to get my resources merged before assemble to ship it to my modules.
Konrad: Sure, i see no reason why not. Why don't you file a jira and make a pull request ?
Oh sure, I will do that. Dont hate, participate
Gonna do that on weekend
That's the spirit!