XJC2Task
public class XJCBase
extends org.apache.tools.ant.taskdefs.MatchingTask
Constructor | Description |
---|---|
XJCBase() |
Modifier and Type | Method | Description |
---|---|---|
void |
addConfiguredBinding(org.apache.tools.ant.types.FileSet fs) |
Nested
<binding> element. |
void |
addConfiguredDepends(org.apache.tools.ant.types.FileSet fs) |
Nested
<depends> element. |
void |
addConfiguredProduces(org.apache.tools.ant.types.FileSet fs) |
Nested
<produces> element. |
void |
addConfiguredSchema(org.apache.tools.ant.types.FileSet fs) |
Nested
<schema> element. |
void |
addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog xmlCatalog) |
Add the catalog to our internal catalog
|
org.apache.tools.ant.types.Commandline.Argument |
createArg() |
|
org.apache.tools.ant.types.Path |
createClasspath() |
Nested
<classpath> element. |
org.apache.tools.ant.types.Commandline.Argument |
createJvmarg() |
|
void |
execute() |
Runs XJC.
|
java.lang.String |
getAddexports() |
|
java.lang.String |
getAddmodules() |
|
java.lang.String |
getAddopens() |
|
java.lang.String |
getAddreads() |
|
java.io.File |
getCatalog() |
|
java.io.File |
getDestdir() |
|
java.lang.String |
getEncoding() |
|
boolean |
getExtension() |
|
boolean |
getFork() |
Gets the "fork" flag.
|
boolean |
getHeader() |
|
java.lang.String |
getLimitmodules() |
|
org.apache.tools.ant.types.Path |
getModulepath() |
|
java.lang.String |
getPackage() |
|
java.lang.String |
getPatchmodule() |
|
boolean |
getReadOnly() |
|
boolean |
getRemoveOldOutput() |
|
java.lang.String |
getSpecTarget() |
|
org.apache.tools.ant.types.Path |
getUpgrademodulepath() |
|
boolean |
getVerbose() |
|
void |
setAddexports(java.lang.String aes) |
|
void |
setAddmodules(java.lang.String ams) |
|
void |
setAddopens(java.lang.String aos) |
|
void |
setAddreads(java.lang.String ars) |
|
void |
setBinding(java.lang.String binding) |
External binding file.
|
void |
setCatalog(java.io.File catalog) |
Adds a new catalog file.
|
void |
setClasspath(org.apache.tools.ant.types.Path cp) |
Nested
<classpath> element. |
void |
setClasspathRef(org.apache.tools.ant.types.Reference r) |
|
void |
setDestdir(java.io.File dir) |
Sets the directory to produce generated source files.
|
void |
setEncoding(java.lang.String encoding) |
|
void |
setExtension(boolean flg) |
Controls whether the compiler will run in the strict
conformance mode (flg=false) or the extension mode (flg=true)
|
void |
setFailonerror(boolean value) |
Mostly for our SQE teams and not to be advertized.
|
void |
setFork(boolean fork) |
Sets the "fork" flag.
|
void |
setHeader(boolean flg) |
Controls whether the file header comment is generated or not.
|
void |
setLanguage(java.lang.String language) |
Sets the schema language.
|
void |
setLimitmodules(java.lang.String lms) |
|
void |
setModulepath(org.apache.tools.ant.types.Path mp) |
|
void |
setPackage(java.lang.String pkg) |
Sets the package name of the generated code.
|
void |
setPatchmodule(java.lang.String pms) |
|
void |
setReadonly(boolean flg) |
Controls whether files should be generated in read-only mode or not
|
void |
setRemoveOldOutput(boolean roo) |
"removeOldOutput" attribute.
|
void |
setSchema(java.lang.String schema) |
Parses the schema attribute.
|
void |
setStackSize(java.lang.String ss) |
Deprecated.
not much need for JAXB2, as we now use much less stack.
|
void |
setTarget(java.lang.String version) |
Sets the target version of the compilation
|
protected org.apache.tools.ant.types.CommandlineJava |
setupCommand() |
Set up command line to invoke.
|
void |
setUpgrademodulepath(org.apache.tools.ant.types.Path ump) |
|
void |
setXexplicitAnnotation(boolean flg) |
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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, setDescription, setLocation
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 final Options options
public void setModulepath(org.apache.tools.ant.types.Path mp)
public org.apache.tools.ant.types.Path getModulepath()
public void setUpgrademodulepath(org.apache.tools.ant.types.Path ump)
public org.apache.tools.ant.types.Path getUpgrademodulepath()
public void setAddmodules(java.lang.String ams)
public java.lang.String getAddmodules()
public void setLimitmodules(java.lang.String lms)
public java.lang.String getLimitmodules()
public void setAddreads(java.lang.String ars)
public java.lang.String getAddreads()
public void setAddexports(java.lang.String aes)
public java.lang.String getAddexports()
public void setPatchmodule(java.lang.String pms)
public java.lang.String getPatchmodule()
public void setAddopens(java.lang.String aos)
public java.lang.String getAddopens()
public boolean getFork()
public void setFork(boolean fork)
fork
- true to run execution in a forked JVM.public void setSchema(java.lang.String schema)
schema
- A file name (can be relative to base dir),
or an URL (must be absolute).public void addConfiguredSchema(org.apache.tools.ant.types.FileSet fs)
<schema>
element.public void setClasspath(org.apache.tools.ant.types.Path cp)
<classpath>
element.public org.apache.tools.ant.types.Path createClasspath()
<classpath>
element.public void setClasspathRef(org.apache.tools.ant.types.Reference r)
public void setLanguage(java.lang.String language)
public void setBinding(java.lang.String binding)
public void addConfiguredBinding(org.apache.tools.ant.types.FileSet fs)
<binding>
element.public void setPackage(java.lang.String pkg)
public java.lang.String getPackage()
public void setCatalog(java.io.File catalog)
public java.io.File getCatalog()
public void setFailonerror(boolean value)
public void setStackSize(java.lang.String ss)
public void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog xmlCatalog)
xmlCatalog
- the XMLCatalog instance to use to look up DTDspublic void setReadonly(boolean flg)
public boolean getReadOnly()
public void setHeader(boolean flg)
public boolean getHeader()
public void setXexplicitAnnotation(boolean flg)
Options.runtime14
public void setExtension(boolean flg)
public boolean getExtension()
public void setTarget(java.lang.String version)
public java.lang.String getSpecTarget()
public boolean getVerbose()
public void setDestdir(java.io.File dir)
public java.io.File getDestdir()
public void setEncoding(java.lang.String encoding)
public java.lang.String getEncoding()
public void addConfiguredDepends(org.apache.tools.ant.types.FileSet fs)
<depends>
element.public void addConfiguredProduces(org.apache.tools.ant.types.FileSet fs)
<produces>
element.public void setRemoveOldOutput(boolean roo)
public boolean getRemoveOldOutput()
public org.apache.tools.ant.types.Commandline.Argument createArg()
public org.apache.tools.ant.types.Commandline.Argument createJvmarg()
protected org.apache.tools.ant.types.CommandlineJava setupCommand()
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Copyright © 2018 Oracle Corporation. All rights reserved.