Thanks Kevin and Jan.
I will try the steps . I think the problem may  because I have already set
my ANT_HOME , I will try reset it .

Thanks for ur kindly help.

On 9/27/06, Kevin Jackson <[EMAIL PROTECTED]> wrote:

Hi,

Jan is correct, Eclipse Junit test runner isn't the best place to run
a lot of the Ant tests as the ant tests rely on build files etc.

For some of the 'pure' unit tests, it is possible (if you correctly
configure Eclipse) to right click and select Run as JUnit test case
(or something like that).

If you want to run the whole test suite however, you should really use
the command line (cmd.exe or bash etc depending on your platform):

1 - bootstrap.bat/sh (this builds the most primitive version of ant
that is required for 2)
2 - build.bat/sh (this uses the bootstrap build to build a real
distribution - although you'll be missing a *lot* of optional tasks
unless you've also got the optional jars)
3 - configure your environment to point to the newly created dist dir ie
ANT_HOME=<path to dist dir>
PATH=$PATH:$ANT_HOME/bin
4 - ant test

This should get you up and running through the whole test suite-
again trying to do everything inside Eclipse is just a: not practical,
and b: not very smart - Eclipse is a good refactoring code editor, but
for some things (batch processing), you *cannot* beat a cli.

Thanks
Kev

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to