Can I output to file using Ant Record during Copy tasks to track files updated


(Ferghal Smyth) #1

Hi,

I am looking to reduce my build times of webservices from wsdls. To do this I would like to duplicate the my wsdl files using the ant copy task and keep track of any files that are copied over. Using ant.copy and setting preservelastmodified:‘true’. It now copies the files over that have been changed but I can’t keep track of which files have changed.

My idea is to output those changed files to a log using ant record and only regenerate the wsdls in that file but this doesn’t seem to be an option. Is it currently possible to do this in gradle or is there an alternative I’m not aware of?

Thanks for any help, Ferg


(Luke Daley) #2

Are you familiar with Gradle’s incremental building functionality?

http://www.gradle.org/docs/current/userguide/more_about_tasks.html#sec:up_to_date_checks

You could define a task for each WSDL file and let that mechanism avoid the work.