aboutsummaryrefslogtreecommitdiffstats
path: root/hosted-tenant-base
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-11-25 10:34:20 +0100
committerJon Marius Venstad <venstad@gmail.com>2021-11-25 10:34:20 +0100
commita3a731a00a2d7e6f5f675258feb904bb2374c438 (patch)
treea43af07838e82fc11c4e4a4b1597fa75a9c0995c /hosted-tenant-base
parentdfcf411bacc993d20ff293c9e4c2ae101f357a6f (diff)
Handle more missing parents
Diffstat (limited to 'hosted-tenant-base')
-rw-r--r--hosted-tenant-base/pom.xml14
1 files changed, 8 insertions, 6 deletions
diff --git a/hosted-tenant-base/pom.xml b/hosted-tenant-base/pom.xml
index f0223e28681..e4f71f48d4d 100644
--- a/hosted-tenant-base/pom.xml
+++ b/hosted-tenant-base/pom.xml
@@ -265,16 +265,18 @@
</goals>
<configuration>
<tasks>
- <!-- Workaround to copy src/test/application/tests only when its parent exists:
- Copy in two steps: first with the parent, then eliminate it -->
+ <!-- Workaround to copy src/test/application/tests only when its parents exists:
+ Copy in two steps, eliminating the parents in the helper step-->
+
+ <mkdir dir="target/application-test/src/test/application" />
<copy todir="target/application-test/">
- <fileset dir="src/test/" includes="application/tests/**" />
+ <fileset dir="." includes="src/test/application/tests/**" />
</copy>
- <mkdir dir="target/application-test/application" />
+
<copy todir="target/application-test/">
- <fileset dir="target/application-test/application/" includes="tests/**" />
+ <fileset dir="target/application-test/src/test/application" includes="tests/**" />
</copy>
- <delete dir="target/application-test/application/" />
+ <delete dir="target/application-test/src" />
<copy file="target/${project.artifactId}-tests.jar" todir="target/application-test/components/" />
<zip destfile="target/application-test.zip" basedir="target/application-test/" />