continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r431988 - /maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
Date Wed, 16 Aug 2006 18:48:34 GMT
Author: carlos
Date: Wed Aug 16 11:48:34 2006
New Revision: 431988

URL: http://svn.apache.org/viewvc?rev=431988&view=rev
Log:
Use static var

Modified:
    maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java

Modified: maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java?rev=431988&r1=431987&r2=431988&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
(original)
+++ maven/continuum/trunk/continuum-api/src/main/java/org/apache/maven/continuum/project/builder/AbstractContinuumProjectBuilder.java
Wed Aug 16 11:48:34 2006
@@ -38,6 +38,9 @@
     extends AbstractLogEnabled
     implements ContinuumProjectBuilder
 {
+    
+    private static final String TMP_DIR = System.getProperty( "java.io.tmpdir" );
+
     protected File createMetadataFile( URL metadata, String username, String password )
         throws IOException
     {
@@ -86,7 +89,7 @@
         // Little hack for URLs that contains '*' like "http://svn.codehaus.org/*checkout*/trunk/pom.xml?root=plexus"
         baseDirectory = StringUtils.replace( baseDirectory, "*", "" );
 
-        File continuumTmpDir = new File( System.getProperty( "java.io.tmpdir" ), "continuum"
);
+        File continuumTmpDir = new File( TMP_DIR, "continuum" );
 
         File uploadDirectory = new File( continuumTmpDir, baseDirectory );
 



Mime
View raw message