|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.codelabor.system.xplatform.ant.Xml2bin
public class Xml2bin
The xml2bin task compile XPLATFORM .xfdl files. This task will work on Windows using the external xml2bin executable (provided by TOBESOFT).
Field Summary | |
---|---|
protected File |
destDir
Destination directory |
protected String |
encoding
Charater encoding |
protected String |
executable
xml2bin.exe executable file fully qualified path. |
protected int |
exitValue
Exit value |
protected boolean |
failonerror
Fail on error flag. |
protected List<org.apache.tools.ant.types.FileSet> |
fileSets
File sets |
protected File |
iniFile
xml2bin .ini file. |
protected String |
logFile
Log file fully qualified path. |
protected int |
verbosity
Verbosity |
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 |
Constructor Summary | |
---|---|
Xml2bin()
|
Method Summary | |
---|---|
void |
addFileSet(org.apache.tools.ant.types.FileSet fileSet)
Add file set |
void |
execute()
|
protected void |
generateIni()
Generates .ini file. |
protected String |
getMessage(Exception ex)
Handle getMessage() for exceptions. |
void |
init()
|
void |
setDestDir(File destDir)
Set destination directory. |
void |
setEncoding(String encoding)
Set the character encoding. |
void |
setExecutable(String executable)
Set XPLATFORM xml2bin.exe. |
void |
setFailOnError(boolean failonerror)
Set whether to fail when errors are encountered. |
void |
setIniFile(File iniFile)
Set .ini file to generate. |
void |
setLogFile(String logFile)
Set log file to generate. |
void |
setVerbose(boolean verbose)
Set verbose mode. |
protected void |
validateAttributes()
Ensure we have a consistent and legal set of attributes, and set any internal flags necessary based on different combinations of attributes. |
protected void |
xml2bin()
Compiles XPLATFORM files. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File iniFile
protected String logFile
protected File destDir
protected String executable
protected boolean failonerror
protected int verbosity
protected int exitValue
protected String encoding
protected List<org.apache.tools.ant.types.FileSet> fileSets
Constructor Detail |
---|
public Xml2bin()
Method Detail |
---|
public void init() throws org.apache.tools.ant.BuildException
init
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
protected void generateIni()
protected void xml2bin()
public void addFileSet(org.apache.tools.ant.types.FileSet fileSet)
fileSet
- file set for compileprotected void validateAttributes() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if an error occurs.protected String getMessage(Exception ex)
ex
- the exception to handle
public void setEncoding(String encoding)
encoding
- the character encoding.public void setIniFile(File iniFile)
iniFile
- fully qualified pathpublic void setDestDir(File destDir)
destDir
- destination directory.public void setVerbose(boolean verbose)
verbose
- where to output log messages. Default is false.public void setFailOnError(boolean failonerror)
failonerror
- true or false.public void setExecutable(String executable)
executable
- fully qualified path.public void setLogFile(String logFile)
logFile
- fully qualified path.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |