I think you mis-understand. I'm not trying to set the "classpath". I'm trying to set the "PATH", as in Unix or DOS path on which native libraries, exe's, etc. will be searched for.
-----Original Message----- From: Ylan Segal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 5:28 PM To: Ant Users List Subject: RE: How to Set "Path" for forked junit task I have recently started using the junit task myself. I use the nested classpath element inside the junit task: <junit....> <classpath> ... </classpath> </junit> Inside this classpath you can use fileset's, pathelement's and all those wonderful things that make constructing a classpath very easy in ant. I believe you could even use an environment variable as your classpath, just check the docs. Using Ant > Path-like Structures Hope this helps. Ylan Segal. > -----Original Message----- > From: Rollo, Dan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 3:11 PM > To: 'Ant Users List' > Subject: How to Set "Path" for forked junit task > > > I'm running unit tests using the junit task. > Some tests need specific directories on the environment path (like native > dll's for a JDBC driver). > I can't figure out how to launch a junit task with a specific environment > (one in which I can alter the path). > I've looked into the "env" tag, but that doesn't appear to be supported by > the junit task (only the exec task). > > Any ideas? > > Thanks, > Dan > > > > ****************************************************************** > ******** > This e-mail and any files transmitted with it may contain privileged or > confidential information. It is solely for use by the individual for whom > it is intended, even if addressed incorrectly. If you received > this e-mail > in error, please notify the sender; do not disclose, copy, distribute, or > take any action in reliance on the contents of this information; > and delete > it from your system. Any other use of this e-mail is prohibited. > Thank you > for your compliance. > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ************************************************************************** This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited. Thank you for your compliance. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>