Re: Passing System Variables to Maven

2007-07-31 Thread Graham Leggett
Eric Redmond wrote: I would stick to -D options. env variables are going away in Maven soon. -D options are simply command line options, they are not an environment. Trying to create a pretend environment using -D violates the principle of least astonishment in a big way, and is a major

Re: Passing System Variables to Maven

2007-07-31 Thread Eric Redmond
That's fine, then stick them in the settings.xml. But you missed my point: env access via properties won't be around in the next version of Maven, so they aren't a good suggestion. Eric On 7/31/07, Graham Leggett [EMAIL PROTECTED] wrote: Eric Redmond wrote: I would stick to -D options. env

Re: Passing System Variables to Maven

2007-07-31 Thread David Williams
Guys, Thanks for your responses. What I really want to do is pass the current system date and or time to a properties file. I already know what I need to do to filter in maven but I'm trying to figure out the best way to get these variables in a build.properties file for example. I'm currently

Re: Passing System Variables to Maven

2007-07-31 Thread Steven Rowe
Hi David, I have used an antrun plugin execution to generate a timestamp properties file in the initialize phase, like this: properties ... generated-resources-dir target/generated-resources /generated-resources-dir ... /properties build ... plugins ... plugin

Passing System Variables to Maven

2007-07-30 Thread David Williams
Hi Everyone, How do you pass system environment variables like system date or system time to maven. I'm running maven on a windows machine. Thanks, David

Re : Passing System Variables to Maven

2007-07-30 Thread eric . giguere
, Juillet 30, 2007 1:04 pmObjet: Passing System Variables to MavenÀ: Maven Users List users@maven.apache.org Hi Everyone, How do you pass system environment variables like system date or system time to maven. I'm running maven on a windows machine. Thanks, David

Re: Passing System Variables to Maven

2007-07-30 Thread Graham Leggett
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.

Re: Passing System Variables to Maven

2007-07-30 Thread Eric Redmond
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