org.codehaus.mojo.javascript.titanium
Class FileStrip

java.lang.Object
  extended by org.codehaus.mojo.javascript.titanium.FileStrip

public class FileStrip
extends java.lang.Object

Class to strip lines from a file.


Constructor Summary
FileStrip(java.io.File strippedDirectory, java.lang.String strip)
           
FileStrip(java.io.File strippedDirectory, java.lang.String[] strips)
           
FileStrip(java.io.File strippedDirectory, java.lang.String strip, java.lang.String[] strips)
           
 
Method Summary
 java.lang.String getStrip()
          Retrieve the special token to recognize lines to be removed from scripts.
 java.io.File getStrippedDirectory()
           
 java.lang.String[] getStrips()
           
 void setStrip(java.lang.String strip)
           
 void setStrippedDirectory(java.io.File strippedDirectory)
           
 void setStrips(java.lang.String[] strips)
           
 java.io.File strip(java.lang.String name, java.io.File file)
          Strip the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStrip

public FileStrip(java.io.File strippedDirectory,
                 java.lang.String strip)

FileStrip

public FileStrip(java.io.File strippedDirectory,
                 java.lang.String[] strips)

FileStrip

public FileStrip(java.io.File strippedDirectory,
                 java.lang.String strip,
                 java.lang.String[] strips)
Method Detail

getStrip

public java.lang.String getStrip()
Retrieve the special token to recognize lines to be removed from scripts.

Returns:
The strip token. May be null.

setStrip

public void setStrip(java.lang.String strip)

getStrippedDirectory

public java.io.File getStrippedDirectory()

setStrippedDirectory

public void setStrippedDirectory(java.io.File strippedDirectory)

getStrips

public java.lang.String[] getStrips()

setStrips

public void setStrips(java.lang.String[] strips)

strip

public java.io.File strip(java.lang.String name,
                          java.io.File file)
                   throws org.apache.maven.plugin.MojoExecutionException
Strip the specified file.

Parameters:
name - The name of the destination file. Will be generated in the strippedDirectory folder.
file - The file to strip.
Returns:
The stripped file.
Throws:
org.apache.maven.plugin.MojoExecutionException - When an error occurs while stripping the file.


Copyright © 2011 SOFTEC sa. All Rights Reserved.