Re: Test Plugin : maven.junit.sysproperties

2003-09-01 Thread dion
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" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: Test Plugin : maven.junit.sysproperties

2003-08-29 Thread Jefferson K. French
Something like this should work:

  
  

assuming mtconfig_env is what it's called in the OS. If not, change
the value after 'env.' accordingly.

On Fri, 29 Aug 2003, at 11:05:23 [GMT +0100] Bateman, Patrick eMEDIA
wrote:

> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
mailto:[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Test Plugin : maven.junit.sysproperties

2003-08-29 Thread Martin Skopp
On Fri, 2003-08-29 at 12:05, Bateman, Patrick eMEDIA wrote:
> mtconfig_env=${mtconfig_env}
> mtconfig_dir=${basedir}/../mt_config/
> 
> This cause a stack overflow because mt_config is self referencing.

self referencing properties do not work yet.  A enhancement request is
already file as MAVEN-693 in JIRA.  You may vote for it - maybe it gets
programmed for the next release

http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-693
-- 
Martin Skopp
Riege Software International GmbH
Support: mailto:[EMAIL PROTECTED], Information: http://www.riege.com
 
This email is intended to be viewed with a nonproportional font.
Public Key on http://www.keyserver.net, Key-ID: 3D4027B5
Fingerprint: 1970 C78D 9A1D 99FA 5CE4  5C0D 29E6 6A95 3D40 27B5



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Test Plugin : maven.junit.sysproperties

2003-08-29 Thread Bateman, Patrick eMEDIA
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]