Now using same code that decides when to compile as the Ant tasks