Package jetbrains.buildServer
Class TempFiles
- java.lang.Object
-
- jetbrains.buildServer.TempFiles
-
public class TempFiles extends Object
- Author:
- Pavel.Sher Date: 05.03.2008
-
-
Field Summary
Fields Modifier and Type Field Description static ThreadGroupourCleanersThreadGroup
-
Constructor Summary
Constructors Constructor Description TempFiles()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()voidcleanupAsync()FilecreateTempDir()Returns a File object for created temp directory.FilecreateTempFile()FilecreateTempFile(int size)FilecreateTempFile(String content)FilegetCurrentTempDir()Returns the current directory used by the test or null if no test is running or no directory is created yet.voidregisterAsTempFile(File tempFile)
-
-
-
Field Detail
-
ourCleanersThreadGroup
public static ThreadGroup ourCleanersThreadGroup
-
-
Method Detail
-
createTempFile
public final File createTempFile(String content) throws IOException
- Throws:
IOException
-
createTempFile
public final File createTempFile() throws IOException
- Throws:
IOException
-
registerAsTempFile
public void registerAsTempFile(File tempFile)
-
createTempFile
public final File createTempFile(int size) throws IOException
- Throws:
IOException
-
createTempDir
public final File createTempDir() throws IOException
Returns a File object for created temp directory. Also stores the value into this object accessed withgetCurrentTempDir()- Returns:
- a File object for created temp directory
- Throws:
IOException- if directory creation fails.
-
getCurrentTempDir
@Nullable public File getCurrentTempDir()
Returns the current directory used by the test or null if no test is running or no directory is created yet.- Returns:
- see above
-
cleanup
public void cleanup()
-
cleanupAsync
public void cleanupAsync()
-
-