On Mon, 18 May 2009, Mark Hobson wrote:

Hi there,

I have a need to set a system property as part of a build without
using CLI options.  AFAIK there is no way to do this natively within
the POM, so I'm proposing a new goal and/or plugin.

I can either add this to the sandbox as a new plugin
(sysprop-maven-plugin?) or add it as another goal to the pre-existing
properties-maven-plugin (set-system-property?).  Has anyone got any
preference?

System (as in OS) properties are available as normal variables, with a prefix ENV, so for example this expression:
${ENV.HOME} would resolve the $HOME variable.

--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to