public class JFlexTask
extends org.apache.tools.ant.Task
Constructor and Description |
---|
JFlexTask()
Constructor for JFlexTask.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Executes the ant task.
|
void |
findPackageAndClass()
Peek into .flex file to get package and class name
|
java.lang.String |
getClassName()
Getter for the field
className . |
java.lang.String |
getPackage()
getPackage.
|
void |
normalizeOutdir()
Sets the actual output directory if not already set.
|
void |
setDestdir(java.io.File destinationDir)
setDestdir.
|
void |
setDot(boolean b)
setDot.
|
void |
setDump(boolean b)
setDump.
|
void |
setEncoding(java.lang.String encodingName)
Set the input encoding.
|
void |
setFile(java.io.File file)
setFile.
|
void |
setGenerateDot(boolean genDot)
setGenerateDot.
|
void |
setJLex(boolean b)
setJLex.
|
void |
setLegacyDot(boolean b)
setLegacyDot.
|
void |
setNobak(boolean b)
setNobak.
|
void |
setNomin(boolean b)
setNomin.
|
void |
setOutdir(java.io.File outDir)
setOutdir.
|
void |
setPack(boolean b)
setPack.
|
void |
setSkel(java.io.File skeleton)
setSkel.
|
void |
setSkeleton(java.io.File skeleton)
setSkeleton.
|
void |
setSkipMinimization(boolean skipMin)
setSkipMinimization.
|
void |
setTime(boolean displayTime)
setTime.
|
void |
setTimeStatistics(boolean displayTime)
setTimeStatistics.
|
void |
setUnusedWarning(boolean warn)
setUnusedWarning.
|
void |
setVerbose(boolean verbose)
setVerbose.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- if any.public void findPackageAndClass() throws java.io.IOException
java.io.IOException
- if there is a problem reading the .flex filepublic void normalizeOutdir()
Uses javac logic to determine output dir = dest dir + package name If not destdir has been set, output dir = parent of input file
Assumes that package name is already set.
public java.lang.String getPackage()
findPackageAndClass()
public java.lang.String getClassName()
className
.findPackageAndClass()
public void setDestdir(java.io.File destinationDir)
destinationDir
- a File
object.public void setOutdir(java.io.File outDir)
outDir
- a File
object.public void setFile(java.io.File file)
file
- a File
object.public void setGenerateDot(boolean genDot)
genDot
- a boolean.public void setTimeStatistics(boolean displayTime)
displayTime
- a boolean.public void setTime(boolean displayTime)
displayTime
- a boolean.public void setVerbose(boolean verbose)
verbose
- a boolean.public void setUnusedWarning(boolean warn)
warn
- a boolean.public void setSkeleton(java.io.File skeleton)
skeleton
- a File
object.public void setSkel(java.io.File skeleton)
skeleton
- a File
object.public void setSkipMinimization(boolean skipMin)
skipMin
- a boolean.public void setNomin(boolean b)
b
- a boolean.public void setNobak(boolean b)
b
- a boolean.public void setPack(boolean b)
b
- a boolean.public void setDot(boolean b)
b
- a boolean.public void setDump(boolean b)
b
- a boolean.public void setJLex(boolean b)
b
- a boolean.public void setLegacyDot(boolean b)
b
- a boolean.public void setEncoding(java.lang.String encodingName)
encodingName
- the name of the encoding to set (e.g. "utf-8").Copyright © 1998–2019. All rights reserved.