ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: Escape " in ANT script and Use CVS task
Date Fri, 18 Feb 2005 22:34:38 GMT
> -----Original Message-----
> From: edingo@ns15.worldics.com [mailto:edingo@ns15.worldics.com] On
Behalf
> 
> The "command" attribute is a text string passed directly to cvs, so
use
> whatever command you normally would use. And for the comment, you can
use
> any variable set prior to the call. For example, to add a file with a
> given comment (either in a build.properties, a prior target, or the
> command line), use:
> 
> <target name="_put.cvs.file_">
>    <echo message="Checkin CVS for [${file.name}]" level="debug" />
>    <cvs cvsroot="${cvs.root}"
>         cvsrsh="${cvs.rsh}"
>         dest="${module.dir}"
>         command="add -m \"${cvs.comment}\"
${build.dir}\${file.name}"/>

You can't escape quotes like this in XML.

You must use &quot; instead. (At least I think that's the correct
entity)

-DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message