You had to define your properties for test in 
the "project.properties". 

For me to define the TEST_ENVIRONMENT and FAKE_DRIVER 
properties, i added this : 

TEST_ENVIRONMENT=com.agf.penelope.TestPenelope
FAKE_DRIVER=OFF
maven.junit.sysproperties=TEST_ENVIRONMENT FAKE_DRIVER


-----Message d'origine-----
De : Marc Dugger [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 28 mai 2003 19:17
À : [EMAIL PROTECTED]
Objet : system property


When invoking the goal test:test, I specify the JVM to fork.  However,
the system properties that I am defining with '-D' appear not to be
passed to the new JVM.  Here's my command line when invoking Maven:
 
$ maven -Dcom.susnetdirect.core.config.dir=. test:test
 
I'd like to set this property in a preGoal to test:test, but haven't
read about any way to do this.  Any solution would be fine.  Thanks in
advance for answers/comments. 


------------------------------
Ce message est protege par les regles relatives au secret des correspondances ; il 
peut en outre contenir des informations a caractere confidentiel ou protegees par 
differentes regles et notamment le secret des affaires ; il est etabli a destination 
exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou 
reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, 
doit etre prealablement autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne peut etre 
assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete 
modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et 
d'avertir l'expediteur de l'erreur de distribution et de la destruction du message.
This message is protected by the secrecy of correspondence rules ; furthermore it may 
contain privileged or confidential information that is protected by law, notably by 
the secrecy of business relations rule ; it is intended solely for the attention of   
the addressee . Any disclosure, use, dissemination or reproduction (either whole or  
partial) of this message or the information contained herein is strictly prohibited 
without prior consent.
Any electronic message  is susceptible to alteration  and  its integrity can not be 
assured.  AGF declines any  responsibility for  this message in the event of  
alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and  notify the 
sender of the wrong delivery and the mail deletion. 
------------------------------


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

Reply via email to