Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-921

Make environment variables available for property replacement in configuration

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.0.2.Final
    • 1.0.0.Final
    • Configuration
    • None

      Copy all the environment variables to the base property "env" in the system property table. Using the base property avoids conflicts with property names. This strategy is typical in build systems.

      For example, assume the following environment variable is defined:

      JBOSS_HOME=/opt/jboss-as
      

      This environment variable can be referenced from the configuration (arquillian.xml) as follows:

      ${env.JBOSS_HOME}
      

      A system property may be used to override an environment variable, as follows:

      -Denv.JBOSS_HOME=/home/user/opt/jboss-as
      

            dan.j.allen Dan Allen (Inactive)
            dan.j.allen Dan Allen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: