Problem seems to be the use of ant.exec in a thread pool (one of the task that is executed before). When this task is not run (up-to-date) I don’t see this exception…
I’ve noticed a similar issue. I tried to wrap ant calls in a loop around Gpars using withPool, but it would error with pool sizes greater than 1. I’m thinking perhaps its a classloader issue related to the threads created with Gpars.