Author: veithen
Date: Wed Jun  8 22:57:40 2016
New Revision: 1747466

URL: http://svn.apache.org/viewvc?rev=1747466&view=rev
Log:
For unit and integration tests, configure a subdirectory of the target 
directory as the temporary directory.

Modified:
    axis/axis2/java/core/trunk/pom.xml

Modified: axis/axis2/java/core/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/pom.xml?rev=1747466&r1=1747465&r2=1747466&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/pom.xml (original)
+++ axis/axis2/java/core/trunk/pom.xml Wed Jun  8 22:57:40 2016
@@ -1301,12 +1301,24 @@
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
+                    <systemProperties>
+                        <property>
+                            <name>java.io.tmpdir</name>
+                            <value>${project.build.directory}/tmp</value>
+                        </property>
+                    </systemProperties>
                 </configuration>
             </plugin>
             <plugin>
                 <artifactId>maven-failsafe-plugin</artifactId>
                 <configuration>
                     <redirectTestOutputToFile>true</redirectTestOutputToFile>
+                    <systemProperties>
+                        <property>
+                            <name>java.io.tmpdir</name>
+                            <value>${project.build.directory}/tmp</value>
+                        </property>
+                    </systemProperties>
                 </configuration>
             </plugin>
             <plugin>
@@ -1329,6 +1341,23 @@
                 <artifactId>gmavenplus-plugin</artifactId>
                 <executions>
                     <execution>
+                        <id>create-tmp-directory</id>
+                        <phase>initialize</phase>
+                        <goals>
+                            <goal>execute</goal>
+                        </goals>
+                        <configuration>
+                            <scripts>
+                                <script><![CDATA[
+                                    import java.io.File
+                                    
+                                    // Create the temporary directory 
specified in the surefire configuration
+                                    new File(project.build.directory, 
'tmp').mkdirs()
+                                ]]></script>
+                            </scripts>
+                        </configuration>
+                    </execution>
+                    <execution>
                         <id>prepare-site</id>
                         <phase>pre-site</phase>
                         <goals>


Reply via email to