Try using '/' instead of '\'.  Alternatively, double up the '\'s.
I'm not sure exactly why this is necessary (something to do with being
platform-neutral) but it has worked for me in other scenarios.

Nick

-----Original Message-----
From: IH [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 1:02 PM
To: [EMAIL PROTECTED]
Subject: Ant Cvs Checkout Vs Commandline Check, cmd works ant doesn't



In Win2000 I use ant 1.4.1 with a cvs rule to checkout my code.  I
first log in to cvs using the normal cvs command line cvs login.  I
then issue my command to ant to checkout my source code.  The command
fails with an authentication problem.  Supplying the -debug option to
ant reveals the equivalent command line that it is trying to execute.
I then execute this command line and it works fine.  Why does it not
work through ant?


I have an ant rule:

<target name="cvsian">

 <cvs
 command="checkout"
 passfile="c:\.cvspass"
   package="module/dir2"
        dest="e:\temp5"/>

</target>

I run it with:

>ant -debug cvsian

I get this output:

cvsian:
Execute:Java13CommandLauncher: cvs checkout vista/webct
      [cvs] cvs checkout: authorization failed: server
cvs.cobalt.webct.com reje
cted access to /cvs for user ihyatt

BUILD SUCCESSFUL

Total time: 2 seconds

Now I try on the dos command line:

E:\projects\webct\build>e:

E:\projects\webct\build>cd\temp5

E:\temp5>cvs checkout vista/webct
? module/dir2/WEB-INF/struts-config.xml
cvs server: Updating module/dir2

it works..


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



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

Reply via email to