TEZ-4052. Fit dot files ASF License issues - part 2 (Jonathan Eagles via kshukla)
diff --git a/tez-dag/pom.xml b/tez-dag/pom.xml
index 5f63079..c6962ae 100644
--- a/tez-dag/pom.xml
+++ b/tez-dag/pom.xml
@@ -31,7 +31,7 @@
org.apache.tez.dag.app.rm.container.AMContainerImpl</tez.dag.state.classes>
<tez.graphviz.title>Tez</tez.graphviz.title>
<tez.graphviz.output.file>Tez.gv</tez.graphviz.output.file>
- <test.tmp.dir>${project.build.directory}/dagviz</test.tmp.dir>
+ <test.log.dir>${project.build.directory}/logs</test.log.dir>
</properties>
<artifactId>tez-dag</artifactId>
@@ -195,8 +195,8 @@
<phase>generate-sources</phase>
<configuration>
<tasks>
- <delete dir="${test.tmp.dir}" />
- <mkdir dir="${test.tmp.dir}" />
+ <delete dir="${test.log.dir}" />
+ <mkdir dir="${test.log.dir}" />
</tasks>
</configuration>
<goals>
@@ -210,7 +210,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<environmentVariables>
- <LOG_DIRS>${test.tmp.dir}</LOG_DIRS>
+ <LOG_DIRS>${test.log.dir}</LOG_DIRS>
</environmentVariables>
</configuration>
</plugin>
diff --git a/tez-ext-service-tests/pom.xml b/tez-ext-service-tests/pom.xml
index f27e35c..c806bf7 100644
--- a/tez-ext-service-tests/pom.xml
+++ b/tez-ext-service-tests/pom.xml
@@ -25,6 +25,10 @@
<artifactId>tez-ext-service-tests</artifactId>
+ <properties>
+ <test.log.dir>${project.build.directory}/logs</test.log.dir>
+ </properties>
+
<dependencies>
<dependency>
<groupId>io.netty</groupId>
@@ -126,6 +130,33 @@
</resources>
<plugins>
<plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-sources</id>
+ <phase>generate-sources</phase>
+ <configuration>
+ <tasks>
+ <delete dir="${test.log.dir}" />
+ <mkdir dir="${test.log.dir}" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <environmentVariables>
+ <LOG_DIRS>${test.log.dir}</LOG_DIRS>
+ </environmentVariables>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
</plugin>
diff --git a/tez-tests/pom.xml b/tez-tests/pom.xml
index ad834e1..c744e68 100644
--- a/tez-tests/pom.xml
+++ b/tez-tests/pom.xml
@@ -25,7 +25,7 @@
<artifactId>tez-tests</artifactId>
<properties>
- <test.tmp.dir>${project.build.directory}/dagviz</test.tmp.dir>
+ <test.log.dir>${project.build.directory}/logs</test.log.dir>
</properties>
<dependencies>
@@ -141,8 +141,8 @@
<phase>generate-sources</phase>
<configuration>
<tasks>
- <delete dir="${test.tmp.dir}" />
- <mkdir dir="${test.tmp.dir}" />
+ <delete dir="${test.log.dir}" />
+ <mkdir dir="${test.log.dir}" />
</tasks>
</configuration>
<goals>
@@ -156,7 +156,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<environmentVariables>
- <LOG_DIRS>${test.tmp.dir}</LOG_DIRS>
+ <LOG_DIRS>${test.log.dir}</LOG_DIRS>
</environmentVariables>
</configuration>
</plugin>