Commit 03d1acd7 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Auto-clean testing work directory before build

Issue-Ref: 3620
Issue-Url: https://af3-developer.fortiss.org/issues/3620

Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent 78b7716e
......@@ -20,28 +20,39 @@
pomless build extension. -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>copy-af3-product-integration-test</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="copy-af3-product-integration-test-ant">
<!-- Linux build -->
<echo message="Copy the AF3 product to the integration testing work folder..."/>
<unzip src="${user.dir}/products/org.fortiss.af3.phoenix.product/target/products/org.fortiss.af3.phoenix.product-${osgiOSClassifier}.${osgiWSClassifier}.${osgiArchClassifier}.zip"
dest="${project.basedir}/../org.fortiss.af3.phoenix.product.tests/target/work/"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<id>auto-clean</id>
<phase>initialize</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>copy-af3-product-integration-test</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="copy-af3-product-integration-test-ant">
<echo message="Copy the AF3 product to the integration testing work folder..."/>
<unzip src="${user.dir}/products/org.fortiss.af3.phoenix.product/target/products/org.fortiss.af3.phoenix.product-${osgiOSClassifier}.${osgiWSClassifier}.${osgiArchClassifier}.zip"
dest="${project.basedir}/../org.fortiss.af3.phoenix.product.tests/target/work/"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment