Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 95913 invoked from network); 21 Aug 2010 02:51:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Aug 2010 02:51:25 -0000 Received: (qmail 44019 invoked by uid 500); 21 Aug 2010 02:51:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 43751 invoked by uid 500); 21 Aug 2010 02:51:23 -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 43743 invoked by uid 99); 21 Aug 2010 02:51:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Aug 2010 02:51:22 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbeard4@cs.mcgill.ca designates 132.206.51.234 as permitted sender) Received: from [132.206.51.234] (HELO mail.cs.mcgill.ca) (132.206.51.234) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Aug 2010 02:51:17 +0000 Received: from [192.168.0.101] (d67-193-159-140.home3.cgocable.net [67.193.159.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.mcgill.ca (Postfix) with ESMTP id 9F5A7BF9A2B for ; Fri, 20 Aug 2010 22:50:56 -0400 (EDT) Message-ID: <4C6F3F0F.4060200@cs.mcgill.ca> Date: Fri, 20 Aug 2010 22:50:55 -0400 From: Jacob Beard User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: Ant Users List Subject: Re: convert ant path without assigning to immutable property References: <4C6EE64F.3090709@cs.mcgill.ca> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Great, thanks! Jake On 10-08-20 05:07 PM, Peter Reilly wrote: > you can use from ant 1.8 onwards. > > > > > > to="build/@{backend}/@{for-ie}/*.js"/> > > > > > file="${target-test-path}"/> > > http://ant.apache.org/manual/Tasks/local.html > > Peter > On Fri, Aug 20, 2010 at 9:32 PM, Jacob Beard wrote: > >> Hi, >> >> I have a situation where I have a path with a number of path segments, and, >> for each path segment, I need to transform that path segment (presumably >> using a mapper), and then pass the original path segment AND the transformed >> path segment to a macro. >> >> The problem is that it's not clear to me how to transform the path, without >> assigning the transformed path to an immutable property. >> >> The slightly simplified build file is below. >> >> | >> >> >> >> > /> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > output="@{out-path}"> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > to="build/@{backend}/@{for-ie}/*.js"/> >> >> >> >> > file="${target-test-path}"/> >> >> ${target-test-path}, ${target-test-path-dir} >> >> >> >> >> >> > test-path="@{test-path}" >> backend="@{backend}" >> out-path="${target-test-path}"/> >> >> >> >> >> >> >> >> >> >> | >> >> Because target-test-path and target-test-path-dir will only be assigned to >> once, this will repeatedly echo the following: >> [echo] build/switch/is-for-ie/KitchenSink.js, >> /home/jacob/workspace/gsoc2010/git-scxml-js/scxml-js/build/switch/is-for-ie >> >> I'd appreciate any guidance anyone can offer. Thanks, >> >> Jake >> >> PS: I've also posted this question on Stack Overflow: >> http://stackoverflow.com/questions/3534659/convert-ant-path-without-assigning-to-immutable-property >> >> >> > --------------------------------------------------------------------- > 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