Package com.atlassian.bamboo.util
Class SharedTemporaryFiles.FileSpecBuilder
java.lang.Object
com.atlassian.bamboo.util.SecureTemporaryFiles.FileSpecBuilder
com.atlassian.bamboo.util.SharedTemporaryFiles.FileSpecBuilder
- Enclosing class:
- SharedTemporaryFiles
public static final class SharedTemporaryFiles.FileSpecBuilder
extends SecureTemporaryFiles.FileSpecBuilder
-
Field Summary
Fields inherited from class com.atlassian.bamboo.util.SecureTemporaryFiles.FileSpecBuilder
directory, executable, failWhenPermissionsNotSet, is83PathPreferred, name, prefix, suffix, useShortDirectoryName
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setExecutable
(boolean executable) setPrefer83PathsOnWindows
(boolean is83PathPreferred) Methods inherited from class com.atlassian.bamboo.util.SecureTemporaryFiles.FileSpecBuilder
failWhenPermissionsNotSet, useShortDirectoryName
-
Method Details
-
setName
- Overrides:
setName
in classSecureTemporaryFiles.FileSpecBuilder
-
setPrefix
- Overrides:
setPrefix
in classSecureTemporaryFiles.FileSpecBuilder
- Returns:
-
setSuffix
- Overrides:
setSuffix
in classSecureTemporaryFiles.FileSpecBuilder
- Parameters:
suffix
- the file name suffix- Returns:
-
setExecutable
- Overrides:
setExecutable
in classSecureTemporaryFiles.FileSpecBuilder
- Parameters:
executable
- whether or not make the file executable- Returns:
-
setDir
- Overrides:
setDir
in classSecureTemporaryFiles.FileSpecBuilder
- Parameters:
directory
- the directory in which to create file (temp directory unless specified otherwise)- Returns:
-
setPrefer83PathsOnWindows
- Overrides:
setPrefer83PathsOnWindows
in classSecureTemporaryFiles.FileSpecBuilder
- Parameters:
is83PathPreferred
- try using 8.3 paths if possible (only on Windows, ignored on other platforms)- Returns:
-
build
- Overrides:
build
in classSecureTemporaryFiles.FileSpecBuilder
- Returns:
- the built object.
-