You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by di...@multitask.com.au on 2003/09/01 05:47:01 UTC

Re: Test Plugin : maven.junit.sysproperties

In case noone has answered, pass the env var in via the command prompt 
(-Dvar=$ENV_VAR), or do it using an ant environment task.
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/


"Bateman, Patrick eMEDIA" <Pa...@mytravel.com> wrote on 
29/08/2003 08:05:23 PM:

> I'm trying the set two properties for my JUnit tests using
> 'maven.junit.sysproperties'
> 
> maven.junit.sysproperties=mtconfig_env mtconfig_dir
> mtconfig_env=${mtconfig_env}
> mtconfig_dir=${basedir}/../mt_config/
> 
> This cause a stack overflow because mt_config is self referencing.
> 
> What I really want to achieve is to initialise mtconfig_env with an
> environment varaible from the OS.
> 
> How do Maven property files load environment variables from the OS?
> 
> Thanks
> 
> Pat
> This email and any files transmitted with it are confidential and 
intended
> solely for the use of the individual or entity to whom they are 
addressed.
> If you have received this email in error please notify the system 
manager. 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>