What is the quickest way to determine if files have changed during build?
![]()
Currently we're using an scm 'status' command, which we've found isn't great, performance-wise. Is there a recommended approach for determining if a file has changed during the build?
How would this be done using the plain Java API?
|
Accepted answer
One other answer
![]()
The command line is your best option. You might be able to get something more lightweight with the plain Java API but it would be quite a bit reimplementing of the command-line and I don't know how much time you're willing to spend on that.
|
Comments
Do you mean actually changed during the build or changed from one build to the next?
Hi Jeff, thanks for the quick reply. I actually meant 'changed during the build'....some of our builds change source files during build and I'd like to know what the experts think is the best approach to getting this data.