Skip to content

Commit

Permalink
Explicitly enable extension functions with the XSLT factory
Browse files Browse the repository at this point in the history
This is necessary to make Ant build work when triggered from within
Eclipse with JDK9+.
A similar issue was reported in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=520437

This closes policeman-tools#254
  • Loading branch information
kwin committed Jan 4, 2025
1 parent 535ecf7 commit e5c980d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@
<xslt in="src/test/antunit/dummy.xml" out="build/test-maven/fake-pom.xml"
style="src/test/antunit/pom-generator.xsl" force="true"
>
<!-- necessary to make Ant build also work when triggered within Eclipse: https://bugs.eclipse.org/bugs/show_bug.cgi?id=520437-->
<factory>
<feature name="http://www.oracle.com/xml/jaxp/properties/enableExtensionFunctions" value="true"/>
</factory>
<outputproperty name="indent" value="yes"/>
<param name="jarfiles" expression="${path.main-build.xslstr}"/>
</xslt>
Expand Down

0 comments on commit e5c980d

Please sign in to comment.