net.noha.tools.ant.yuicompressor.tasks
Class YuiCompressorTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
net.noha.tools.ant.yuicompressor.tasks.YuiCompressorTask
- All Implemented Interfaces:
- java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer
public class YuiCompressorTask
- extends org.apache.tools.ant.taskdefs.MatchingTask
- Author:
- Viktor Lieskovsky
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset |
Fields inherited from class org.apache.tools.ant.Task |
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
clone, getDescription, getLocation, getProject, setDescription, setLocation |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fromDir
protected java.io.File fromDir
toDir
protected java.io.File toDir
charset
protected java.lang.String charset
lineBreakPosition
protected int lineBreakPosition
munge
protected boolean munge
warn
protected boolean warn
preserveAllSemiColons
protected boolean preserveAllSemiColons
optimize
protected boolean optimize
jsSuffix
protected java.lang.String jsSuffix
cssSuffix
protected java.lang.String cssSuffix
stats
private CompressionStatistics stats
YuiCompressorTask
public YuiCompressorTask()
execute
public void execute()
- Overrides:
execute
in class org.apache.tools.ant.Task
compressFile
private void compressFile(java.io.File inFile,
java.io.File outFile,
FileType fileType)
throws org.mozilla.javascript.EvaluatorException,
org.apache.tools.ant.BuildException
- Throws:
org.mozilla.javascript.EvaluatorException
org.apache.tools.ant.BuildException
createJavaScriptCompressor
private com.yahoo.platform.yui.compressor.JavaScriptCompressor createJavaScriptCompressor(java.io.Reader in)
throws java.io.IOException
- Throws:
java.io.IOException
openFile
private java.io.Reader openFile(java.io.File file)
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
validateDirs
private void validateDirs()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
setToDir
public void setToDir(java.io.File toDir)
setFromDir
public void setFromDir(java.io.File fromDir)
setCharset
public void setCharset(java.lang.String charset)
setLineBreakPosition
public void setLineBreakPosition(int lineBreakPosition)
setMunge
public void setMunge(boolean munge)
setWarn
public void setWarn(boolean warn)
setPreserveAllSemiColons
public void setPreserveAllSemiColons(boolean preserveAllSemiColons)
setOptimize
public void setOptimize(boolean optimize)
setJsSuffix
public void setJsSuffix(java.lang.String jsSuffix)
setCssSuffix
public void setCssSuffix(java.lang.String cssSuffix)