continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From batkin...@apache.org
Subject svn commit: r1674359 - in /continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file: DefaultFileSystemManager.java FileSystemManager.java
Date Fri, 17 Apr 2015 17:28:52 GMT
Author: batkinson
Date: Fri Apr 17 17:28:52 2015
New Revision: 1674359

URL: http://svn.apache.org/r1674359
Log:
Added method to get java temp dir to fsmanager.

Modified:
    continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file/DefaultFileSystemManager.java
    continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file/FileSystemManager.java

Modified: continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file/DefaultFileSystemManager.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file/DefaultFileSystemManager.java?rev=1674359&r1=1674358&r2=1674359&view=diff
==============================================================================
--- continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file/DefaultFileSystemManager.java
(original)
+++ continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file/DefaultFileSystemManager.java
Fri Apr 17 17:28:52 2015
@@ -98,6 +98,11 @@ public class DefaultFileSystemManager
         }
     }
 
+    public File getTempDir()
+    {
+        return new File( System.getProperty( "java.io.tmpdir" ) );
+    }
+
     public File createTempFile( String prefix, String suffix, File parent )
     {
         return FileUtils.createTempFile( prefix, suffix, parent );

Modified: continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file/FileSystemManager.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file/FileSystemManager.java?rev=1674359&r1=1674358&r2=1674359&view=diff
==============================================================================
--- continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file/FileSystemManager.java
(original)
+++ continuum/trunk/continuum-api/src/main/java/org/apache/continuum/utils/file/FileSystemManager.java
Fri Apr 17 17:28:52 2015
@@ -117,6 +117,13 @@ public interface FileSystemManager
         throws IOException;
 
     /**
+     * Returns the temporary directory for this environment.
+     *
+     * @return a {@link File} pointing at the file system path specified by the system property,
java.io.tmpdir
+     */
+    File getTempDir();
+
+    /**
      * Create a new temporary file under the specified parent directory.
      *
      * @param prefix prefix to start file with



Mime
View raw message