Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 82530 invoked from network); 11 Nov 2002 16:44:57 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Nov 2002 16:44:57 -0000 Received: (qmail 21511 invoked by uid 97); 11 Nov 2002 16:45:46 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 21495 invoked by uid 97); 11 Nov 2002 16:45:46 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 21483 invoked by uid 98); 11 Nov 2002 16:45:45 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Subject: Re: Using available's property setting ability inside a condition, is it possible? From: David Budworth To: ANT User List In-Reply-To: References: <1036881780.26586.8.camel@dolj> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 11 Nov 2002 08:45:35 -0800 Message-Id: <1037033135.8078.16.camel@dolj> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Actually, this is what I tried from the start But you get a deprecation warning about using available to overwrite an existing property I ended up doing what's below. Looking at it now though, I'm not sure why ${found.compiler} doesn't get overwritten with javac after it's found jikes (both are in my path). But I'd guess that that's a feature of condition (non-overriding). At any rate, this lets you specify the compiler (it assumes the compiler type is the same as the binary to execute ie: jikes=jikes, javac=javac, won't work on windows), or will auto-detect the jikes/javac for you. Compiler Type: ${compiler.type} On Mon, 2002-11-11 at 00:37, Stefan Bodewig wrote: > On 09 Nov 2002, David Budworth wrote: > > > The only workaround for this I can find is to do it the old way, of > > multiple targets with an "unless=compiler.type" tag on them. > > So I'll try to help to find another one: > > property="compiler.type" value="jikes"/> > property="compiler.type" value="javac"/> > > > > Compiler found: ${compiler.found}, type: ${compiler.type} > > Stefan > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: