Your CVSROOT is not set properly. Change it too...
...
<cvspass cvsRoot="pserver:[EMAIL PROTECTED]:/home/gtekcvs"
password="${user.cvspass}"/>
<cvs cvsRoot="pserver:[EMAIL PROTECTED]:/home/gtekcvs"
command="-Q checkout"
package="Xpan/src"
dest="${src.dir}"
failonerror="true">
</cvs>
-Rob Anderson
> -----Original Message-----
> From: Pritesh Saharey [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 17, 2005 3:40 AM
> To: Ant Users List
> Subject: cannot connect to socket: Connection refused
>
>
> Hi All,
> I am trying to checkout the package from CVS using ant
> from Windows 2000 m/c, my cvs.exe is in path. Below is the
> snipte of code which Iam using
> <target name="cvsget-source"
> description="getting the latest source code from CVS">
> <record name="CVS.log" action="start"/>
> <cvspass
> cvsRoot="pserver:[EMAIL PROTECTED]:2401/home/gtekcvs"
> password="${user.cvspass}"/>
> <cvs cvsRoot="pserver:[EMAIL PROTECTED]:2401/home/gtekcvs"
> command="-Q checkout"
> package="Xpan/src"
> dest="${src.dir}"
> failonerror="true">
> </cvs>
> <record name="CVS.log" action="stop"/>
>
> </target>
>
> After running the build.xml file it is giving me error like this:
> [cvs] Using cvs passfile: C:\Documents and
> Settings\Administrator\.cvspass
> [cvs] cvs [checkout aborted]: cannot connect to socket:
> Connection refused
> [cvs]
> [cvs]
>
> BUILD FAILED
>
> C:\downloads\gtek\build.xml:51: cvs exited with error code 1
> Command line was [Executing 'cvs' with arguments:
> '-dpserver:[EMAIL PROTECTED]:2401/home/gtekcvs'
> '-Q'
> 'checkout'
> 'Xpan/src'
>
> The ' characters around the executable and arguments are
> not part of the command.
>
> Can anybody guss what I am doing wrong?
> Any Help would be higly appreciated.
>
> Regards
> pritesh
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]