Adding libraries into Ant classpath only

I replied to this in the thread Guava classpath conflict and the Gradle daemon . Using the internal IsolatedAntBuilder seems to be the way to add libraries to Ant classpath only.