ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 48985] Special characters like $ and § are not supported in password attribute of sshexec task
Date Thu, 21 Feb 2013 03:48:37 GMT

--- Comment #5 from Antoine Levy-Lambert <> ---
Looking at the attachment, I start to understand the problem of Sudheer.
It is a problem in the ant script, not a problem of the sshexec task.

The ant script ( $ANT_HOME/bin/ant ) puts all the command line arguments in a
variable $ANT_ARGS and then uses the eval internal shell command to kick off
java with the parameters to start ant.

Try to run your example like this :

sh -x ant-Dsecret='welcome$321' 

you will then see what happens internally.

if you run ant -Dsecret=welcome$321 the $3 is eliminated by the shell from
which you start the command before reaching the ant script.

as you wrote ant -Dsecret=welcome'\$'321 works because this is the only way to
convey the value that you want across both the calling shell and the internals
of the ant script.

You are receiving this mail because:
You are the assignee for the bug.

View raw message