[arquillian-issues] [JBoss JIRA] Commented: (ARQ-148) Support EL-like expressions for sysprops and env variables in arquillian.xml

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Wed Aug 31 13:35:27 EDT 2011


    [ https://issues.jboss.org/browse/ARQ-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625516#comment-12625516 ] 

Aslak Knutsen commented on ARQ-148:
-----------------------------------

I think we can drop the EL part for now, a simple:

{code}
String exp = "${envvar:default}"

if(exp.startwith("$")) {
  String envvar, defaultVal = split(exp)
  if(System.getSystemProperty(envvar) == null)
    return defaultVal;
}
{code}

The most central location would be here: 
https://github.com/arquillian/arquillian-core/blob/master/config/impl-base/src/main/java/org/jboss/arquillian/config/descriptor/impl/ContainerDefImpl.java#L134

But maybe move it up a level.. https://github.com/arquillian/arquillian-core/blob/master/container/impl-base/src/main/java/org/jboss/arquillian/container/impl/ContainerImpl.java#L75



> Support EL-like expressions for sysprops and env variables in arquillian.xml
> ----------------------------------------------------------------------------
>
>                 Key: ARQ-148
>                 URL: https://issues.jboss.org/browse/ARQ-148
>             Project: Arquillian
>          Issue Type: Feature Request
>          Components: Configuration
>            Reporter: Andrew Rubinger
>             Fix For: 1.1.0.CR1
>
>
> Likely we might need to rely on configuration available from the system or environment, so support usage like:
> <tag>${jboss.home}</tag>
> <tag>${env.jboss.home}</tag>
> ...inside arquillian.xml

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list