Re: ant exec task: ssh username contains spaces, how to escape?

2011-02-01 Thread Antoine Levy-Lambert
Hi, in theory, this should work : when you use I am trying to call ssh using the ant exec task from maven. My problem is that I can't figure out how to escape spaces in usernames. I have tried: - To unsubscribe,

Re: How to retrieve IP address

2011-02-01 Thread Martijn Kruithof
On 31-1-2011 9:03, hezjing wrote: Hi May I know if it is possible to retrieve the IP address of the running server in Ant? http://ant.apache.org/manual/Tasks/hostinfo.html using the standard ant task the ADDR4 property is set, which will contain the address of the host ant is running on.

ant exec task: ssh username contains spaces, how to escape?

2011-02-01 Thread Stein Inge Morisbak
I am trying to call ssh using the ant exec task from maven. My problem is that I can't figure out how to escape spaces in usernames. I have tried: ... and also: ... and finally: ... but no luck :-( Any ideas?

Re: Wisdom of using ":" in property name

2011-02-01 Thread Andreas Krey
On Tue, 01 Feb 2011 13:48:52 +, Steele, Richard wrote: ... > I think I really have no choice but to use "." as it's the only character > guaranteed to work in Ant, various extensions and tools, property files, and > command lines--unless someone has a better choice? You may turn the colon onto

Re: Wisdom of using ":" in property name

2011-02-01 Thread Steele, Richard
This is getting rather frustrating. I was going to use "_" (the underscore) until someone sent me a note saying that AntContrib doesn't like properties with that in its name (especially with its foreach task). To be honest I don't care to relay on AntContrib but sometimes really is a life-saver.

Re: Wisdom of using ":" in property name

2011-02-01 Thread Steele, Richard
This pretty much confirms that I shouldn't be using ":" in my property names. (If I once knew that ":" could be used in property files, I don't remember it.) Thanks, Rich On Tue, Feb 1, 2011 at 10:41 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > Damn you Peter, you beat me to

Re: Wisdom of using ":" in property name

2011-02-01 Thread Stephen Connolly
Damn you Peter, you beat me to the punch! On 1 February 2011 14:41, Peter Reilly wrote: > : and = and ' ' are used to separate the key from value in java property > files. > so, not a good thing to use in property values. > > Peter > > > On Tue, Feb 1, 2011 at 2:37 PM, Vimil Saju wrote: >> you'

Re: Wisdom of using ":" in property name

2011-02-01 Thread Niklas Matthies
On Tue 2011-02-01 at 14:41h, Peter Reilly wrote on user: > : and = and ' ' are used to separate the key from value in java property > files. Only when they are unescaped, see http://download.oracle.com/javase/6/docs/api/java/util/Properties.html#load%28java.io.Reader%29. > so, not a good thing t

Re: Ant + Spring = classpath purgatory

2011-02-01 Thread Antoine Levy-Lambert
I think it is log4j which wants to look for config files on the thread context loader. Regards, Antoine On 1/29/2011 1:27 PM, Mitch Gitman wrote: Here's the solution that finally worked for me, and that includes locating the log4j class. This is all in my Ant task: ClassPathXmlAppli

Re: Wisdom of using ":" in property name

2011-02-01 Thread Peter Reilly
: and = and ' ' are used to separate the key from value in java property files. so, not a good thing to use in property values. Peter On Tue, Feb 1, 2011 at 2:37 PM, Vimil Saju wrote: > you're nuts, don't use : in property names! :P > > --- On Tue, 2/1/11, Steele, Richard wrote: > >> From: Ste

Re: Wisdom of using ":" in property name

2011-02-01 Thread Vimil Saju
you're nuts, don't use : in property names! :P --- On Tue, 2/1/11, Steele, Richard wrote: > From: Steele, Richard > Subject: Wisdom of using ":" in property name > To: user@ant.apache.org > Date: Tuesday, February 1, 2011, 5:53 AM > For better or for worse, I'm using > ":" as a separator charac

Wisdom of using ":" in property name

2011-02-01 Thread Steele, Richard
For better or for worse, I'm using ":" as a separator character in my property names as part of a set of reusable build files. The part before the ":" indicates which build file the property is defined in. I've come across at least one incompatibility doing this, however, and that is with the Bun