Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 18941 invoked from network); 13 Feb 2009 12:10:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2009 12:10:54 -0000 Received: (qmail 93773 invoked by uid 500); 13 Feb 2009 12:10:52 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 93753 invoked by uid 500); 13 Feb 2009 12:10:52 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 93742 invoked by uid 99); 13 Feb 2009 12:10:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2009 04:10:52 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gscokart@gmail.com designates 209.85.220.13 as permitted sender) Received: from [209.85.220.13] (HELO mail-fx0-f13.google.com) (209.85.220.13) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2009 12:10:44 +0000 Received: by fxm6 with SMTP id 6so2653139fxm.4 for ; Fri, 13 Feb 2009 04:10:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=VKRCiMP/eY75UK4aqulZ3tgsT8LCEQcNfF0rti3T0Eo=; b=TkUV8yofclSw5hIiUR8erid7UDj+ZsKcdkMTxi8X/YweponMMIWOGzx1ERiyZ0+L8i q8zPvHgeMRJaBQ39s82Czm0LByU+nhezsQ5skMpuldb5Cp33hhVnFNEgLDrUv3IIyvq7 4+C6sDOrfhQfOGhVurQ+CHdVwv0eClk701KXY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=PcQBNSsIwWjhHlro+G0cmu1++JU3ZwLv+7nQL4Ibm+EgEqhJg1LRPa/SwIRqr1Wan4 gA4QqR9zZ8jvdUd3gZdmlhbciIZrL0xkWCSV6Pf/eC8MG7LHLXkgZdXc/5kTDbQPetZU 12KRzBHpTfDAKXSOcB+tOuMW/OB2PEIQ6eyuQ= MIME-Version: 1.0 Received: by 10.223.111.19 with SMTP id q19mr292798fap.58.1234526985184; Fri, 13 Feb 2009 04:09:45 -0800 (PST) In-Reply-To: References: <976003850902030016t672c8129j71d5a84409451d65@mail.gmail.com> Date: Fri, 13 Feb 2009 13:09:45 +0100 Message-ID: Subject: Re: Debugging ivy code within an ant script From: Gilles Scokart To: ivy-user@ant.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I just pushed to antunit something that could help you to do that. It is an adapter between JUnit and AntUnit. With this feature, you can write a Junit Test class that when executed (from an IDE debuger for instance) will run an AntUnit script. All you have to do is : - Add a target 'testXXXX' using the task you want to debug (so your ant script is now an AntUnit script. - Write a simple Junit Test using AntUnitSuite (see http://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk/src/tests/junit/org/apache/ant/antunit/junit3/EatYourOwnDogFoodTest.java for an example). - Debug it with your favorite debugger like you would debug any JUnit test. Of curse, you can also get all the benefits of AntUnit : You testXXX is now an automated test in which you can use different ant oriented assert. The code is really fresh and still needs some tuning, but if you want to give it a try... Gilles Scokart 2009/2/3 : > > > > > > Is there any way to run an ant script within Eclipse and debug at the Java > level an ivy publish task ? > > > > Target > www.targetgroup.net > > Target is a trading name of Target Group Limited, > registered in England and Wales No. 1208137 > Registered office: Target House, Cowbridge Road East, Cardiff CF11 9AU > > ********************************************************************** > DISCLAIMER. > This message is intended only for the use of the Addressee and may > contain information that is PRIVILEGED and CONFIDENTIAL. > If you are not the intended recipient you must not copy, > distribute or take any action or reliance upon it. > The content of this message may also contain personal > views of an employee of this company and does > not necessarily represent the view of the company. > ********************************************************************** > This message has been scanned by Norton Anti-Virus. > It has also been scanned by MAILsweeper to enforce our e-mail > policy. If you have any concerns or comments about the content > of this message, please e-mail support@targetgroup.net. > ********************************************************************** > > > _____________________________________________________________________ > This email has been scanned for all viruses by the MessageLabs Email > Security System. For more information on a proactive email security > service working around the clock, around the globe, visit > http://www.messagelabs.com >