public class AssemblyFileSet extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AssemblyFileSet.AssemblyFileSetBuilder |
Constructor and Description |
---|
AssemblyFileSet() |
AssemblyFileSet(File directory,
File outputDirectory,
List<String> includes,
List<String> excludes,
String fileMode,
String directoryMode) |
Modifier and Type | Method and Description |
---|---|
static AssemblyFileSet.AssemblyFileSetBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
File |
getDirectory()
Absolute or relative location from the project's directory.
|
String |
getDirectoryMode()
Similar to a UNIX permission, sets the directory mode of the directories included.
|
List<String> |
getExcludes()
A set of files and directory to exclude.
|
String |
getFileMode()
Similar to a UNIX permission, sets the file mode of the files included.
|
List<String> |
getIncludes()
A set of files and directories to include.
|
File |
getOutputDirectory()
Output directory relative to the root of the root directory of the assembly fileSet.
|
int |
hashCode() |
void |
setDirectory(File directory)
Absolute or relative location from the project's directory.
|
void |
setDirectoryMode(String directoryMode)
Similar to a UNIX permission, sets the directory mode of the directories included.
|
void |
setExcludes(List<String> excludes)
A set of files and directory to exclude.
|
void |
setFileMode(String fileMode)
Similar to a UNIX permission, sets the file mode of the files included.
|
void |
setIncludes(List<String> includes)
A set of files and directories to include.
|
void |
setOutputDirectory(String outputDirectory)
Output directory relative to the root of the root directory of the assembly fileSet.
|
public AssemblyFileSet(File directory, File outputDirectory, List<String> includes, List<String> excludes, String fileMode, String directoryMode)
public AssemblyFileSet()
public void setOutputDirectory(String outputDirectory)
outputDirectory
- New output directory for the assembly fileSet.public static AssemblyFileSet.AssemblyFileSetBuilder builder()
public File getDirectory()
public File getOutputDirectory()
public List<String> getIncludes()
If none is present, then everything is included.
Files can be referenced by using their complete path name.
Wildcards are also supported, patterns will be matched using
FileSystem.getPathMatcher(String)
glob
syntax.
e.g. **/*.txt will match any file with a txt extension in any directory.
public List<String> getExcludes()
If none is present, then there are no exclusions.
public String getFileMode()
Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1.
For example, the value 0644 translates to User read-write, Group and Other read-only.
The default value is 0644
public String getDirectoryMode()
Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1.
For example, the value 0755 translates to User read-write, Group and Other read-only.
The default value is 0755
public void setDirectory(File directory)
directory
- New directory for the assembly fileSet.public void setIncludes(List<String> includes)
If none is present, then everything is included.
Files can be referenced by using their complete path name.
Wildcards are also supported, patterns will be matched using
FileSystem.getPathMatcher(String)
glob
syntax.
e.g. **/*.txt will match any file with a txt extension in any directory.
includes
- New includes for the assembly fileSet.public void setExcludes(List<String> excludes)
If none is present, then there are no exclusions.
excludes
- New includes for the assembly fileSet.public void setFileMode(String fileMode)
Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1.
For example, the value 0644 translates to User read-write, Group and Other read-only.
The default value is 0644
fileMode
- New file mode value for the assembly fileSet.public void setDirectoryMode(String directoryMode)
Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1.
For example, the value 0755 translates to User read-write, Group and Other read-only.
The default value is 0755
directoryMode
- New file mode value for the assembly fileSet.protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.