Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

rdiff with -kk option using ANT cvstagdiff

Sangal_ak04

2008-08-20


Author LoginPost Reply

Hi All,

I want to generate differences between two given tags (i.e. a start tag and
end tag).

Currently I'm using the following code in build.xml:

....
some code here
......
<target name="-tagdiff" if="is.tag.type">
  <cvstagdiff
cvsRoot=":pserver:gigabuild@(protected)}"
          destfile="xml/${component}-diff.xml"
          package="${module}"
          startTag="${start.tag}"
          endTag="${end.tag}"
          passfile=".cvspass">
          <commandline>
            <argument value="-kk"/>
          </commandline>
  </cvstagdiff>
  <style in="xml/${component}-diff.xml"
       
out="report_${start.tag}_${end.tag}/${product}/${component}-diff.html"
         style="tagdiff.xsl">
     
  </style>
</target>

......
some code here
....

I'm getting an error mesg while running "ant" using this build.xml. It's
saying... unknown "-k" option.

Can't I use these lines:

         <commandline>
            <argument value="-kk"/>
          </commandline>

with "cvstagdiff" ???

NOTE:

1) -kk option is used with rdiff command to ignore CVS's own variable while
comparing files with two diff versions i.e. it just checks changes if there
are any in the actual code body (instead of any CVS variable's expanded
value within the code's comment area).
2) Value for start.tag and end.tag are coming from a property file i.e.
build.properties
3) When I'm removing the above 3 lines, diff reports are generating good but
showing files has changes even if the changes are just due to CVS's own
variable expansion.


Any help will be appreciated.
thanks-

Brgds,
Arun Sangal
303 397 6059

-----
Brgds,
Arun Sangal
SCM | 1-(303) 397 6059
arun.sangal@(protected)

--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.