I've crisscrossed the archives regarding the ant xslt task.  At onetime it
was necessary to use...
${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apac
he.xalan.processor.TransformerFactoryImpl')}

...there was even an FAQ entry about it.  But I cannot get my xslt tasks
running in M2 and I'm wondering if anyone has a pom.xml example.  I've begun
to pile-in ant dependencies: ant-trax, ant-xslp, etc.  Is this a dependency
issue?

Current error (with trax set as processor):
Embedded error: The following error occurred while executing this line:
C:\development\decoder\src\main\resources\build.xml:6:java.lang.ClassNotFoun
dException:org.apache.tools.ant.taskdefs.optional.TraXLiaison

Error w/o trax set as processor:
     [xslt] DEPRECATED - xalan processor is deprecated. Use trax instead.
     [xslt] DEPRECATED - xslp processor is deprecated. Use trax instead.


build bit from pom.xml:
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <configuration>
              <tasks>
                    <ant dir="${basedir}/src/main/resources/"/>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

build file:
<project name="decoder" default="scheme" basedir=".">

  <target name="scheme">
    <!-- SchemeData source files -->
    <xslt basedir="schemes" destdir="schemes" extension=".java"
style="scheme-data.xsl" processor="trax"/>
    <!-- SchemeLibrary source file -->
    <xslt in="scheme-library.xml" out="SchemeLibrary.java"
style="scheme-library.xsl" processor="trax"/>
  </target>

</project>

  


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to