jetbrains.buildServer.agent
Interface AgentTempDirectories


public interface AgentTempDirectories

Agent temp factory. Generated temp files may be cleaned up before new build is started. Files are generated under AgentBuildSettings.getAgentTempDirectory() folder.

Since:
4.0.1
Author:
Eugene Petrenko

Method Summary
 java.io.File createAgentTempDirectory(java.lang.String prefix, java.lang.String suffix)
          Create temp directory for build.
 java.io.File createAgentTempFile(java.lang.String prefix, java.lang.String suffix)
          Create temp file for build.
 

Method Detail

createAgentTempFile

java.io.File createAgentTempFile(@NotNull
                                 java.lang.String prefix,
                                 @NotNull
                                 java.lang.String suffix)
                                 throws java.io.IOException
Create temp file for build. Files are generated under AgentBuildSettings.getAgentTempDirectory() folder.

Parameters:
prefix - filename prefix
suffix - filename suffix
Returns:
path to new-ly created temp file
Throws:
java.io.IOException - on error

createAgentTempDirectory

java.io.File createAgentTempDirectory(@NotNull
                                      java.lang.String prefix,
                                      @NotNull
                                      java.lang.String suffix)
                                      throws java.io.IOException
Create temp directory for build. Files are generated under AgentBuildSettings.getAgentTempDirectory() folder.

Parameters:
prefix - filename prefix
suffix - filename suffix
Returns:
path to new-ly created temp directory
Throws:
java.io.IOException - on error