Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 14330 invoked from network); 28 Aug 2003 19:38:05 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Aug 2003 19:38:05 -0000 Received: (qmail 27007 invoked by uid 500); 28 Aug 2003 19:37:14 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 26922 invoked by uid 500); 28 Aug 2003 19:37:12 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 26844 invoked from network); 28 Aug 2003 19:37:10 -0000 Received: from unknown (HELO pscgate.progress.com) (192.77.186.1) by daedalus.apache.org with SMTP; 28 Aug 2003 19:37:10 -0000 Received: from elvirus.progress.com (elvirus [192.77.186.100]) by pscgate.progress.com (8.12.9/8.12.9/PSC-5.09) with ESMTP id h7SJb7Lh016262 for ; Thu, 28 Aug 2003 15:37:08 -0400 (EDT) Received: from progress.com (localhost [127.0.0.1]) by elvirus.progress.com (8.10.2/8.10.2/PSC-4.01) with ESMTP id h7SJb7E07037 for ; Thu, 28 Aug 2003 15:37:07 -0400 (EDT) Received: from naserv.bedford.progress.com (naserv [172.16.5.174]) by progress.com (8.11.6/8.11.6) with ESMTP id h7SJb7113598 for ; Thu, 28 Aug 2003 15:37:07 -0400 (EDT) Received: from progress.com by naserv.bedford.progress.com (iPlanet Messaging Server 5.2 HotFix 1.17 (built Jun 23 2003)) with ESMTP id <0HKC00601H5U0U@naserv.bedford.progress.com> for user@ant.apache.org; Thu, 28 Aug 2003 15:37:07 -0400 (EDT) Date: Thu, 28 Aug 2003 15:40:40 -0700 From: Claudio Corsi Subject: Re: String replacement in a property? In-reply-to: To: Ant Users List Message-id: <3F4E84E8.20002@progress.com> Organization: ObjectStore, A Division of Progress Software MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 References: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Use the pathconvert task with a nested map element. Robert Simmons wrote: > Greetings, > > I would like to provide functionality to replace all '.' characters in a > property with '/' characters. > > Essentially what I'm trying to do is allow the user to do two different targets > the same way. > > >>ant -Dexample=org.myorg.myproduct.MyClass run >>ant -Dexample=org.myorg.myproduct.MyClass compile > > > In the second line I need a replacement to pass to the compiler that would give > me essentially the same result as: > > > > Then I can use this in the compile target > > Any ideas? > > TIA > > -Robert > > > > > > --------------------------------------------------------------------- > 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