|
104 | 104 | </target>
|
105 | 105 | </configuration>
|
106 | 106 | </execution>
|
| 107 | + <execution> |
| 108 | + <id>test</id> |
| 109 | + <phase>test</phase> |
| 110 | + <goals> |
| 111 | + <goal>run</goal> |
| 112 | + </goals> |
| 113 | + <configuration> |
| 114 | + <target> |
| 115 | + <property name="test_classpath" refid="maven.test.classpath"/> |
| 116 | + <property name="failonerror" value="true"/> |
| 117 | + <!-- We use fork="true" here because without it, when we run --> |
| 118 | + <!-- Maven in GitHub Actions, we get an “Unable to find a --> |
| 119 | + <!-- javac compiler” error — because Ant looks for javac in --> |
| 120 | + <!-- the jre/ subdirectory of the JDK directory. --> |
| 121 | + <javac srcdir="${project.build.testSourceDirectory}" destdir="${project.build.testOutputDirectory}" fork="true" includeantruntime="false"> |
| 122 | + <classpath> |
| 123 | + <pathelement location="${project.build.outputDirectory}"/> |
| 124 | + </classpath> |
| 125 | + </javac> |
| 126 | + <!-- We use fork="true" here because without it, we otherwise get --> |
| 127 | + <!-- java.lang.NoClassDefFoundError: jdk/internal/reflect/ConstructorAccessorImpl --> |
| 128 | + <java classname="nu.validator.htmlparser.test.TokenizerTester" fork="true" failonerror="${failonerror}"> |
| 129 | + <classpath> |
| 130 | + <pathelement path="${test_classpath}"/> |
| 131 | + <pathelement location="${project.build.outputDirectory}"/> |
| 132 | + <pathelement location="${project.build.testOutputDirectory}"/> |
| 133 | + </classpath> |
| 134 | + <arg value="${basedir}/html5lib-tests/tokenizer"/> |
| 135 | + </java> |
| 136 | + <java classname="nu.validator.htmlparser.test.TreeTester" fork="true" failonerror="${failonerror}"> |
| 137 | + <classpath> |
| 138 | + <pathelement location="${project.build.outputDirectory}"/> |
| 139 | + <pathelement location="${project.build.testOutputDirectory}"/> |
| 140 | + </classpath> |
| 141 | + <arg value="${basedir}/html5lib-tests/tree-construction"/> |
| 142 | + </java> |
| 143 | + </target> |
| 144 | + </configuration> |
| 145 | + </execution> |
107 | 146 | <execution>
|
108 | 147 | <id>tokenizer-hotspot-workaround</id>
|
109 | 148 | <phase>process-sources</phase>
|
|
115 | 154 | <property name="translator.sources" value="${basedir}/translator-src"/>
|
116 | 155 | <property name="translator.classes" value="${project.build.directory}/translator-classes"/>
|
117 | 156 | <mkdir dir="${translator.classes}"/>
|
118 |
| - <javac srcdir="${translator.sources}" includes="nu/validator/htmlparser/generator/ApplyHotSpotWorkaround.java" destdir="${translator.classes}" includeantruntime="false"/> |
| 157 | + <!-- We use fork="true" here because without it, when we run --> |
| 158 | + <!-- Maven in GitHub Actions, we get an “Unable to find a --> |
| 159 | + <!-- javac compiler” error — because Ant looks for javac in --> |
| 160 | + <!-- the jre/ subdirectory of the JDK directory. --> |
| 161 | + <javac srcdir="${translator.sources}" includes="nu/validator/htmlparser/generator/ApplyHotSpotWorkaround.java" fork="true" destdir="${translator.classes}" includeantruntime="false"/> |
119 | 162 | <java classname="nu.validator.htmlparser.generator.ApplyHotSpotWorkaround">
|
120 | 163 | <classpath>
|
121 | 164 | <pathelement location="${translator.classes}"/>
|
|
0 commit comments