[
https://issues.jboss.org/browse/ARQ-647?page=com.atlassian.jira.plugin.sy...
]
Ondrej Zizka updated ARQ-647:
-----------------------------
Description:
Currently, the only way to pass system props to a container (say, JBoss AS 7), is to use
{code}
<property name="javaVmArguments">-Dfoo=bar</property>
{code}
It would be great if system properties could be specified in a special way, like:
* by loading a .properties file and setting them in JVM
* from a deployment
* from a path
* from an URL
* by a special config elements
* by taking them all from the launching JVM; possibly only those with a given prefix
Here's how I'd imagine it. Params in [] are optional, with default values.
{code}
<arquillian
xmlns="http://jboss.org/schema/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<container qualifier="jboss" default="true">
<configuration>
<property name="jbossHome">target/smoke</property>
<property name="javaVmArguments">${server.jvm.args}</property>
<property
name="serverConfig">${server.config:standalone.xml}</property>
<property name="allowConnectingToRunningServer">true</property>
<systemProperties>
<copyCurrent [prefix="arq."]/>
<loadFromDeployment [path="META-INF/arq.system.properties"]
[optional="false"]>
<loadFromFile path="../testsuite/my.properties"
[optional="false"]>
<loadFromUrl
url="http://foo.redhat.com/foo.properties" [optional="true"]>
<property name="jbossas.ts.integ.dir">${fooBar}</property>
</systemProperties>
</configuration>
</container>
</arquillian>
{code}
was:
Currently, the only way to pass system props to a container (say, JBoss AS 7), is to use
{code}
<property name="javaVmArguments">-Dfoo=bar</property>
{code}
It would be great if system properties could be specified in a special way, like:
* by loading a .properties file and setting them in JVM
* from a deployment
* from a path
* from an URL
* by a special config elements
* by taking them all from the launching JVM; possibly only those with a given prefix
Here's how I'd imagine it. Params in [] are optional, with default values.
{code}
<arquillian
xmlns="http://jboss.org/schema/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<container qualifier="jboss" default="true">
<configuration>
<property name="jbossHome">target/smoke</property>
<property name="javaVmArguments">${server.jvm.args}</property>
<property
name="serverConfig">${server.config:standalone.xml}</property>
<property name="allowConnectingToRunningServer">true</property>
<systemProperties>
<copyCurrent [prefix="arq."]/>
<loadFromDeployment [path="META-INF/arq.system.properties"]
[optional="false"]>
<loadFromFile [path="../testsuite/my.properties"]
[optional="false"]>
<loadFromUrl
[
url="http://foo.redhat.com/foo.properties"] [optional="true"]>
<property name="jbossas.ts.integ.dir">${fooBar}</property>
</systemProperties>
</configuration>
</container>
</arquillian>
{code}
Implement a convenient way to pass system properties to managed
container's JVM.
--------------------------------------------------------------------------------
Key: ARQ-647
URL:
https://issues.jboss.org/browse/ARQ-647
Project: Arquillian
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Configuration
Affects Versions: 1.0.0.CR5
Reporter: Ondrej Zizka
Assignee: Aslak Knutsen
Priority: Critical
Currently, the only way to pass system props to a container (say, JBoss AS 7), is to use
{code}
<property name="javaVmArguments">-Dfoo=bar</property>
{code}
It would be great if system properties could be specified in a special way, like:
* by loading a .properties file and setting them in JVM
* from a deployment
* from a path
* from an URL
* by a special config elements
* by taking them all from the launching JVM; possibly only those with a given prefix
Here's how I'd imagine it. Params in [] are optional, with default values.
{code}
<arquillian
xmlns="http://jboss.org/schema/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<container qualifier="jboss" default="true">
<configuration>
<property name="jbossHome">target/smoke</property>
<property name="javaVmArguments">${server.jvm.args}</property>
<property
name="serverConfig">${server.config:standalone.xml}</property>
<property name="allowConnectingToRunningServer">true</property>
<systemProperties>
<copyCurrent [prefix="arq."]/>
<loadFromDeployment [path="META-INF/arq.system.properties"]
[optional="false"]>
<loadFromFile path="../testsuite/my.properties"
[optional="false"]>
<loadFromUrl
url="http://foo.redhat.com/foo.properties" [optional="true"]>
<property name="jbossas.ts.integ.dir">${fooBar}</property>
</systemProperties>
</configuration>
</container>
</arquillian>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira