Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 25973 invoked from network); 16 Jun 2007 13:59:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jun 2007 13:59:40 -0000 Received: (qmail 22838 invoked by uid 500); 16 Jun 2007 13:59:40 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 22799 invoked by uid 500); 16 Jun 2007 13:59:39 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 22787 invoked by uid 99); 16 Jun 2007 13:59:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jun 2007 06:59:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [64.233.207.26] (HELO pop-8.dnv.wideopenwest.com) (64.233.207.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jun 2007 06:59:35 -0700 Received: from galaxy (d192-24-199-102.nap.wideopenwest.com [24.192.102.199]) by pop-8.dnv.wideopenwest.com (8.12.8/8.12.8) with SMTP id l5GDxD2R014247 for ; Sat, 16 Jun 2007 08:59:13 -0500 Reply-To: From: "Erica A Ramsey" To: Subject: buiild.xml & ant Date: Sat, 16 Jun 2007 08:59:07 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org hello, it's me again with another problem. I am using tasks provided by oem. One of these tasks is the task. Inside this task I specify resource files as follows; Problem is that I have a macrodef that generates resources. I don't know the names of the resource files ahead of time. And they need to specified inside of the ; however, I can't nest anything ant tasks, for example , inside of it to include the generated files. I even tried using a macrodef inside of it and that didn't work either. Is there a way to have "ant" preprocess the "build.xml" and have it expand a symbol, whose value that I define, before invoking the task? Then I would have the generate resource to create a tmp file and append it with the string "". Then I would use the to read in the element tags into an symbol. (I put '' and load them into symbol with because I can't specify "< or >" inside of "value=" of task. ) Then I would add the following line to build file; @expand ${generated_resources} "ant" would expand it into and invoke the task and it couldn't complain because the data was expanded before it was invoked. Also, I was thinking about creating selfmodifying build file that would first itself, using , looking for the "<-- @replace me -->" pattern and substitute it with the tags. It would copy it to an intermediate build file, build.tmp, and then invoke ant on it with the command argument -Dnocopy. This argument would flag the new build file not to copy itself again so I don't go into an infinite loop, of course I could always strip out the self copy tasks as well. I think that this might work but I prefer to use the first method. Please, If someone knows a better way please help me. Please note that I am trying to use "ant 1.6.1" because that is the environment it must run in. Thanks! No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.17/850 - Release Date: 6/15/2007 11:31 AM --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org