Can someone please tell me if there is a way in Ant Script to compile files only which have a 'last modified' time stamp between 2 minutes of current time?
Actually the reason is that I am coming from Websphere and Netbeans background where build scripts are automatically made for you. But now I have to run a Build script made by someone to compile my project. Even if a single System.out.println statement is changed in one file..the build script compiles all 150 source files which takes a long time.
I am wondering if it can, like websphere and netbeans, only compile the the the files which I have made changes in.
The source and destination directory will be recursively scanned for Java source files to compile. Only Java files that have no corresponding .class file or where the class file is older than the .java file will be compiled.
If you don't get it working from reading the manual on javac, then post the relevant part of your build file.
Joined: Jun 04, 2007
Thanks I'll post relevant code from build script.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com