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