Package com.sun.tools.xjc
Class XJCBase
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
com.sun.tools.xjc.XJCBase
- All Implemented Interfaces:
Cloneable,org.apache.tools.ant.types.selectors.SelectorContainer
- Direct Known Subclasses:
XJC2Task
public class XJCBase
extends org.apache.tools.ant.taskdefs.MatchingTask
- Author:
- Yan GAO (gaoyan.gao@oracle.com)
-
Field Summary
FieldsFields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
filesetFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfiguredBinding(org.apache.tools.ant.types.FileSet fs) Nested<binding>element.voidaddConfiguredDepends(org.apache.tools.ant.types.FileSet fs) Nested<depends>element.voidaddConfiguredProduces(org.apache.tools.ant.types.FileSet fs) Nested<produces>element.voidaddConfiguredSchema(org.apache.tools.ant.types.FileSet fs) Nested<schema>element.voidaddConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog xmlCatalog) Add the catalog to our internal catalogorg.apache.tools.ant.types.Commandline.Argumentorg.apache.tools.ant.types.PathNested<classpath>element.org.apache.tools.ant.types.Commandline.Argumentvoidexecute()Runs XJC.booleanbooleangetFork()Gets the "fork" flag.booleanorg.apache.tools.ant.types.Pathbooleanbooleanorg.apache.tools.ant.types.PathbooleanvoidsetAddexports(String aes) voidsetAddmodules(String ams) voidsetAddopens(String aos) voidsetAddreads(String ars) voidsetBinding(String binding) External binding file.voidsetCatalog(File catalog) Adds a new catalog file.voidsetClasspath(org.apache.tools.ant.types.Path cp) Nested<classpath>element.voidsetClasspathRef(org.apache.tools.ant.types.Reference r) voidsetDestdir(File dir) Sets the directory to produce generated source files.voidsetEncoding(String encoding) voidsetExtension(boolean flg) Controls whether the compiler will run in the strict conformance mode (flg=false) or the extension mode (flg=true)voidsetFailonerror(boolean value) Mostly for our SQE teams and not to be advertized.voidsetFork(boolean fork) Sets the "fork" flag.voidsetHeader(boolean flg) Controls whether the file header comment is generated or not.voidsetLanguage(String language) Sets the schema language.voidsetLimitmodules(String lms) voidsetModulepath(org.apache.tools.ant.types.Path mp) voidsetPackage(String pkg) Sets the package name of the generated code.voidsetPatchmodule(String pms) voidsetReadonly(boolean flg) Controls whether files should be generated in read-only mode or notvoidsetRemoveOldOutput(boolean roo) "removeOldOutput" attribute.voidParses the schema attribute.voidsetStackSize(String ss) Deprecated.not much need for JAXB2, as we now use much less stack.voidSets the target version of the compilationprotected org.apache.tools.ant.types.CommandlineJavaSet up command line to invoke.voidsetUpgrademodulepath(org.apache.tools.ant.types.Path ump) voidsetXexplicitAnnotation(boolean flg) 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, XsetItemsMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
-
Field Details
-
options
-
-
Constructor Details
-
XJCBase
public XJCBase()
-
-
Method Details
-
setModulepath
public void setModulepath(org.apache.tools.ant.types.Path mp) -
getModulepath
public org.apache.tools.ant.types.Path getModulepath() -
setUpgrademodulepath
public void setUpgrademodulepath(org.apache.tools.ant.types.Path ump) -
getUpgrademodulepath
public org.apache.tools.ant.types.Path getUpgrademodulepath() -
setAddmodules
-
getAddmodules
-
setLimitmodules
-
getLimitmodules
-
setAddreads
-
getAddreads
-
setAddexports
-
getAddexports
-
setPatchmodule
-
getPatchmodule
-
setAddopens
-
getAddopens
-
getFork
public boolean getFork()Gets the "fork" flag.- Returns:
- true if execution should be done in forked JVM, false otherwise.
-
setFork
public void setFork(boolean fork) Sets the "fork" flag.- Parameters:
fork- true to run execution in a forked JVM.
-
setSchema
Parses the schema attribute. This attribute will be used when there is only one schema.- Parameters:
schema- A file name (can be relative to base dir), or an URL (must be absolute).
-
addConfiguredSchema
public void addConfiguredSchema(org.apache.tools.ant.types.FileSet fs) Nested<schema>element. -
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path cp) Nested<classpath>element. -
createClasspath
public org.apache.tools.ant.types.Path createClasspath()Nested<classpath>element. -
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r) -
setLanguage
Sets the schema language. -
setBinding
External binding file. -
addConfiguredBinding
public void addConfiguredBinding(org.apache.tools.ant.types.FileSet fs) Nested<binding>element. -
setPackage
Sets the package name of the generated code. -
getPackage
-
setCatalog
Adds a new catalog file. -
getCatalog
-
setFailonerror
public void setFailonerror(boolean value) Mostly for our SQE teams and not to be advertized. -
setStackSize
Deprecated.not much need for JAXB2, as we now use much less stack.Sets the stack size of the XJC invocation. -
addConfiguredXMLCatalog
public void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog xmlCatalog) Add the catalog to our internal catalog- Parameters:
xmlCatalog- the XMLCatalog instance to use to look up DTDs
-
setReadonly
public void setReadonly(boolean flg) Controls whether files should be generated in read-only mode or not -
getReadOnly
public boolean getReadOnly() -
setHeader
public void setHeader(boolean flg) Controls whether the file header comment is generated or not. -
getHeader
public boolean getHeader() -
setXexplicitAnnotation
public void setXexplicitAnnotation(boolean flg) - See Also:
-
setExtension
public void setExtension(boolean flg) Controls whether the compiler will run in the strict conformance mode (flg=false) or the extension mode (flg=true) -
getExtension
public boolean getExtension() -
setTarget
Sets the target version of the compilation -
getSpecTarget
-
getVerbose
public boolean getVerbose() -
setDestdir
Sets the directory to produce generated source files. -
getDestdir
-
setEncoding
-
getEncoding
-
addConfiguredDepends
public void addConfiguredDepends(org.apache.tools.ant.types.FileSet fs) Nested<depends>element. -
addConfiguredProduces
public void addConfiguredProduces(org.apache.tools.ant.types.FileSet fs) Nested<produces>element. -
setRemoveOldOutput
public void setRemoveOldOutput(boolean roo) "removeOldOutput" attribute. -
getRemoveOldOutput
public boolean getRemoveOldOutput() -
createArg
public org.apache.tools.ant.types.Commandline.Argument createArg() -
createJvmarg
public org.apache.tools.ant.types.Commandline.Argument createJvmarg() -
setupCommand
protected org.apache.tools.ant.types.CommandlineJava setupCommand()Set up command line to invoke.- Returns:
- ready to run command line
-
execute
public void execute() throws org.apache.tools.ant.BuildExceptionRuns XJC.- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-