The overwrite system path problem is plexus-utils. Perhaps you can build the surefire with latest plexus-utils ( 1.4.5) and verify?
-D On 8/3/07, Nathan Coast <[EMAIL PROTECTED]> wrote: > > Hi Dave, > > Thanks for your reply. Unfortunately, we seem to be hitting some other > problem. The mere presence of the <PATH> seems to break the surefire > plugin. Not only does it overwrite the system PATH but it ignores > whatever value we set. > > thanks, > Nathan > > > > > "Dave Hoffer" <[EMAIL PROTECTED]> > 30/07/2007 03:15 > Please respond to > "Maven Users List" <[email protected]> > > > To > "Maven Users List" <[email protected]> > cc > > Subject > RE: problem setting windows path for surefire tests > > > > > > > I don't claim to have the best answer but what we have done to run > surefire tests that require native code to be loaded on Windows is: > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <configuration> > <environmentVariables> > <PATH>${basedir}\..;${java.library.path}</PATH> > </environmentVariables> > </configuration> > </plugin> > > This was from a child module where the DLL was located at its parent's > folder. > > -Dave > > > > -----Original Message----- > From: Nathan Coast [mailto:[EMAIL PROTECTED] > Sent: Friday, July 27, 2007 12:15 PM > To: [email protected] > Subject: problem setting windows path for surefire tests > > Hi all, > > I'm trying to set the windows PATH variable for my test execution. It > seems that including <ENVIRONMENT><PATH> nodes doesn't work correctly. > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <configuration> > <environmentVariables> > <PATH>${env.Path}</PATH> > <HOME>${env.HOME}</HOME> > </environmentVariables> > </configuration> > </plugin> > > Why not just exclude it then? I currently have to add a value to the > windows path variable to execute certain tests. I would like to avoid > this by modifying the PATH variable at runtime e.g. > <PATH>${env.Path};new_path_var</PATH> thus reducing the amount of > environment setup. > > There seems to be a related JIRA: > http://jira.codehaus.org/browse/SUREFIRE-308 > > Thanks, > Nathan > > --- > > This e-mail may contain confidential and/or privileged information. If > you are not the intended recipient (or have received this e-mail in > error) please notify the sender immediately and delete this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > > Please refer to http://www.db.com/en/content/eu_disclosures.htm for > additional EU corporate and regulatory disclosures. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --- > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and delete this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > > Please refer to http://www.db.com/en/content/eu_disclosures.htm for > additional EU corporate and regulatory disclosures. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
