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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- David A. Bartmesss Sr. Software Configuration Manager http://edingo.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]