Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
gValue);     self.log(i);     if (i >= 0)     {   project.setProperty("isSubstring","true");     }     ]]>         From: Scot P. Floess To: Eric Fetzer Sent: Thu, January 21, 2010 12:48:23 PM Subject: Re: AppendToProperty

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
time: 0 seconds   ____ From: Scot P. Floess To: Eric Fetzer Sent: Thu, January 21, 2010 11:20:33 AM Subject: Re: AppendToProperty MacroDef Eric: I didn't get a chance to look into any of this today.  Making up some hours for coming in late on Monday :(  Well

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
al with an @: string myString = @"C:\Program Files\JavaScript\is\goofy"; Thanks, Eric From: Scot P. Floess To: Ant Users List Sent: Thu, January 21, 2010 9:08:03 AM Subject: Re: AppendToProperty MacroDef Interesting... OK :( On Thu, 21 Jan 201

Re: AppendToProperty MacroDef

2010-01-21 Thread Scot P. Floess
Sent: Thu, January 21, 2010 8:48:29 AM Subject: Re: AppendToProperty MacroDef Will you echo ${myProp} itself?  For example before the first propertyregex... Sorry, I don't have time right this minute to look at this and type in the example :) On Thu, 21 Jan 2010, Eric Fetzer wrote: A

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
: AppendToProperty MacroDef Will you echo ${myProp} itself?  For example before the first propertyregex... Sorry, I don't have time right this minute to look at this and type in the example :) On Thu, 21 Jan 2010, Eric Fetzer wrote: > And to leverage your \n example: > > > > >

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
ubject: Re: AppendToProperty MacroDef And to leverage your \n example:                                     Produces: main: [echo] tmpProp is:  C:\noDog\Hates\Big\Juicy\Bones [echo] tmpProp is:  C:\\noDog\\Hates\\Big\\Juicy\\Bones [echo] tmpProp is:  C:\noDog\\Hates\

Re: AppendToProperty MacroDef

2010-01-21 Thread Scot P. Floess
a:257)     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Total time: 0 seconds From: Eric Fetzer To: Ant Users List Sent: Thu, January 21, 2010 8:28:07 AM Subject: Re: AppendToProperty MacroDef Let me give you a better example Scot.  Substit

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
: AppendToProperty MacroDef Let me give you a better example Scot.  Substitution seems to ignore escape characters entirely.  As the task is written now, I don't imagine there is a way to replace \'s.                                     Produces: main: [echo] tmpP

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
104) Total time: 0 seconds From: Scot P. Floess To: Ant Users List Sent: Thu, January 21, 2010 8:09:33 AM Subject: Re: AppendToProperty MacroDef I might be wrong but I think the output you are seeing is correct - as in the \ is escapeed thereby printing only

Re: AppendToProperty MacroDef

2010-01-21 Thread Scot P. Floess
true; I'll take a look at how to achieve this tomorrow. Thanks! Eric From: Scot P. Floess To: Ant Users List Sent: Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex Basicall

Re: AppendToProperty MacroDef

2010-01-21 Thread Eric Fetzer
Thanks, Eric From: Eric Fetzer To: Ant Users List Sent: Wed, January 20, 2010 1:40:34 PM Subject: Re: AppendToProperty MacroDef Beautiful, thanks Scott! On Jan 20, 2010, at 1:18 PM, "Scot

Re: AppendToProperty MacroDef

2010-01-21 Thread Scot P. Floess
Of(string1) >= 0) then return true; I'll take a look at how to achieve this tomorrow.  Thanks! Eric ____ From: Scot P. Floess To: Ant Users List Sent: Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex re

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
From: Scot P. Floess To: Ant Users List Sent: Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex Basically the above will escape the \ On Wed, 20 Jan 2010, Eric Fetzer wr

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
Sent: Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex regexp="\\" replace="" globale="true"/> Basically the above will escape the \ On Wed, 20 Jan 2010, Eric Fet

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
ue; I'll take a look at how to achieve this tomorrow.  Thanks! Eric From: Scot P. Floess To: Ant Users List Sent: Wed, January 20, 2010 2:21:41 PM Subject: Re: AppendToProperty MacroDef Mmm - you may need to do this before your first propertyregex Ba

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
not with slashes.  Anyone see a better way?                                                                       Thanks, Eric From: Eric Fetzer To: Ant Users List Sent: Wed, January 20, 2010 1:40:34 PM Subject: Re: AppendToProperty MacroDef Beautiful, thanks Scott! On Jan 20

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
ubject: Re: AppendToProperty MacroDef Beautiful, thanks Scott! On Jan 20, 2010, at 1:18 PM, "Scot P. Floess" wrote: You could use Ant Contrib's var task - probably be a little easier :)   On Wed, 20 Jan 2010, Eric Fetzer wrote: Hi all.  I wrote a MacroDef to append a string

Re: AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Beautiful, thanks Scott! On Jan 20, 2010, at 1:18 PM, "Scot P. Floess" wrote: You could use Ant Contrib's var task - probably be a little easier :) On Wed, 20 Jan 2010, Eric Fetzer wrote: Hi all. I wrote a MacroDef to append a string to a property. All works as planned unt

Re: AppendToProperty MacroDef

2010-01-20 Thread Scot P. Floess
You could use Ant Contrib's var task - probably be a little easier :) value="$...@{var.propertyname}}@{var.stringAppend}"/> On Wed, 20 Jan 2010, Eric Fetzer wrote: Hi all.  I wrote a MacroDef to append a string to a property.  All works as planned until you slip a "\" in t

Re: AppendToProperty MacroDef

2010-01-20 Thread Alexey N. Solofnenko
Why not to use instead? With you can pragmatically access parameters instead of macro substitution. - Alexey. On 20.01.2010 12:10, Eric Fetzer wrote: Hi all. I wrote a MacroDef to append a string to a property. All works as planned until you slip a "\" in there and then it gets jacked up.

AppendToProperty MacroDef

2010-01-20 Thread Eric Fetzer
Hi all.  I wrote a MacroDef to append a string to a property.  All works as planned until you slip a "\" in there and then it gets jacked up.  My javascripting has MUCH to be desired.  Any help?