maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joak...@apache.org
Subject svn commit: r485711 - /maven/wagon/trunk/wagon-providers/wagon-ssh-common-test/src/main/java/org/apache/maven/wagon/providers/ssh/TestData.java
Date Mon, 11 Dec 2006 15:27:48 GMT
Author: joakime
Date: Mon Dec 11 07:27:47 2006
New Revision: 485711

URL: http://svn.apache.org/viewvc?view=rev&rev=485711
Log:
Using java.io.tmpdir instead of hardcoded /tmp for unit tests

Modified:
    maven/wagon/trunk/wagon-providers/wagon-ssh-common-test/src/main/java/org/apache/maven/wagon/providers/ssh/TestData.java

Modified: maven/wagon/trunk/wagon-providers/wagon-ssh-common-test/src/main/java/org/apache/maven/wagon/providers/ssh/TestData.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-ssh-common-test/src/main/java/org/apache/maven/wagon/providers/ssh/TestData.java?view=diff&rev=485711&r1=485710&r2=485711
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-ssh-common-test/src/main/java/org/apache/maven/wagon/providers/ssh/TestData.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-ssh-common-test/src/main/java/org/apache/maven/wagon/providers/ssh/TestData.java
Mon Dec 11 07:27:47 2006
@@ -27,9 +27,14 @@
  */
 public class TestData
 {
+    public static String getTempDirectory()
+    {
+        return System.getProperty( "java.io.tmpdir", "/tmp" );
+    }
+    
     public static String getTestRepositoryUrl()
     {
-        return "scp://" + getHostname() + "/tmp/wagon-ssh-test/" + getUserName();
+        return "scp://" + getHostname() + getTempDirectory() + "/wagon-ssh-test/" + getUserName();
     }
 
     public static String getUserName()



---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-commits-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-commits-help@maven.apache.org


Mime
View raw message