If you are planning write JUnit tests for ANT tasks that you wrote, you may 
want to look 
at the helper JUnit TestCase sub-class that comes with the ANT source 
distribution.
 
The class is called org.apache.tools.ant.BuildFileTest and if your testcase 
classes extend from this class you have helper function that can start the 
AntMain class and load a build file of you choice.  After which you testXXX 
method merely call .executeTarget(...) to run a target from within that build 
file...  Through this method, you are NOT running ANT in a seperate VM, instead 
you are instansitating/initializing an org.apache.tools.ant.Project class from 
within your JUnit test (and the container IDE)
 
Look at the documentation that came with ANT for further information.
 
Just my 2cents.
Rajiv Jaitly <[EMAIL PROTECTED]> wrote:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please read the disclaimer at the bottom of this e-mail.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Hi, 

I intend to debug ant targets (junits test / java application) from eclipse. is 
there anyway to start Ant in debug mode from eclipse and attach to the process 
to debug it ?

Thanks

Raj


**********************************************************************
This email is intended for the named recipient(s) only. Its contents
are confidential and may only be retained by the named recipient(s)
and may only be copied or disclosed with the consent of 
LCH.Clearnet Limited. If you are not an intended recipient please
delete this e-mail and notify [EMAIL PROTECTED]

The contents of this email are subject to contract in all cases, 
and LCH.Clearnet Limited makes no contractual commitment save where
confirmed by hard copy. LCH.Clearnet Limited accepts no liability, 
including liability for negligence, in respect of any statement in 
this email.

LCH.Clearnet Limited, Registered Office: Aldgate House, 
33 Aldgate High Street, London EC3N 1EA. Recognised as a Clearing 
House under the Financial Services & Markets Act 2000. Reg in England No.25932 
Telephone: +44 20 7426 7000 Internet: http://www.lchclearnet.com
**********************************************************************


                
---------------------------------
Do you Yahoo!?
 All your favorites on one personal page – Try My Yahoo!

Reply via email to