Added support for $-substitution in <arg> elements
commitddfaf7442845bdb7fa0718cd7a3cabb463547dbc
authorThomas Leonard <talex5@gmail.com>
Fri, 3 Dec 2010 08:54:43 +0000 (3 08:54 +0000)
committerThomas Leonard <talex5@gmail.com>
Fri, 3 Dec 2010 08:54:43 +0000 (3 08:54 +0000)
treecc16ba4a781abc9008c53337faeda5856899a2bc
parentc2d6cd837b73fe878ed4d40d0b1922177b0f71b8
Added support for $-substitution in <arg> elements

This is to support programs that need to be given their dependencies
through arguments. For example:

    <command name="run" path="myprog">
      <arg>--java-home=${JAVA_HOME}</arg>
    </command>

Currently, the values come from the environment (so any environment variable
can be used). Possibly it should be restricted to only those variables set in
the feed, or extended to other types of binding (to avoid polluting the
process's environment just to pass an argument).
tests/runnable/Runner.xml
tests/runnable/runner
zeroinstall/injector/run.py