Apache ANT task for 9.3

Help
2011-02-01
2012-10-08
  • Hi all,

    Is there a convenient way to use 9.3 with Apache Ant? I am currently using the
    supplied Ant Task for 9.2, but I would really like to upgrade to 9.3.
    Unfortunately, it seems the Ant task for 9.2 is not compatible with 9.3 (see
    error below), and I can't find a more recent version of the task jar.

    S:\DEV\Sources\Overig\Templates\build.xml:6: taskdef A class needed by class
    net.sf.saxon.ant.AntTransform cannot be found:
    net/sf/saxon/trace/TraceListener
    using the classloader AntClassLoader

    Regards,
    Jan-Willem

     
  • Michael Kay
    Michael Kay
    2011-02-01

    The AntTransform task is no longer maintained. It was too buggy, and there was
    no effective way of testing it thoroughly because Apache do not publish a test
    suite for the xslt task that could be used as a baseline.

    My recommendation is to use the standard xslt task, using the factory
    attribute to cause Saxon to be invoked. There's a bit of a history of bugs
    affecting this, unfortunately. This thread should help you navigate through
    the minefield:

    http://stackoverflow.com/questions/919692/how-to-execute-xslt-2-0-with-
    ant

     
  • Hi Michael,

    That's unfortunate, but understandable. (I have my own set of disappointments
    regarding ANT...) I'll give the standard xslt task a shot.

    Thanks!

    Jan-Willem