Hi steve, this is the output I get in verbose mode, thanks for your reply.
C:\Script>ant -verbose
Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: build.xml
Detected Java version: 1.5 in: C:\Program Files\Java\jdk1.5.0_07\jre
Detected OS: Windows XP
parsing buildfile C:\Script\build.xml with URI = file:/C:/Script/build.xml
Project base dir set to: C:\Script
Build sequence for target(s) `checkout' is [checkout]
Complete build sequence is [checkout, ]
checkout:
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
[cvs] Using cvs passfile: C:\Script\.cvspass
[cvs] Executing 'cvs' with arguments:
[cvs] '-d:ext:[EMAIL PROTECTED]:/cvsroot'
[cvs] 'checkout'
[cvs] 'cm2500doc'
[cvs]
[cvs] The ' characters around the executable and arguments are
[cvs] not part of the command.
[cvs]
[cvs] environment:
[cvs]
PRINTS ALL THE ENV. VARIABLES
[cvs] CVS_PASSFILE=C:\Script\.cvspass
AND IT JUST HANGS HERE
Steve Loughran wrote:
>
> Theepan. T wrote:
>> I am writing an ant script to checkout a module from the CVS repository.
>> I
>> have installed cygwin cvs.exe and ssh.exe client. I also have the
>> following
>> environmental variables set:
>>
>> CVSROOT=:ext:[EMAIL PROTECTED]:/cvsroot
>> CVS_RSH=ssh
>>
>> When I checkout on the command prompt using this command: “cvs checkout
>> pack_name”, it works, but when I tried using an ant script to checkout a
>> module, it just hangs. I think it is expecting a response from the
>> server,
>> but im not sure why this happens. I don't really understand why it just
>> hangs, Can someone please help me?
>>
>> This the script I have:
>> <target name="cvs-checkout">
>>
>> <cvspass cvsroot=":ext:[EMAIL PROTECTED]:/cvsroot"
>> passfile=".cvspass"
>> password="password" />
>>
>> <cvs command="checkout"
>> cvsRoot=":ext:[EMAIL PROTECTED]:/cvsroot"
>> dest="C:\repo"
>> passfile=".cvspass"
>> package="pack_name"
>> failonerror="yes"/>
>>
>> </target>
>>
>> OUTPUT:
>> cvs-checkout:
>> (it just hangs here)
>
> what happens if you run it in verbose mode?
>
> --
> Steve Loughran http://www.1060.org/blogxter/publish/5
> Author: Ant in Action http://antbook.org/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/ant-script-just-hang-when-checking-out-of-CVS-tf4510769.html#a12887626
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]