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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedTemporaryFiles.SharedTemporaryFileSpec
build()
SharedTemporaryFiles.FileSpecBuilder
setDir(@Nullable File directory)
SharedTemporaryFiles.FileSpecBuilder
setExecutable(boolean executable)
SharedTemporaryFiles.FileSpecBuilder
setName(@NotNull String name)
SharedTemporaryFiles.FileSpecBuilder
setPrefer83PathsOnWindows(boolean is83PathPreferred)
SharedTemporaryFiles.FileSpecBuilder
setPrefix(@NotNull String prefix)
SharedTemporaryFiles.FileSpecBuilder
setSuffix(@Nullable String suffix)
-
Methods inherited from class com.atlassian.bamboo.util.SecureTemporaryFiles.FileSpecBuilder
failWhenPermissionsNotSet, useShortDirectoryName
-
-
-
-
Method Detail
-
setName
public SharedTemporaryFiles.FileSpecBuilder setName(@NotNull @NotNull String name)
- Overrides:
setName
in classSecureTemporaryFiles.FileSpecBuilder
-
setPrefix
public SharedTemporaryFiles.FileSpecBuilder setPrefix(@NotNull @NotNull String prefix)
- Overrides:
setPrefix
in classSecureTemporaryFiles.FileSpecBuilder
- Returns:
-
setSuffix
public SharedTemporaryFiles.FileSpecBuilder setSuffix(@Nullable @Nullable String suffix)
- Overrides:
setSuffix
in classSecureTemporaryFiles.FileSpecBuilder
- Parameters:
suffix
- the file name suffix- Returns:
-
setExecutable
public SharedTemporaryFiles.FileSpecBuilder setExecutable(boolean executable)
- Overrides:
setExecutable
in classSecureTemporaryFiles.FileSpecBuilder
- Parameters:
executable
- whether or not make the file executable- Returns:
-
setDir
public SharedTemporaryFiles.FileSpecBuilder setDir(@Nullable @Nullable File directory)
- Overrides:
setDir
in classSecureTemporaryFiles.FileSpecBuilder
- Parameters:
directory
- the directory in which to create file (temp directory unless specified otherwise)- Returns:
-
setPrefer83PathsOnWindows
public SharedTemporaryFiles.FileSpecBuilder setPrefer83PathsOnWindows(boolean is83PathPreferred)
- Overrides:
setPrefer83PathsOnWindows
in classSecureTemporaryFiles.FileSpecBuilder
- Parameters:
is83PathPreferred
- try using 8.3 paths if possible (only on Windows, ignored on other platforms)- Returns:
-
build
public SharedTemporaryFiles.SharedTemporaryFileSpec build()
- Overrides:
build
in classSecureTemporaryFiles.FileSpecBuilder
- Returns:
- the built object.
-
-