[arquillian-issues] [JBoss JIRA] (ARQ-647) Implement a convenient way to pass system properties to managed container's JVM.
Andrew Rubinger (JIRA)
jira-events at lists.jboss.org
Wed Feb 8 17:01:49 EST 2012
[ https://issues.jboss.org/browse/ARQ-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665194#comment-12665194 ]
Andrew Rubinger commented on ARQ-647:
-------------------------------------
Stopgap to avoid releases in ARQ: Put this extension, with feature improvements as reported, into AS7 Common TestSuite Module. Enhance from the commit noted by Aslak above.
> 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: Andrew Rubinger
> 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
More information about the arquillian-issues
mailing list