You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Saladin Sharif <al...@yahoo.com> on 2007/10/11 19:28:47 UTC

Re: ant script just hang when checking out of CVS [Similar problem with cvstagdiff]

I am not certain why the cvstagdiff was hanging, but I was able to achieve the same functionality that I was looking for by using the CVS task and passing it the "diff" as a command line option.  For example:

<cvs dest="${cvs.checkout.dir}" output="${cvs.checkout.dir}/out1.txt" error="${cvs.checkout.dir}/out2.txt">
  <commandline>
    <argument line="diff --brief"/>
  </commandline>
</cvs>

That is good enough for what I am trying to do; plus since I am using the cvs task instead of the exec task, I am assuming that my ANT script should be platform independent (i.e. run on both windows and unix).
Thanks for your help,
-Saladin


 
**********************************************************
* Saladin Sharif
* e-mail: al_zawiah@yahoo.com
* Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
**********************************************************


----- Original Message ----
From: Dominique Devienne <dd...@gmail.com>
To: Ant Users List <us...@ant.apache.org>; al_zawia@yahoo.com
Sent: Thursday, September 27, 2007 8:10:50 AM
Subject: Re: ant script just hang when checking out of CVS [Similar problem with cvstagdiff]

On 9/26/07, Saladin Sharif <al...@yahoo.com> wrote:
> triggered a JVM thread dump on the hanging Ant
> process.  I have copied and pasted the thread dump at
> the end of this e-mail message.

Nothing that looks unusual there. The cvs command was forked, and the
stream pumper on another thread is reading the output of the command.

In the past (months? years?), some people complained cvstagdiff was
taking an inordinate amount of time compared to the same command on
the command line. You haven't said anything on how long the command
takes on the CLI, and whether this time changes or not with <exec>.
You could try testing on a smaller repo or inside a subset of your
repo.

If someone the command slows down, how long have you waited before
asserting it hangs? Doing the test on a very small repo might allow it
to complete in a "reasonnable" time.

Also, try thread dumps at different times, to see if you can get a
different stack-trace.

> > 2) Provide relevant information: version of CVS
> > client? version of CVS
> > server? JVM? Ant version? OS? etc...
>
> * CVS client version:
>
> Concurrent Versions System (CVS) 1.11.22 (client)

I'd try CVSNT. I've always used it on Windows, and used to do
cvstagdiff with it (a long time ago). I get it from TortoiseCVS,
rather than the CVSNT stand-alone install.

> Thanks for the suggestions,

I'm running out of ideas. If nothing works, modify cvstagdiff to work
off a cvs diff file output separately by a different command, and
combine it with an <exec>.

There's a remote possibility that your server outputs something that
throws off the parsing code of cvstagdiff, but the thread dump does
not point to such an issue. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: ant script just hang when checking out of CVS [Similar problem with cvstagdiff]

Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
Your assumtion is not entirely correct. While the cvs task should work
on all platforms that have cvs installed, it is not a java
implementation of CVS functionality. The CVS task is a wrapper task,
that calls the cvs binary. Therefore, cvs must be present and on your
PATH in order for this task to work. Unlike the scp task, for example,
where you do not need to have scp installed and on your PATH.

-Rob Anderson

> -----Original Message-----
> From: Saladin Sharif [mailto:al_zawiah@yahoo.com] 
> Sent: Thursday, October 11, 2007 10:29 AM
> To: Ant Users List
> Subject: Re: ant script just hang when checking out of CVS 
> [Similar problem with cvstagdiff]
> 
> I am not certain why the cvstagdiff was hanging, but I was 
> able to achieve the same functionality that I was looking for 
> by using the CVS task and passing it the "diff" as a command 
> line option.  For example:
> 
> <cvs dest="${cvs.checkout.dir}" 
> output="${cvs.checkout.dir}/out1.txt" 
> error="${cvs.checkout.dir}/out2.txt">
>   <commandline>
>     <argument line="diff --brief"/>
>   </commandline>
> </cvs>
> 
> That is good enough for what I am trying to do; plus since I 
> am using the cvs task instead of the exec task, I am assuming 
> that my ANT script should be platform independent (i.e. run 
> on both windows and unix).
> Thanks for your help,
> -Saladin
> 
> 
>  
> **********************************************************
> * Saladin Sharif
> * e-mail: al_zawiah@yahoo.com
> * Visit homepage @ http://gaia.ecs.csus.edu/~sharifs
> **********************************************************
> 
> 
> ----- Original Message ----
> From: Dominique Devienne <dd...@gmail.com>
> To: Ant Users List <us...@ant.apache.org>; al_zawia@yahoo.com
> Sent: Thursday, September 27, 2007 8:10:50 AM
> Subject: Re: ant script just hang when checking out of CVS 
> [Similar problem with cvstagdiff]
> 
> On 9/26/07, Saladin Sharif <al...@yahoo.com> wrote:
> > triggered a JVM thread dump on the hanging Ant process.  I 
> have copied 
> > and pasted the thread dump at the end of this e-mail message.
> 
> Nothing that looks unusual there. The cvs command was forked, 
> and the stream pumper on another thread is reading the output 
> of the command.
> 
> In the past (months? years?), some people complained 
> cvstagdiff was taking an inordinate amount of time compared 
> to the same command on the command line. You haven't said 
> anything on how long the command takes on the CLI, and 
> whether this time changes or not with <exec>.
> You could try testing on a smaller repo or inside a subset of 
> your repo.
> 
> If someone the command slows down, how long have you waited 
> before asserting it hangs? Doing the test on a very small 
> repo might allow it to complete in a "reasonnable" time.
> 
> Also, try thread dumps at different times, to see if you can 
> get a different stack-trace.
> 
> > > 2) Provide relevant information: version of CVS client? 
> version of 
> > > CVS server? JVM? Ant version? OS? etc...
> >
> > * CVS client version:
> >
> > Concurrent Versions System (CVS) 1.11.22 (client)
> 
> I'd try CVSNT. I've always used it on Windows, and used to do 
> cvstagdiff with it (a long time ago). I get it from 
> TortoiseCVS, rather than the CVSNT stand-alone install.
> 
> > Thanks for the suggestions,
> 
> I'm running out of ideas. If nothing works, modify cvstagdiff 
> to work off a cvs diff file output separately by a different 
> command, and combine it with an <exec>.
> 
> There's a remote possibility that your server outputs 
> something that throws off the parsing code of cvstagdiff, but 
> the thread dump does not point to such an issue. --DD
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
>        
> ______________________________________________________________
> ______________________
> Yahoo! oneSearch: Finally, mobile search that gives answers, 
> not web links. 
> http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org