ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: $ problem in ANT task...
Date Fri, 15 Nov 2002 20:14:22 GMT
Which version of Ant?

Before 1.4, Ant required doubling the $ signs. So $$ resulted in $, etc...
This still is the case in 1.5+ (for backward compatibility), but now $ sign
on there own (not followed by a {, as in '${prop}') are left alone. So
'abc$def' stays as 'abc$def', while 'abc$$def' is compressed to 'abc$def'.
So normally, to end up with 'abc$$def', you'll need to write either
'abc$$$def' or 'abc$$$$def'.

Did I get this right Stefan?  ;-)  --DD

-----Original Message-----
From: David McTavish [] 
Sent: Friday, November 15, 2002 2:07 PM
To: 'Ant Users List'
Subject: RE: $ problem in ANT task...

I think this is the default behaviour. If you want to display a string
character ($), you have to escape it or place a string character before it

-----Original Message-----
From: Nicklas McCalip [] 
Sent: Friday, November 15, 2002 3:05 PM
Subject: $ problem in ANT task...

I came across something the other day that I thought someone might
want to take a look at.   I was setting up a custom JDBCTask and was
having problems getting a conncetion to the database.   It wasn't
until I echoed my userid and password that I realized what it was.  
You see the password we use for development purposes contains two "$"
back to back; like "sa$$y".   When the password was echoed it
displayed only on "$"; like "sa$y", infact I had to put three back to back
"$" before it would interpret the input as desired.  

Seems even when the "$" is in the middle of a quoted strring it still trying
to parse out a value.

The matter isn't urgent since you can work around it by "$" with a "$" but
wanted to bring it to someones attention.

Nick McCalip

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message