summaryrefslogtreecommitdiffstats
path: root/hosted-tenant-base
diff options
context:
space:
mode:
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>