Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 41463 invoked from network); 3 Nov 2007 20:07:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2007 20:07:58 -0000 Received: (qmail 76766 invoked by uid 500); 3 Nov 2007 20:07:44 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76731 invoked by uid 500); 3 Nov 2007 20:07:44 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 76720 invoked by uid 99); 3 Nov 2007 20:07:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2007 13:07:44 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of g.bodda@gmail.com designates 66.249.82.233 as permitted sender) Received: from [66.249.82.233] (HELO wx-out-0506.google.com) (66.249.82.233) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Nov 2007 20:07:47 +0000 Received: by wx-out-0506.google.com with SMTP id h30so2460320wxd for ; Sat, 03 Nov 2007 13:07:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=nOKBHG1rJd9euJEpHdt7bB7aFJe8OBlbjgtP9raE0HQ=; b=awZjhyPFtlOU5vo/ec5+Tr/dQ3wTU2mJ3ZL54kHWHWNLpirOOi0LuNfBNu4Thpc3HqyJU8nFS1hpj/hpFq5+DH3FHa6cqtsgFEsGzOHwLGOykQYaufpsMqgOR+wU++MsBQnFWxBhPSw2561bpvTwlKxBkoRZ8XSyi/Wi2qOBS0w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=X/StRnT2DmAAHYscocZy+PqfTI05Llkmgj+Pmo3xslAbgeZbD/BgksBaU0PN6lh21bIqhsHcnxCCaV4agxwYiNPNt2SJ3R+LjjGkXB8n0OVXoyCT0ALGACio2zaHGGUN1GhFBb/oVFxNScrJEtDj+kcj8sPdN1wnJV9wMvgQ5eE= Received: by 10.90.78.9 with SMTP id a9mr2205427agb.1194120422061; Sat, 03 Nov 2007 13:07:02 -0700 (PDT) Received: by 10.90.86.1 with HTTP; Sat, 3 Nov 2007 13:07:02 -0700 (PDT) Message-ID: Date: Sat, 3 Nov 2007 21:07:02 +0100 From: "Gabriele Bodda" To: user@ant.apache.org Subject: Re: Headless Ant: problems with loggers and listeners In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24376_1743426.1194120422051" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24376_1743426.1194120422051 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I've found one more element. I got exactly the same error if I launch Ant through Eclipse with ANY listener, even with "-listener org.apache.tools.ant.XmlLogger" that happens to be cited even in the Ant manual. To be more precise: it seems like the parameter -listener doesn't work when you launch Ant from INSIDE Eclipse (Run -> Ant Build...) or as an Eclipse application (at the end, it should be the same...) So, it isn't directly related to CC (if I run "ant" from the command line it works fine even with all the CC listeners and loggers), but I need it fixed if I want to use CC with my build script... Any ideas? It seems really strange to me that you can't use the -listener parameter when you run a build inside eclipse! Thanks, Gab On 11/2/07, Gabriele Bodda wrote: > > Hi all, > > my name is Gabriele, I'm trying to automate my build process using > CruiseControl but I'm currently experiencing some critical problems with the > Ant command it generates. > > Our project is developed using WebSphere Integration Developer (you know, > IBM-enhanced Eclipse), under Windows XP Professional. > My Ant script is quite standard, but it uses some of the custom tasks that > come inside the IDE plugins, such as "workspaceBuild" or "exportEar" . > > I've read into the documentation that, in order to get access to the > resources required by this kind of build script, I need to configure CC to > start Ant externally via java. I have therefore written a customized > runAnt.bat, and from the logs I see that the complete command launched by > CC is this: > > "D:\Programmi\IBM\Rational\SDP\6.0\eclipse\jre\bin\java" > -cp "D:\Programmi\IBM\Rational\SDP\6.0\eclipse\startup.jar" > org.eclipse.core.launcher.Main > -application com.ibm.etools.j2ee.ant.RunAnt > -data "D:\Temp\CC\checkout" > -logger net.sourceforge.cruisecontrol.builders.AntProgressXmlLogger > -listener net.sourceforge.cruisecontrol.builders.AntOutputLogger > -listener net.sourceforge.cruisecontrol.builders.AntProgressXmlListener > -DXmlLogger.file=log.xml > -lib D:\Programmi\CruiseControl\lib\cruisecontrol-antprogresslogger.jar > -debug > -Dcclastbuildtimestamp=20071029000000 > -Dbuildforced=false > -Dlabel=build.1 > -Dcclastgoodbuildtimestamp=20071029000000 > -Dlastbuildsuccessful=false > "-Dcvstimestamp=2007-11-01 21:29:04 GMT" > -Dprojectname=Pagamenti > -Dcctimestamp=20071101222904 > -buildfile build.xml build > > Do you see anything wrong in it? The point is that it doesn't work, not > only when CC launches it, but also if I launch it manually (and this why I > came here looking for help...) > Moreover, it doesn't tell me anything useful to undestand what's wrong. > > An important fact I'd like to point out to you is that everything works > well if I launch the same command without these parameters: > > -logger net.sourceforge.cruisecontrol.builders.AntProgressXmlLogger > -listener net.sourceforge.cruisecontrol.builders.AntOutputLogger > -listener net.sourceforge.cruisecontrol.builders.AntProgressXmlListener > -DXmlLogger.file=log.xml > -lib D:\Programmi\CruiseControl\lib\cruisecontrol- antprogresslogger.jar > > Does this tell you anything already, maybe a known problem or a common > pitfall? > In case not, please tell me what information you need to try to help me, > because I'm really short of ideas. > > Thank you very much for your help, > Gabriele > ------=_Part_24376_1743426.1194120422051--