You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2012/12/31 14:18:12 UTC

svn commit: r1427114 - /webservices/commons/trunk/modules/axiom/pom.xml

Author: veithen
Date: Mon Dec 31 13:18:12 2012
New Revision: 1427114

URL: http://svn.apache.org/viewvc?rev=1427114&view=rev
Log:
Let the unit tests use a temporary directory in the build directory (instead of the system wide or per user temporary directory). This increases build stability and is handy to verify that the code properly cleans up temporary files.

Modified:
    webservices/commons/trunk/modules/axiom/pom.xml

Modified: webservices/commons/trunk/modules/axiom/pom.xml
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/pom.xml?rev=1427114&r1=1427113&r2=1427114&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/pom.xml (original)
+++ webservices/commons/trunk/modules/axiom/pom.xml Mon Dec 31 13:18:12 2012
@@ -425,6 +425,10 @@
                         </includes>
                         <systemProperties>
                             <property>
+                                <name>java.io.tmpdir</name>
+                                <value>${project.build.directory}/tmp</value>
+                            </property>
+                            <property>
                                 <name>java.awt.headless</name>
                                 <value>true</value>
                             </property>
@@ -537,6 +541,12 @@
                         </goals>
                         <configuration>
                             <source>
+                                import java.io.File
+                                
+                                <!-- Create the temporary directory specified in the surefire configuration -->
+                                new File(project.build.directory, 'tmp').mkdirs()
+                                
+                                <!-- Skip Jacoco if necessary -->
                                 if (project.packaging == 'pom' || project.properties['skipTests'] == 'true') {
                                     project.properties['skipJacoco'] = 'true'
                                 }