org.apache.maven.plugins.assembly.model.FileItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-assembly-plugin Show documentation
Show all versions of maven-assembly-plugin Show documentation
A Maven plugin to create archives of your project's sources, classes, dependencies etc. from flexible assembly descriptors.
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.0.0,
// any modifications will be overwritten.
// ==============================================================
package org.apache.maven.plugins.assembly.model;
/**
*
* A file allows individual file inclusion with the option
* to change
* the destination filename not supported by fileSets.
*
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class FileItem
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
*
* Sets the absolute or relative path from the
* module's directory
* of the file to be included in the assembly.
*
*/
private String source;
/**
* Field sources.
*/
private java.util.List sources;
/**
*
* 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.
*
*/
private String outputDirectory;
/**
*
* Sets the destination filename in the
* outputDirectory.
* Default is the same name as the source's file.
*
*/
private String destName;
/**
*
*
* 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)
*
*
*/
private String fileMode;
/**
*
*
* 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
*
*
*
*/
private String lineEnding;
/**
*
* Sets whether to determine if the file is
* filtered.
*
*/
private boolean filtered = false;
//-----------/
//- Methods -/
//-----------/
/**
* Method addSource.
*
* @param string a string object.
*/
public void addSource( String string )
{
getSources().add( string );
} //-- void addSource( String )
/**
* Get sets the destination filename in the outputDirectory.
* Default is the same name as the source's file.
*
* @return String
*/
public String getDestName()
{
return this.destName;
} //-- String getDestName()
/**
* Get 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)
*
* @return String
*/
public String getFileMode()
{
return this.fileMode;
} //-- String getFileMode()
/**
* Get 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
*
*
* @return String
*/
public String getLineEnding()
{
return this.lineEnding;
} //-- String getLineEnding()
/**
* Get 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.
*
* @return String
*/
public String getOutputDirectory()
{
return this.outputDirectory;
} //-- String getOutputDirectory()
/**
* Get sets the absolute or relative path from the module's
* directory
* of the file to be included in the assembly.
*
* @return String
*/
public String getSource()
{
return this.source;
} //-- String getSource()
/**
* Method getSources.
*
* @return List
*/
public java.util.List getSources()
{
if ( this.sources == null )
{
this.sources = new java.util.ArrayList();
}
return this.sources;
} //-- java.util.List getSources()
/**
* Get sets whether to determine if the file is filtered.
*
* @return boolean
*/
public boolean isFiltered()
{
return this.filtered;
} //-- boolean isFiltered()
/**
* Method removeSource.
*
* @param string a string object.
*/
public void removeSource( String string )
{
getSources().remove( string );
} //-- void removeSource( String )
/**
* Set sets the destination filename in the outputDirectory.
* Default is the same name as the source's file.
*
* @param destName a destName object.
*/
public void setDestName( String destName )
{
this.destName = destName;
} //-- void setDestName( String )
/**
* Set 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)
*
* @param fileMode a fileMode object.
*/
public void setFileMode( String fileMode )
{
this.fileMode = fileMode;
} //-- void setFileMode( String )
/**
* Set sets whether to determine if the file is filtered.
*
* @param filtered a filtered object.
*/
public void setFiltered( boolean filtered )
{
this.filtered = filtered;
} //-- void setFiltered( boolean )
/**
* Set 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
*
*
* @param lineEnding a lineEnding object.
*/
public void setLineEnding( String lineEnding )
{
this.lineEnding = lineEnding;
} //-- void setLineEnding( String )
/**
* Set 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.
*
* @param outputDirectory a outputDirectory object.
*/
public void setOutputDirectory( String outputDirectory )
{
this.outputDirectory = outputDirectory;
} //-- void setOutputDirectory( String )
/**
* Set sets the absolute or relative path from the module's
* directory
* of the file to be included in the assembly.
*
* @param source a source object.
*/
public void setSource( String source )
{
this.source = source;
} //-- void setSource( String )
/**
* Set set of absolute or relative paths from the module's
* directory
* of the files be combined and included in the
* assembly.
*
* @param sources a sources object.
*/
public void setSources( java.util.List sources )
{
this.sources = sources;
} //-- void setSources( java.util.List )
}