You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2009/01/28 00:56:14 UTC

svn commit: r738305 - in /maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304: pom.xml verify.bsh

Author: dennisl
Date: Tue Jan 27 23:56:13 2009
New Revision: 738305

URL: http://svn.apache.org/viewvc?rev=738305&view=rev
Log:
o Use a real temporary directory to avoid cluttering up the disk.

Modified:
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/pom.xml
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/pom.xml?rev=738305&r1=738304&r2=738305&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/pom.xml (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/pom.xml Tue Jan 27 23:56:13 2009
@@ -28,7 +28,7 @@
     <site>
       <id>msite-304</id>
       <name>Example company web server</name>
-      <url>file:///tmp/www.example.com/parent</url>
+      <url>file://${java.io.tmpdir}/www.example.com/parent</url>
     </site>
   </distributionManagement>
   <modules>

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh?rev=738305&r1=738304&r2=738305&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-304/verify.bsh Tue Jan 27 23:56:13 2009
@@ -52,7 +52,8 @@
         return false;
     }
 
-    File stageDeployDirectory = new File ( "/tmp/www.example.com/parent" );
+    String tmpDir = System.getProperty( "java.io.tmpdir" );
+    File stageDeployDirectory = new File ( tmpDir + "/www.example.com/parent" );
     if ( !stageDeployDirectory.exists() || !stageDeployDirectory.isDirectory() )
     {
         System.err.println( "Stage deploy directory is missing or not a directory." );