Status: New
Owner: mikesamuel
CC: kpreid.switchb.org
Labels: Type-Defect Priority-High

New issue 1247 by kpreid.switchb.org: TransformAntTask depends on Xerces built into Ant which is not present in Ant 1.8.1
http://code.google.com/p/google-caja/issues/detail?id=1247

To reproduce: Build Caja with Ant 1.8.1.

The CajoledTests target will fail (with a NullPointerException unless http://codereview.appspot.com/1763041/show is applied), because the TransformAntTask runs in the Ant JVM, whose classpath is AFAICT not affected by anything we specify, so the existence of Xerces on the classpath is an accident of previous versions of Ant.

Possible solutions:
* arrange to run Ant with Xerces loaded -- which does not seem to be possible on an *automatic* per-project basis, so it would have to either have the user change their config, or be 'tools/myant ...' or some such. * run the transformation in a different JVM or under a different ClassLoader with an appropriate classpath set up.

Reply via email to