Skip to content
Snippets Groups Projects
Commit 03d1acd7 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Auto-clean testing work directory before build

parent 78b7716e
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment