org.apache.maven.plugins.assembly.model
Class FileItem

java.lang.Object
  extended by org.apache.maven.plugins.assembly.model.FileItem
All Implemented Interfaces:
java.io.Serializable

public class FileItem
extends java.lang.Object
implements java.io.Serializable

Allows individual file copy with option to change destination file name not supported by fileSet

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
FileItem()
           
 
Method Summary
 java.lang.String getDestName()
          Get Destination file name in outputDirectory.
 java.lang.String getFileMode()
          Get Similar to a UNIX permission.
 java.lang.String getLineEnding()
          Get Controls the line-endings of files in this fileSet.
 java.lang.String getModelEncoding()
           
 java.lang.String getOutputDirectory()
          Get Specifies the output directory relative to the root of the root directory of the assembly.
 java.lang.String getSource()
          Get Absolute or relative from the module's directory.
 boolean isFiltered()
          Get Flag used to determine if the file is filtered.
 void setDestName(java.lang.String destName)
          Set Destination file name in outputDirectory.
 void setFileMode(java.lang.String fileMode)
          Set Similar to a UNIX permission.
 void setFiltered(boolean filtered)
          Set Flag used to determine if the file is filtered.
 void setLineEnding(java.lang.String lineEnding)
          Set Controls the line-endings of files in this fileSet.
 void setModelEncoding(java.lang.String modelEncoding)
           
 void setOutputDirectory(java.lang.String outputDirectory)
          Set Specifies the output directory relative to the root of the root directory of the assembly.
 void setSource(java.lang.String source)
          Set Absolute or relative from the module's directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileItem

public FileItem()
Method Detail

getDestName

public java.lang.String getDestName()
Get Destination file name in outputDirectory. Default is the same name as the source's file.


getFileMode

public java.lang.String getFileMode()
Get Similar to a UNIX permission. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the default value of 0644 translates to User read-write, Group and Other read-only. (more on unix-style permissions)


getLineEnding

public java.lang.String getLineEnding()
Get Controls the line-endings of files in this fileSet. Valid values are:


getOutputDirectory

public java.lang.String getOutputDirectory()
Get Specifies 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.


getSource

public java.lang.String getSource()
Get Absolute or relative from the module's directory.


isFiltered

public boolean isFiltered()
Get Flag used to determine if the file is filtered.


setDestName

public void setDestName(java.lang.String destName)
Set Destination file name in outputDirectory. Default is the same name as the source's file.

Parameters:
destName -

setFileMode

public void setFileMode(java.lang.String fileMode)
Set Similar to a UNIX permission. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the default value of 0644 translates to User read-write, Group and Other read-only. (more on unix-style permissions)

Parameters:
fileMode -

setFiltered

public void setFiltered(boolean filtered)
Set Flag used to determine if the file is filtered.

Parameters:
filtered -

setLineEnding

public void setLineEnding(java.lang.String lineEnding)
Set Controls the line-endings of files in this fileSet. Valid values are:

Parameters:
lineEnding -

setOutputDirectory

public void setOutputDirectory(java.lang.String outputDirectory)
Set Specifies 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 -

setSource

public void setSource(java.lang.String source)
Set Absolute or relative from the module's directory.

Parameters:
source -

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)

getModelEncoding

public java.lang.String getModelEncoding()


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.