I would stick to -D options. "env" variables are going away in Maven soon.

Eric

On 7/30/07, Graham Leggett <[EMAIL PROTECTED]> wrote:
>
> David Williams wrote:
>
> > How do you pass system environment variables like system date or system
> time
> > to maven.  I'm running maven on a windows machine.
>
> You can access environment variables by using maven variables of the
> form ${env.VARIABLE}.
>
> So ${env.PATH} would be your path, for example.
>
> As far as I am aware, will only work on JDK v1.5 and above, as it wasn't
> possible to read environment variables in Java before then.
>
> Regards,
> Graham
> --
>
>


-- 
Eric Redmond
http://blog.propellors.net

Reply via email to