Hello Clayton...
> I think the most recent test is because you do not have a project checked
out
> to the C:\Temp directory (i.e. no CVS folders and therefore no CVS\Root
folder).
> One solution that might fix this is to wrap your update task in a check to
see
> if the project
> exists. Another solution would to be just to perform a checkout if the
> repository
> does not exist, but it may clobber files if there is a mistake in your
> destination attribute...
Yes... actually I choose your second suggestment... if there is no
"receiving folder" locally then I checkout the module else I update.
> I think the second one might be the backslashes in the cvsroot, can you
> verify that the following works from the commmandline:
> C:\wincvs\cvs.exe -d:local:\\myServer\root\cvs update "-P -d"
Mmm...
The cvsroot that I have used for the two tasks (<cvs-checkout> and
<cvs-update>) is the same...
<cvs-checkout> likes it but <cvs-update> does not like it!
Why this different behavior??
It seems that <cvs-update> doesn't "see" the "cvsroot" attribute.
In the experiment with the <cvs> task it seems that nant makes a mistake
parsing the "commandline" attribute.
In fact, Instead of writing
[cvs] Arguments: -d:local:\\myServer\root\cvs update -P -d
it writes
[cvs] Arguments: -d:local:\\myServer\root\cvs update "-P -d"
Note the quotes around -P -d parameters!!!
More probably the mistake is mine, but I'm not able to find it!!
:(
Thank you very much Clayton!!!
Bye bye,
Nicola
> > -----Original Message-----
> > From: Nicola Iuretigh [mailto:[EMAIL PROTECTED]
> > Sent: Mon 10/18/2004 12:01 AM
> > To: [EMAIL PROTECTED]
> > Cc:
> > Subject: Re: [Nant-users] Some problems with <cvs-update> and <cvs>
tasks
> >
> >
> >
> >
> > Any suggestion for this problem?
> >
> > Thank you very much,
> >
> >
> > Nicola
> >
> >
> > ----- Original Message -----
> > From: "Nicola Iuretigh" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, October 15, 2004 6:29 PM
> > Subject: [Nant-users] Some problems with <cvs-update> and <cvs> tasks
> >
> >
> > > Hi!
> > >
> > > I am continuing with my newbie experiments...
> > >
> > > Now I'm playing with <cvs> task and related <cvs-update> and
> > <cvs-checkout>.
> > >
> > > When I tried to execute this task...
> > >
> > > <cvs-checkout
> > >
> > > unless="${ sourcesDestination.dir.present }"
> > >
> > > usesharpcvslib="false"
> > >
> > > destination="${ root.dir }"
> > > cvsroot="${ cvs.root }"
> > > module="${ sources.module }"
> > > verbose="true">
> > >
> > > </cvs-checkout>
> > >
> > >
> > > ... all things are ok!!
> > >
> > >
> > >
> > > Instead, when I tried <cvs-update> task with the same attributes...
> > >
> > >
> > > <cvs-update
> > >
> > > if="${ sourcesDestination.dir.present }"
> > >
> > > usesharpcvslib="false"
> > >
> > > destination="${ root.dir }"
> > > cvsroot="${ cvs.root }"
> > > module="${ sources.module }"
> > > verbose="true">
> > >
> > > </cvs-update>
> > >
> > > ... Nant told me that...
> > >
> > > [cvs-update] Working directory: C:\Temp
> > > [cvs-update] Executable: C:\wincvs\cvs.exe
> > > [cvs-update] Arguments: update -P -d
> > > [cvs-update] Starting 'C:\wincvs\cvs.exe ( update -P -d)' in 'C:\Temp'
> > > [cvs-update] cvs.exe update: No CVSROOT specified! Please use the
`-d'
> > > option
> > > [cvs-update] cvs.exe [update aborted]: or set the CVSROOT environment
> > > variable.
> > > BUILD FAILED - 0 non-fatal error(s), 2 warning(s)
> > >
> > > Uhm!!??
> > >
> > >
> > >
> > > So, to finally have a cvs update, I tried this...
> > >
> > > <cvs
> > > if="${ sourcesDestination.dir.present }"
> > >
> > > usesharpcvslib="false"
> > > command="update"
> > > commandline="-P -d"
> > >
> > > destination="${ root.dir }"
> > > cvsroot="${ cvs.root }"
> > > module="${ sources.module }"
> > > verbose="true" >
> > >
> > > </cvs>
> > >
> > > And then NAnt told that...
> > >
> > >
> > > [cvs] Working directory: C:\Temp
> > > [cvs] Executable: C:\wincvs\cvs.exe
> > > [cvs] Arguments: -d:local:\\myServer\root\cvs update "-P -d"
> > > [cvs] Starting 'C:\wincvs\cvs.exe ( -d:local:\\myServer\root\cvs
update
> > > "-P -d")' in 'C:\Temp'
> > > [cvs] update: invalid option --
> > > [cvs] Usage: cvs.exe update [-APdflRp] [-k kopt] [-r rev|-D date] [-j
> rev]
> > > [cvs] [-I ign] [-W spec] [files...]
> > > [cvs] -A Reset any sticky tags/date/kopts.
> > > [cvs] -P Prune empty directories.
> > > [cvs] -d Build directories, like checkout does.
> > > [cvs] -f Force a head revision match if tag/date not found.
> > > [cvs] -l Local directory only, no recursion.
> > > [cvs] -R Process directories recursively.
> > > [cvs] -p Send updates to standard output (avoids stickiness).
> > > [cvs] -k kopt Use RCS kopt -k option on checkout.
> > > [cvs] -r rev Update using specified revision/tag (is sticky).
> > > [cvs] -D date Set date to update from (is sticky).
> > > [cvs] -j rev Merge in changes made between current revision and rev.
> > > [cvs] -I ign More files to ignore (! to reset).
> > > [cvs] -W spec Wrappers specification line.
> > > [cvs] (Specify the --help global option for a list of other help
> options)
> > > BUILD FAILED - 0 non-fatal error(s), 17 warning(s)
> > >
> > >
> > >
> > > And now I have no more "arrows"!!!
> > >
> > > Can you help me, please?
> > >
> > >
> > > Thank you very much!
> > >
> > > Bye,
> > >
> > > Nicola
> > >
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: IT Product Guide on
ITManagersJournal
> > > Use IT products in your business? Tell us what you think of them. Give
> us
> > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> > more
> > > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > > _______________________________________________
> > > Nant-users mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/nant-users
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
> > Use IT products in your business? Tell us what you think of them. Give
us
> > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
> more
> > http://productguide.itmanagersjournal.com/guidepromo.tmpl
> > _______________________________________________
> > Nant-users mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/nant-users
> >
> >
> >
>
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users