aboutsummaryrefslogtreecommitdiffstats
path: root/hosted-tenant-base
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-11-24 16:38:27 +0100
committerJon Marius Venstad <venstad@gmail.com>2021-11-24 16:38:27 +0100
commitd6a736481384db792b6a82f14cbbed3e5b0e2141 (patch)
treef801998aba030183277bf4c994082e43eea8b436 /hosted-tenant-base
parent3dbb860bf6da5701c9fe3fff6bccf8a3eb876db8 (diff)
Copy src/test/application to application-test.zip with maven
Diffstat (limited to 'hosted-tenant-base')
-rw-r--r--hosted-tenant-base/pom.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/hosted-tenant-base/pom.xml b/hosted-tenant-base/pom.xml
index 4f3e5e88d37..f0223e28681 100644
--- a/hosted-tenant-base/pom.xml
+++ b/hosted-tenant-base/pom.xml
@@ -265,6 +265,17 @@
</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 -->
+ <copy todir="target/application-test/">
+ <fileset dir="src/test/" includes="application/tests/**" />
+ </copy>
+ <mkdir dir="target/application-test/application" />
+ <copy todir="target/application-test/">
+ <fileset dir="target/application-test/application/" includes="tests/**" />
+ </copy>
+ <delete dir="target/application-test/application/" />
+
<copy file="target/${project.artifactId}-tests.jar" todir="target/application-test/components/" />
<zip destfile="target/application-test.zip" basedir="target/application-test/" />
</tasks>