Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 93824 invoked from network); 29 Apr 2003 14:50:55 -0000 Received: from europa.heavens-door.net (212.77.229.2) by daedalus.apache.org with SMTP; 29 Apr 2003 14:50:55 -0000 Received: from gmx.de (fire2.mediatis.de [62.96.5.10]) (authenticated bits=0) by europa.heavens-door.net (8.12.2/8.12.8) with ESMTP id h3TEoqk9003408 for ; Tue, 29 Apr 2003 16:50:53 +0200 Message-ID: <3EAE919A.8060301@gmx.de> Date: Tue, 29 Apr 2003 16:52:10 +0200 From: Christopher Lenz Organization: mediatis GmbH User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en MIME-Version: 1.0 To: Ant Users List Subject: Re: Conditionally passing property to References: <3EAE5AAB.6000701@gmx.de> <1051623756.993.45.camel@localhost> In-Reply-To: <1051623756.993.45.camel@localhost> X-Enigmail-Version: 0.73.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Jesse Stockall wrote: > On Tue, 2003-04-29 at 06:57, Christopher Lenz wrote: > >>Hi folks, >> >>I'd like to call another build file with a set of optional properties. >>If defined, those properties point to directories. In addition, I cannot >>use property inheritance. >> >>The naive attempt >> >> >> >> >> >>works fine if 'mydir' has been defined, but of course fails when it >>hasn't -- because the property is set to the literal ${mydir}. The >>called script checks whether the property has been set, and only >>executes some tasks if it has. >> >>So what I'd need would basically be: >> >> >> >> >> >>Any ideas? >> > > > In your main build file have 3 targets > > > > > > > > and > > > > > > and > > > > Use the 'callant' target and it will execute other build file with the > desired properties. > Yeah, I thought of that. The problem's that I have 7 or so of those properties that I want to pass at once, so that would lots of targets :-P -chris