If you mean system environment that you can set in your shell before
invoking maven
Use this

<environmentVariables>
  <var>value</var>
  ...
</environmentVariables>

This feature is not released yet, your can use snapshot

example how to use this is in this pom

http://svn.codehaus.org/trunk/mojo/maven-native/native-maven-plugin/src/it/jni/native/win32/pom.xml?rev=1657&root=mojo&view=auto

Must fork the test thou


On 4/25/06, Sharma, Jaikumar <[EMAIL PROTECTED]> wrote:
>
> You can use system variables like ${var.name} -- please be sure for the
> case of variables -- means access in M2 as defined in windows.
>
> -----Original Message-----
> From: RobJac [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 25, 2006 3:19 PM
> To: [email protected]
> Subject: Use System Environment Variable for JUNIT
>
>
>
> I have Maven project which also runs Junit when i execute install
> command. The class files which runs Junit has references to few System
> environment variable. I would like to know if there is any way I can
> declare System Environment variable in my pom xml so that the Junit can
> use this when it runs my project
> --
> View this message in context:
> http://www.nabble.com/Use-System-Environment-Variable-for-JUNIT-t1504491
> .html#a4079453
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> - - - - - - - DISCLAIMER- - - - - - - -
> Unless indicated otherwise, the information contained in this message is
> privileged and confidential, and is intended only for the use of the
> addressee(s) named above and others who have been specifically authorized
> to
> receive it. If you are not the intended recipient, you are hereby notified
> that any dissemination, distribution or copying of this message and/or
> attachments is strictly prohibited. The company accepts no liability for
> any
> damage caused by any virus transmitted by this email. Furthermore, the
> company does not warrant a proper and complete transmission of this
> information, nor does it accept liability for any delays. If you have
> received this message in error, please contact the sender and delete the
> message. Thank you.
>
>

Reply via email to