ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: More optional task problems
Date Fri, 08 Jun 2001 14:15:26 GMT
--- Louise Pryor <> 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:

@echo on
@echo off
goto end

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

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).



Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!

View raw message