Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [phing-dev] phing gets new CVS tasks

phing
Discussion topic

Back to topic list

[phing-dev] phing gets new CVS tasks

Author hlellelid
Full name Hans Lellelid
Date 2003-11-18 20:07:54 PST
Message Courtesy of ANT, I've added phing-ified versions of CvsTask and
CvsPassTask. Ant has a lot of other cool CVS stuff -- like revision
history, and more complex diff tasks -- but this is all I plan to add
for now. I've also added some features to ExecTask, like ability to
direct output and error (stderr) to files.

*CvsTask* - As you would expect, this lets you do pretty much anything
with CVS. It's still in "does this actually work?" stage, but I've done
some basic tests (e.g. checkout / update). This task calls ExecTask
which actually does the command execution.

  <cvs cvsRoot=":pserver:gu​est at cvs dot tigris dot org:/​cvs"
       module="phing"
       dest="${ws.dir}"
  />

 -- or, more complex:

<cvs output="patch">
    <commandline>
        <argument value="-q"/>
        <argument value="diff"/>
        <argument value="-u"/>
        <argument value="-N"/>
    </commandline>
</cvs>

*CvsPassTask* - This lets you create your own cvs password file -- i.e.
this is necessary if you want to provide a password in your build file.
Pretty simple.
      
        <!-- create a password file -->
        <cvspass cvsRoot=":pserver:gu​est at cvs dot tigris dot org:/​cvs"
passfile="cvspass" password="guest"/>
       
        <!-- use the just-created password file -->
        <cvs cvsRoot=":pserver:gu​est at cvs dot tigris dot org:/​cvs" module="phing"
passFile="cvspass" />


Fun stuff :)

Hans
Attachments

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[phing-dev] phing gets new CVS tasks hlellelid Hans Lellelid 2003-11-18 20:07:54 PST
Messages per page: