Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 54478 invoked from network); 23 Jan 2004 16:24:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Jan 2004 16:24:52 -0000 Received: (qmail 24513 invoked by uid 500); 23 Jan 2004 16:24:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 24482 invoked by uid 500); 23 Jan 2004 16:24:26 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 24447 invoked from network); 23 Jan 2004 16:24:26 -0000 Received: from unknown (HELO mailrelay.mdli.com) (208.200.221.8) by daedalus.apache.org with SMTP; 23 Jan 2004 16:24:26 -0000 Received: from exch-sl02.mdli.com (exch-sl02.mdli.com [172.16.3.10]) by mailrelay.mdli.com (Postfix) with ESMTP id 40B93B687D for ; Fri, 23 Jan 2004 08:24:29 -0800 (PST) Received: from mdl.com (ALEXEYS-XPL [172.16.46.18]) by exch-sl02.mdli.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id DNJLVJ17; Fri, 23 Jan 2004 08:24:28 -0800 Message-ID: <40114AB3.7070907@mdl.com> Date: Fri, 23 Jan 2004 08:24:19 -0800 X-Sybari-Trust: 6ce026a6 6da4f630 f0828d47 00000905 From: "Alexey N. Solofnenko" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: ant -k and -D flags together will not work? References: <1074818116.40106c4477a3e@webmail.goodconsultants.com> <40107A09.8090103@mdl.com> <00a801c3e171$327ad290$c215a8c0@skyfox> <036d01c3e1ca$2d88f6a0$c215a8c0@skyfox> In-Reply-To: <036d01c3e1ca$2d88f6a0$c215a8c0@skyfox> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 You just said that server_b depends on server_a. If server_a build fails then server_b cannot be built. It is possible to divide server_a build into separate stages and make server_b depend only on a part of server_a build that does not fail. - Alexey. Baz wrote: >Stefan and all, > >Yes i do have a serious issue with that... My case is like the followings: > >/top_level_dir/build.xml > /server_a/build.xml > /server_b/build.xml > >build.xml from toplevel directory calling level_a/build.xml by doing dir="server_a" Inhertitall="false" Target="all"/> > >build.xml from toplevel directory calling level_b/build.xml by doing dir="server_b" Inhertitall="false" Target="all"/> > >where server_b depends on server_a, and both server_a and server_b have >their own build.xml so that developers can go into server_b directory and >just build server_b. > >Issue #1) When server_a failed in the javac task, and by default, >failonerror="true", the whole build from /top_level_dir/build.xml just >stopped. server_b does not get compile. True, server_b will fail even if it >is going to be compile. > >Issue #2) However, the correct behaviour should be server_a failed in javac >compilation, then start compiling server_b and server_b fails too. This can >be done if I set the failonerror="false" in javac task of server_a. However, >then the build will return SUCCESSFUL which is a wrong behaviour. > >Thanks and please comment. > >B. > >----- Original Message ----- >From: "Stefan Bodewig" >To: >Sent: Thursday, January 22, 2004 11:19 PM >Subject: Re: ant -k and -D flags together will not work? > > > > >>On Thu, 22 Jan 2004, Baz wrote: >> >> >> >>>Cannot execute 'javadoc' - 'compile' failed or was not executed. >>>Cannot execute 'dist' - 'compile' failed or was not executed. >>>Cannot execute 'all' - 'javadoc' failed or was not executed. >>> >>> >>Maybe we should -k better, then. >> >>If a target fails, all targets that depend on that target are going to >>be skipped. If you use -k it means that any other targets that are >>also part of the build process but do not depend on the failing target >>will be executed. >> >>What would you expect a dist target to do if compilation failed? >> >>Stefan >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>For additional commands, e-mail: user-help@ant.apache.org >> >> >> >> > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org