-
1. Re: How to set programatically the arquillian.xml file ?
kpiwko Oct 25, 2012 2:32 PM (in response to crytek)Hi Florin,
following constructs are allowed in arquillian.xml:
${systemPropertyName}
${systemPropertyName:defaultValue}
${ENV.envPropertyName}
${ENV.envPropertyName:defaultValue}
If -DsystemPropertyName or $envPropertyName are defined, the placeholder is replaced, if not either default value is used or placeholder stays in its place. Note that Eclipse does not propagate pom.xml properties to Run As/JUnit test, so if
you want to set it up a compatible way with that IDE, you need to use maven-resource-plugin with filtering instead. The example is shown here (note <testResources>, resources plugin > 2.5 and then have a look at arquillian.xml):
https://github.com/kpiwko/html5-demoapp/blob/javaone-sfo-2012/pom.xml
Please let me know if that helps you,
Thanks,
Karel