You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Scott, Brian" <Sc...@talgov.com> on 2006/01/12 20:03:04 UTC

Strange behavior with cvstagdiff task

Hello friends - 

I'm experiencing some very strange behavior when specifying multiple values in the package definition.  Specifically, if I add multiple space delimited values for package I get a different number of differences reported in tagdiff.html. 

So, for example, if my tag includes:

		    <cvstagdiff      
		    cvsRoot=":pserver:CVS_USER:xxxxxx@999.99.99.999:/cvs_repository"
                destfile="tagdiff.xml"
                package="mobile/config" 
                startTag="start_tag"
                endTag="end_tag" >


I will get the expected number of entries returned in tagdiff.html/tagdiff.xml.

Likewise, if my tag includes: 

	    <cvstagdiff      
		    cvsRoot=":pserver:CVS_USER:xxxxxx@999.99.99.999:/cvs_repository"
                destfile="tagdiff.xml"
                package="mobile/jsp" 
                startTag="start_tag"
                endTag="end_tag" >

I get the expected number of entries.  

However, if my tag is:

		    <cvstagdiff      
		    cvsRoot=":pserver:CVS_USER:xxxxxx@999.99.99.999:/cvs_repository"
                destfile="tagdiff.xml"
                package="mobile/jsp mobile/config" 
                startTag="start_tag"
                endTag="end_tag" >

I get fewer files than I would expect to see if I were to simply add the files from the two previous examples.  While these are dummied up entries, I am not crossing modules; just different directory structures within the same module.  

Can anyone help; the notion of modifying my process to individual detect differences on a folder by folder basis gives me a sinking feeling. 

Thank you.
brian  

Re: Strange behavior with cvstagdiff task

Posted by Ivan Ivanov <ra...@yahoo.com>.
Hello,

<cvstagdiff> is a wrapper around cvs diff command. The
task just takes the output of that command and
transforms it to XML format. 

You can see the actual cvs command by running the
script in verbose mode. You can that run the cvs
command yourself and observe its output in the cases
you describe below. If there is a difference between
the results given by the task and by the command -
that there is an Ant problem.

Regards
Ivan

P.S. I am really curious myself about the output in
the case of space-delimited list of modules as
"mobile/jsp mobile/config". I used <cvstagdiff> to
generate a list of chaged files between two releases
but I used ant-contrib's <for> in case of multiple
modules.

--- "Scott, Brian" <Sc...@talgov.com> wrote:

> Hello friends - 
> 
> I'm experiencing some very strange behavior when
> specifying multiple values in the package
> definition.  Specifically, if I add multiple space
> delimited values for package I get a different
> number of differences reported in tagdiff.html. 
> 
> So, for example, if my tag includes:
> 
> 		    <cvstagdiff      
> 		   
>
cvsRoot=":pserver:CVS_USER:xxxxxx@999.99.99.999:/cvs_repository"
>                 destfile="tagdiff.xml"
>                 package="mobile/config" 
>                 startTag="start_tag"
>                 endTag="end_tag" >
> 
> 
> I will get the expected number of entries returned
> in tagdiff.html/tagdiff.xml.
> 
> Likewise, if my tag includes: 
> 
> 	    <cvstagdiff      
> 		   
>
cvsRoot=":pserver:CVS_USER:xxxxxx@999.99.99.999:/cvs_repository"
>                 destfile="tagdiff.xml"
>                 package="mobile/jsp" 
>                 startTag="start_tag"
>                 endTag="end_tag" >
> 
> I get the expected number of entries.  
> 
> However, if my tag is:
> 
> 		    <cvstagdiff      
> 		   
>
cvsRoot=":pserver:CVS_USER:xxxxxx@999.99.99.999:/cvs_repository"
>                 destfile="tagdiff.xml"
>                 package="mobile/jsp mobile/config" 
>                 startTag="start_tag"
>                 endTag="end_tag" >
> 
> I get fewer files than I would expect to see if I
> were to simply add the files from the two previous
> examples.  While these are dummied up entries, I am
> not crossing modules; just different directory
> structures within the same module.  
> 
> Can anyone help; the notion of modifying my process
> to individual detect differences on a folder by
> folder basis gives me a sinking feeling. 
> 
> Thank you.
> brian  
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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