Hi, I'm using nant-0.85-rc1 .
I want to realize a check-out on a given tag. I'm trying this : <target name="test.checkout"> <cvs-checkout destination="c:\checkout" cvsroot=":pserver:[EMAIL PROTECTED]:/home/az/CVSDIR" module="my_module" verbose="true" usesharpcvslib="false" sticky-tag="revision_1" /> </target> I got this : [cvs-checkout] Using ssh binary: [cvs-checkout] Using .cvspass file: [cvs-checkout] Working directory: c:\checkout [cvs-checkout] Executable: cvs.exe [cvs-checkout] Arguments: -d:pserver:[EMAIL PROTECTED]:/home/az/CVSDIR checkout " -r revision_1" my_module [cvs-checkout] Starting 'cvs.exe ( -d:pserver:[EMAIL PROTECTED]:/home/az/CVSDIR checkout "-r revision_1" my_module)' in 'c:\checkout' [cvs-checkout] cvs [server aborted]: no such tag revision_1 Well, I put cvs.exe -d:pserver:[EMAIL PROTECTED]:/home/az/CVSDIR checkout "-r revision_1" my_module in a prompt command. It doesn't work. However, when I try cvs.exe -d:pserver:[EMAIL PROTECTED]:/home/az/CVSDIR checkout -r revision_1 my_module , it works. The only difference is that I removed the quote embracing -r revision. I have seen in the source code (yes, I have time for that today ;))) , and actually in Argument.cs , I can see: else if (argument.IndexOf("'") > -1 || argument.IndexOf(" ") > -1) { // argument contains space and is not quoted, so quote it return '\"' + argument + '\"'; Because there is a space between -r and revision, it puts a quote. As a solution, I will launch "cvs.exe" as an external command. However, is there a better solution ? Thanks, Pierre. ****************************************************************** This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. *************** Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration.La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, modifie ou falsifie. ****************************************************************** ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users