Class FileItem
java.lang.Object
org.apache.maven.plugins.assembly.model.FileItem
- All Implemented Interfaces:
- Serializable
A file allows individual file inclusion with the option
 to change
         the destination filename not supported by fileSets.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidMethod addSource.Get sets the destination filename in the outputDirectory.Get similar to a UNIX permission, sets the file mode of the files included.Get sets the line-endings of the files in this file.Get sets the output directory relative to the root of the root directory of the assembly.Get sets the absolute or relative path from the module's directory of the file to be included in the assembly.Method getSources.booleanGet sets whether to determine if the file is filtered.voidremoveSource(String string) Method removeSource.voidsetDestName(String destName) Set sets the destination filename in the outputDirectory.voidsetFileMode(String fileMode) Set similar to a UNIX permission, sets the file mode of the files included.voidsetFiltered(boolean filtered) Set sets whether to determine if the file is filtered.voidsetLineEnding(String lineEnding) Set sets the line-endings of the files in this file.voidsetOutputDirectory(String outputDirectory) Set sets the output directory relative to the root of the root directory of the assembly.voidSet sets the absolute or relative path from the module's directory of the file to be included in the assembly.voidsetSources(List<String> sources) Set set of absolute or relative paths from the module's directory of the files be combined and included in the assembly.
- 
Constructor Details- 
FileItempublic FileItem()
 
- 
- 
Method Details- 
addSourceMethod addSource.- Parameters:
- string- a string object.
 
- 
getDestNameGet sets the destination filename in the outputDirectory. Default is the same name as the source's file.- Returns:
- String
 
- 
getFileModeGet similar to a UNIX permission, sets the file mode of the files included. THIS IS AN OCTAL VALUE. 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. (more on unix-style permissions)- Returns:
- String
 
- 
getLineEndingGet sets the line-endings of the files in this file. Valid values are:- "keep" - Preserve all line endings
- "unix" - Use Unix-style line endings
- "lf" - Use a single line-feed line endings
- "dos" - Use DOS-style line endings
- "crlf" - Use Carraige-return, line-feed line endings
 - Returns:
- String
 
- 
getOutputDirectoryGet sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory.- Returns:
- String
 
- 
getSourceGet sets the absolute or relative path from the module's directory of the file to be included in the assembly.- Returns:
- String
 
- 
getSourcesMethod getSources.- Returns:
- List
 
- 
isFilteredpublic boolean isFiltered()Get sets whether to determine if the file is filtered.- Returns:
- boolean
 
- 
removeSourceMethod removeSource.- Parameters:
- string- a string object.
 
- 
setDestNameSet sets the destination filename in the outputDirectory. Default is the same name as the source's file.- Parameters:
- destName- a destName object.
 
- 
setFileModeSet similar to a UNIX permission, sets the file mode of the files included. THIS IS AN OCTAL VALUE. 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. (more on unix-style permissions)- Parameters:
- fileMode- a fileMode object.
 
- 
setFilteredpublic void setFiltered(boolean filtered) Set sets whether to determine if the file is filtered.- Parameters:
- filtered- a filtered object.
 
- 
setLineEndingSet sets the line-endings of the files in this file. Valid values are:- "keep" - Preserve all line endings
- "unix" - Use Unix-style line endings
- "lf" - Use a single line-feed line endings
- "dos" - Use DOS-style line endings
- "crlf" - Use Carraige-return, line-feed line endings
 - Parameters:
- lineEnding- a lineEnding object.
 
- 
setOutputDirectorySet sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory.- Parameters:
- outputDirectory- a outputDirectory object.
 
- 
setSourceSet sets the absolute or relative path from the module's directory of the file to be included in the assembly.- Parameters:
- source- a source object.
 
- 
setSourcesSet set of absolute or relative paths from the module's directory of the files be combined and included in the assembly.- Parameters:
- sources- a sources object.
 
 
-