Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 66781 invoked from network); 22 Dec 2003 19:48:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Dec 2003 19:48:09 -0000 Received: (qmail 3903 invoked by uid 500); 22 Dec 2003 19:47:59 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 3595 invoked by uid 500); 22 Dec 2003 19:47:57 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 3582 invoked from network); 22 Dec 2003 19:47:57 -0000 Received: from unknown (HELO germane-software.com) (198.36.168.17) by daedalus.apache.org with SMTP; 22 Dec 2003 19:47:57 -0000 Received: (qmail 10059 invoked from network); 22 Dec 2003 19:35:05 -0000 Received: from unknown (HELO germane-software.com) (216.223.25.12) by 198.36.168.17 with SMTP; 22 Dec 2003 19:35:05 -0000 Message-ID: <3FE74ADB.4030100@germane-software.com> Date: Mon, 22 Dec 2003 11:49:47 -0800 From: Dale Anson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Developers List Subject: Re: new task 'ants' required or not. References: <9F2C217049F12A468B0445BA6D7AC54701C9BC13@indatc1-mail.indatc1.virtusa.com> <3FE70D0F.5040103@antbuild.com> In-Reply-To: <3FE70D0F.5040103@antbuild.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sounds like the proposed is identical to the existing in ant-contrib. Dale Antoine L�vy-Lambert wrote: > Sathyanarayana V. wrote: > >> Problem with 'subant' is: it doesnt communicate/contribute to overall >> build status. subprojects may fail, but the overall process will be >> successful. Wouldnt it contribute in over all build status. >> >> Thanks, >> Sathya >> >> >> >> > My view is that ant is not designed to build several projects, with some > projects failing and other being successful. > gump is really the tool that would be OK for this purpose. > > Concerning your ants task, there was a proposal for something a bit > similar called which is a flavour of which can > return properties. > > What you can do in ant 1.6 would be to use macrodef to describe the > build of a generic subproject, and foreach or for from ant-contrib plus > try/catch to get the status of each subproject > > > for instance (untested pseudocode) > > macrodef build_one_subproject > > try > build the subproject > > > catch > > > endmacrodef > > > > > > > > ${subroj_1-failure} > ${subroj_2-failure} > ${subroj_3-failure} > > this would be doing what you would like. > You can probably iterate among your subprojects using for or foreach > from ant-contrib. > > Cheers, > Antoine > >> >> >> >> >>> Sathyanarayana V. wrote: >>> >>> >>> >>>> Hi All, >>>> >>>> Recently, as part of automating my project builds, I have used >>>> CruiseControl along with Ant. Surprisingly, I didn't find any task >>>> to build/compile all the subprojects of a project. My purpose >>>> was to have the compile time errors of all the subprojects as part >>>> of automated build report. The 'ant' task will stop building as soon >>>> as one subproject fails. I tried using java/exec tasks with >>>> 'failonerror ' attribute as false, but the problem with this >>>> approach is that build status of subprojects is not available to the >>>> main build process and resulting Total build successful though >>>> subprojects are failing in-between. >>>> >>> >>> OK >>> >>> >>> >>>> So, I have written new task called 'ants' and used for my >>>> automated builds. This task internally uses 'ant' only. What I >>>> would like to know is: Can I post this task of mine to apache or Is >>>> there any existing task/workaround available for the above required >>>> behavior. >>>> >>> >>> Ant 1.6 has ' that wil bulk compile a project ... does this >>> do what you want or are there changes you'd recommend? >>> >> >> >> Also ant 1.6 has a -keep-going which will continue exectuting targets >> that do not rely on the task that failed. >> Peter >> >> >> >>>> Thanks in advance >>>> Sathya >>>> >>>> >>> >>> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org