On 7/14/05, Shelly Midha <[EMAIL PROTECTED]> wrote: > > > I'm compiling a set of java files using the following command in NAnt file > > <exec program="javac" commandline = "-classpath %CLASSPATH% ${filename}" > failonerror = "false"> > </exec>
Shelly, The %CLASSPATH% environment variable is probably not being expanded - this is usually done by the command processor (cmd) but you are executing javac directly... If you are using NAnt 0.85, you can get the value of the environment variable using ${environment::get-variable('CLASSPATH')}, but you may need to wrap it in an existence check ${environment::variable-exists('CLASSPATH')}, and there may be issues with case sensitivity (!)... http://nant.sourceforge.net/release/latest/help/functions/#Environment for more details. Alternatively, run your exec through cmd.exe... <exec program="cmd" commandline="javac -classpath %CLASSPATH% ..." failonerror="false" /> -- Troy ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users