ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David A Bartmess" <dingod...@edingo.net>
Subject Re: Escape " in ANT script and Use CVS task
Date Fri, 18 Feb 2005 22:28:41 GMT
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}"/>
</target>


On Fri, February 18, 2005 1:12 pm, Michael Wang \(IT\) said:
> Hi,
>
> I wanna use <cvs> task to add and commit some files. What's the correct
> format to do it?
>
> So far, for commit, here is a sample ant
>
> 	<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="-r ci -m \"Auto Builder\" ${build.dir}\${file.name}"/>
> 	</target>
>
> 	is there a way to put message or lable there when commit?
>
> I still don't figure out how to add a new file there. Thanks.
>
> MW.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
David A. Bartmesss
Sr. Software Configuration Manager
http://edingo.net

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


Mime
View raw message