Skip to content

Commit

Permalink
Fix signature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rzo1 committed Nov 21, 2023
1 parent 5278e49 commit 81e9459
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tck/jsonp-signature-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,39 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>setup-project</id>
<phase>test-compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="remove-jakarta-json-bind">
<echo>Removing jakarta.json.bind classes from the jakartaee-api.jar (we cannot exclude that package them from the sigtests).</echo>

<property name="library.dir" value="signaturedirectory" />
<property name="library.file" value="jakartaee-api.jar" />
<property name="library.path" value="${project.build.directory}/${library.dir}/${library.file}" />
<property name="library.path.new" value="${project.build.directory}/${library.dir}/new-${library.file}" />

<jar destfile="${library.path.new}">
<zipfileset src="${library.path}" excludes="jakarta/json/bind/**" />
</jar>

<delete file="${library.path}" />
<move file="${library.path.new}" tofile="${library.path}" />

</target>
</configuration>
</execution>
</executions>

</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down

0 comments on commit 81e9459

Please sign in to comment.