I'm usingt the <cvs> task to commit: here is my task:

        <target name="cvs" description="CVS Commit">

           <cvspass cvsroot="${cvsroot}" password="${cvspass}" 
passfile="${cvspassfile}"/>
           <cvs cvsroot="${cvsroot}" passfile="${cvspassfile}">
                <commandline>
                        <argument value="commit"/>
                        <argument value="-m"/>
                        <argument value="${cvsmsg}"/>
                        <argument value="${cvsmodule}"/>
                </commandline>  
           </cvs>
        </target>       

It is important to add the "-m" commandline option (add a message text, because if you 
don't cvs asks for a comment, but ant won't let you write anything to the cvs 
executable, so everything should be added to the commandline options.

But it would be nice in future versions if there could be a <cvscommit> task with 
message, module etc. attributes, because at this point cvs commt through the <cvs> 
task, is not very more than running cvs through the exec task.

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 16. Juli 2003 10:37
An: [EMAIL PROTECTED]
Betreff: RE: Has anyone ever attempted CVS Commit with Ant


I think there was an answer to that question.

The <cvs> takes a command and doesn�t check against a special list.
The command will be passed to cvs, so a 'commit' should work.

But you have to pay attention about needed arguments. Because I not
familiar with cvs (yet) I can�t tell you more about that.


Jan


> -----Original Message-----
> From: Aurele Venet [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2003 10:34 AM
> To: Ant Users List
> Subject: Re: Has anyone ever attempted CVS Commit with Ant
> 
> 
> Vikas,
> you could try posting your question on the dev mail list 
> where you may 
> find someone working in such a task for a future release.... 
> it's worth 
> a try, but watch out there is a lot of mails coming through when you 
> subscribe to that list.
> 
> Vrata
> 
> Vikas Phonsa wrote:
> 
> >Hi
> >I want to do CVS Commit using Ant and I might have to write 
> a custom task
> >for that.  The attributes of the CVS task in Ant 
> documentation right now,
> >only seem to be for "checkout" or "update" CVS functions/task.
> >
> >Has anyone here ever attempted to do a CVS commit with Ant i,e <cvs
> >command="commit">
> >
> >
> >Vikas
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >  
> >
> 
> 
> -- 
> V
>  . . . . . . . . . 
> tel:+34.918.131.331
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to