ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lemke, Wesley" <>
Subject Escaping Characters
Date Thu, 26 Jan 2006 21:11:55 GMT
We are prompting for a cvs password in our ant script.  However, we have
some users that have special characters in their password (! for

How do I escape the special characters, before I send the cvs command to
the system?

Here is the relevant parts of our build.xml:

	<target name="get-password" unless="cvs.pass">
		<input addproperty="cvs.pass"
			   message="Please enter your CVS password for
${cvs.user} on ${}" />

Later we build the cvs command like this:


If someone's password is:  th!s
I would like cvs.pass to be: th\!s

How do I accomplish this?

Wes Lemke
Agency Markets IT

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message