I have a large codebase of Java/JSP files that needs to be compiled and checked for errors. The compilation time is long enough that we only run it once a day. However, I'd like it to be more frequent than that, say every 15 minute interval.
But I'm not able to figure out how to minimize the build time to allow this. Running the ANT script, downloading all files off Version Control, compiling JSP's into JAVAs and then compiling those JAVAs into Class files takes an hour and a half.
My first solution was to download a copy of the codebase and sync changes from the server (svn update) every 15 minutes, in order to reduce the downloading time. However, I have not been able to minimize the compilation time. I'm using Jasper to compile the JSPs and building all the files (into JAVA files) takes several minutes. Compiling the produced Java files takes another 15 minutes. To tackle this, I though about individually compiling the "updated" JSP files and copying them back to the JAVA source. This would take away the JSP->JAVA stage. However, ANT and Jasper haven't made it easy to compile individual files and also ensure that no new errors show up.
Should I settle for once a day build? Or is there a better solution that can be applied here?