Hi Steve,

Noel is correct, to update a single file use the <cvs-update /> task.  I have updated 
the documentation to specify how to specify a single file with the task:
    <cvs-update 
        destination="c:\src\nant\" 
        cvsroot=":pserver:[EMAIL PROTECTED]:/cvsroot/nant" 
        password="" 
        module="nant"
        revision="your_favorite_revision_here"
        overridedir="replacement_for_module_directory_name"
        usesharpcvslib="false">
        <fileset>
            <includes name="build.number"/>
        </fileset>
    </cvs-update>

Note the attribute usesharpcvslib="false" which must be specified to use the cvs.exe 
in your path.  Unfortunately #cvslib does not support filesets yet.

Also below you are using the export command.  I have support for this tonight, please 
check the documentation on <cvs-export/>.  On a high level, it supports a similar 
format to the <cvs-update/> task however one imporant difference is the module must 
prefix the filename being updated (i.e. build.number would need to be prefixed by the 
module: <includes name="nant/build.number"/> for an export).


Cheers,


Clayton





-----Original Message-----
From:   Noel Gifford [mailto:[EMAIL PROTECTED]
Sent:   Tue 5/11/2004 5:59 PM
To:     'steve gupta'; [EMAIL PROTECTED]
Cc:     
Subject:        RE: [Nant-users] cvs updating
>From the documentation --
http://nant.sourceforge.net/nightly/help/tasks/cvs-update.html

Update your NAnt revision named your_favorite_revision_here in the folder
c:\src\nant\replacement_for_module_directory_name.
<cvs-update
    destination="c:\src\nant\"
    cvsroot=":pserver:[EMAIL PROTECTED]:/cvsroot/nant"
    password=""
    module="nant"
    revision="your_favorite_revision_here"
    overridedir="replacement_for_module_directory_name">
</cvs-update>

Noel

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of steve gupta
Sent: Tuesday, May 11, 2004 11:00 AM
To: [EMAIL PROTECTED]
Subject: [Nant-users] cvs updating

hi folks, I was trying to create nant script to update from cvs a just one
particular file rather than the whole project.

A few years ago I was able to do this with a java program using window
shell.
This was the command I came up with to do this.

cvs.exe -d :pserver:cvsroot:/cvs/root/host export -f -r
vstag_rev_whatever  -d c:\thisdirectory cvspath_modulePath/mydll.dll

I noticed nant doesn't support -f, I can't remember what it does anyhow, it
was a long time ago.

Does anyone know how to set up a nant cvs script to update a single file?

I suppose I could take the long way home and update the module and then copy
the file. Guess I was hoping to kill 2 birds with extra work.





-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to