Class PatchTempFiles


  • public class PatchTempFiles
    extends Object
    Author:
    Eugene Petrenko Created: 07.05.2009 20:34:59
    • Method Detail

      • getPatchTempFile

        @NotNull
        public File getPatchTempFile​(@NotNull
                                     AgentRunningBuild build,
                                     @NotNull
                                     String tempFileSuffix)
                              throws IOException

        Creates a new empty temporary file (under either "${TEAMCITY_HOME}/buildAgent/temp/agentTmp" or "${TEAMCITY_HOME}/buildAgent/temp/buildTmp"), patch will be later saved to, and returns this file.

        Parameters:
        build - the current build.
        tempFileSuffix - the name suffix used when creating a new temporary file.
        Returns:
        a newly-created empty temporary file, patch will be later saved to.
        Throws:
        IOException - if a file could not be created.