better test resource handling for APS testing

This commit is contained in:
2026-04-21 13:43:21 -04:00
parent 23c010b981
commit 2cd0276915
2 changed files with 44 additions and 0 deletions
+22
View File
@@ -21,19 +21,41 @@
<build>
<testResources>
<!-- need to split certain test resources to load before webapp -->
<!-- these will load before the WAR, are accessible earlier, and could be shadowed by it -->
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>activiti/**/*</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/README*</exclude>
</excludes>
</testResource>
<testResource>
<directory>src/it/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>activiti/**/*</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/README*</exclude>
</excludes>
</testResource>
<!-- these will load after the WAR and could shadow it -->
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<includes>
<include>activiti/**/*</include>
<include>**/*.properties</include>
</includes>
<targetPath>${project.build.directory}/rt-test-resources</targetPath>
</testResource>
<testResource>
<directory>src/it/resources</directory>
<filtering>true</filtering>
<includes>
<include>activiti/**/*</include>
<include>**/*.properties</include>
</includes>
<targetPath>${project.build.directory}/rt-test-resources</targetPath>
</testResource>
+22
View File
@@ -29,19 +29,41 @@
<build>
<testResources>
<!-- need to split certain test resources to load before webapp -->
<!-- these will load before the WAR, are accessible earlier, and could be shadowed by it -->
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>activiti/**/*</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/README*</exclude>
</excludes>
</testResource>
<testResource>
<directory>src/it/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>activiti/**/*</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/README*</exclude>
</excludes>
</testResource>
<!-- these will load after the WAR and could shadow it -->
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<includes>
<include>activiti/**/*</include>
<include>**/*.properties</include>
</includes>
<targetPath>${project.build.directory}/rt-test-resources</targetPath>
</testResource>
<testResource>
<directory>src/it/resources</directory>
<filtering>true</filtering>
<includes>
<include>activiti/**/*</include>
<include>**/*.properties</include>
</includes>
<targetPath>${project.build.directory}/rt-test-resources</targetPath>
</testResource>