• 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

Ant: List source files and date last modifed?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I've been asked to find a tool/script/way to do this, and haven't had much luck so far.

Final goal is to be able to compare two versions of a jar/ear/war and tell which *source* files changed between versions, and when those changes happened. The idea I was asked to explore would be to list all of the source files and the date each was last modified (not the build date). Original thought is to list these in the manifest, though another included file would be acceptable. I expect we'll build a script that would extract and compare the lists.

This way we could look at a huge jar and say "oh, this jar is using the December 11, 2008 version of abc.java, while this other jar that is breaking is using the March 15, 2009 version of abc.java - that was around the time we made such and such design decision" And then know where to debug.

This sounds like something that would be useful enough to have been done before....but I can't seem to find any code or tools that do it. Maybe I'm just not using the right terminology to search? Any ideas?

Thanks in advance!
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

Do you actually include the source files as part of your deployments? Typically it's only .class files that get included.

Do you have source control? Typically it's _much_ easier to do these comparisons from source control, e.g. You tag the source control whenever you do a release and you can then do a diff between those..
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic