Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 93851 invoked from network); 28 Sep 2000 11:25:52 -0000 Received: from public.ndh.net (HELO public.ndh.com) (195.94.90.21) by locus.apache.org with SMTP; 28 Sep 2000 11:25:52 -0000 Received: from sbodewig.bost.de ([195.227.98.11]) by public.ndh.com (8.9.3/8.8.0) with ESMTP id NAA08119 for ; Thu, 28 Sep 2000 13:25:46 +0200 (MET DST) Received: (from bodewig@localhost) by sbodewig.bost.de (8.9.3/8.9.3) id NAA03989; Thu, 28 Sep 2000 13:25:47 +0200 X-Authentication-Warning: sbodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-user@jakarta.apache.org Subject: Re: FW: properties that are not set References: From: Stefan Bodewig Date: 28 Sep 2000 13:25:47 +0200 In-Reply-To: Wim Bervoets's message of "Thu, 28 Sep 2000 13:11:36 +0200" Message-ID: Lines: 41 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Wim, I've seen your message before but thought somebody could offer a solution. >>>>> "WB" == Wim Bervoets writes: WB> So I use {$1}, {$2}, {$3} and create a directory with that name WB> each time. To do something like this, you'd need a loop construct of some kind. There is nothing like this built into Ant, all you could do is to use scripting. I'm not sure how one would go about to see whether a variable is actually set in a scripting language - JavaScript's not really my toy. Something like would probably work - if you get the VARIABLE_WITH_NAME_I_EXISTS part filled in, that is. You can write your own task in Java to do this, this would probably look like this (in execute()) int i = 0; while (project.getProperty(i+"") != null) { Mkdir mkdir = (Mkdir) project.createTask("mkdir"); mkdir.setDir(i+""); mkdir.execute(); i++; } Stefan