ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ninju Bohra <>
Subject Re: debug ANT
Date Thu, 03 Feb 2005 18:51:01 GMT
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 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 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 <> wrote:
Please read the disclaimer at the bottom of this e-mail.


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 ?



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

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:

Do you Yahoo!?
 All your favorites on one personal page  Try My Yahoo!
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message