• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Way to compare directories from an ANT

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am currently working on creating a patch builder where I compare files in a directory (in SVN) against the installed files. Idea is to get a list of new/modified files.

I explored the 'diff' and 'dircmp' unix commands but they give a 'report" sort of output whereas I am intrested only in list of such files. I am wondering if there is any such utility written in Java or otherwise which I can be invoked through ANT task to achieve the above.

I searched around javaranch/sourceforge/eclipse/google but unfortunately could not find one. Any help is appreciated.

Thanks
Ashish
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm pretty sure that CVS already has such a tool, so I'd expect to find one for Subversion as well. If it can't be invoked via the subversion Ant task, it should be callable via the Ant general command exec task.

As an alternative, if the project is in Eclipse, there's an Eclipse option to create a patchfile against the project relative to its archive version.
 
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic