ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: More optional task problems
Date Fri, 08 Jun 2001 14:15:26 GMT
--- Louise Pryor <louise.pryor@riskexplorer.com> wrote:
> (and why do I have to use taskdef to set up the junit task when it's
> meant to be a default one?)

You shouldn't have to, if optional.jar is in the "lib" subdirectory of
$ANT_HOME. All the jar-files in the "lib" dir are added by the ant[.bat]
script to the classpath used to run the 'java' that executes Ant. If
you're running the "ant.bat" script, try echo'ing out the actual 'java'
command-line so you can see what classpath it's being run with:

:runAnt
@echo on
%_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" %ANT_OPTS%
org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
@echo off
goto end

If you're running the "ant" script, bracket the command with set -x/set
+x.

Verify that optional.jar is included in the passed-in classpath (and get
rid of any <taskdef>'ing stuff you've added to your build-file).

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message