public class XJCBase
extends MatchingTask
Constructor and Description |
---|
XJCBase() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredBinding(FileSet fs)
Nested
<binding> element. |
void |
addConfiguredDepends(FileSet fs)
Nested
<depends> element. |
void |
addConfiguredProduces(FileSet fs)
Nested
<produces> element. |
void |
addConfiguredSchema(FileSet fs)
Nested
<schema> element. |
void |
addConfiguredXMLCatalog(XMLCatalog xmlCatalog)
Add the catalog to our internal catalog
|
Commandline.Argument |
createArg() |
Path |
createClasspath()
Nested
<classpath> element. |
Commandline.Argument |
createJvmarg() |
void |
execute()
Runs XJC.
|
String |
getAddexports() |
String |
getAddmodules() |
String |
getAddopens() |
String |
getAddreads() |
File |
getCatalog() |
File |
getDestdir() |
String |
getEncoding() |
boolean |
getExtension() |
boolean |
getFork()
Gets the "fork" flag.
|
boolean |
getHeader() |
String |
getLimitmodules() |
Path |
getModulepath() |
String |
getPackage() |
String |
getPatchmodule() |
boolean |
getReadOnly() |
boolean |
getRemoveOldOutput() |
String |
getSpecTarget() |
Path |
getUpgrademodulepath() |
boolean |
getVerbose() |
void |
setAddexports(String aes) |
void |
setAddmodules(String ams) |
void |
setAddopens(String aos) |
void |
setAddreads(String ars) |
void |
setBinding(String binding)
External binding file.
|
void |
setCatalog(File catalog)
Adds a new catalog file.
|
void |
setClasspath(Path cp)
Nested
<classpath> element. |
void |
setClasspathRef(Reference r) |
void |
setDestdir(File dir)
Sets the directory to produce generated source files.
|
void |
setEncoding(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(String language)
Sets the schema language.
|
void |
setLimitmodules(String lms) |
void |
setModulepath(Path mp) |
void |
setPackage(String pkg)
Sets the package name of the generated code.
|
void |
setPatchmodule(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(String schema)
Parses the schema attribute.
|
void |
setStackSize(String ss)
Deprecated.
not much need for JAXB2, as we now use much less stack.
|
void |
setTarget(String version)
Sets the target version of the compilation
|
protected CommandlineJava |
setupCommand()
Set up command line to invoke.
|
void |
setUpgrademodulepath(Path ump) |
void |
setXexplicitAnnotation(boolean flg) |
public final Options options
public void setModulepath(Path mp)
public Path getModulepath()
public void setUpgrademodulepath(Path ump)
public Path getUpgrademodulepath()
public void setAddmodules(String ams)
public String getAddmodules()
public void setLimitmodules(String lms)
public String getLimitmodules()
public void setAddreads(String ars)
public String getAddreads()
public void setAddexports(String aes)
public String getAddexports()
public void setPatchmodule(String pms)
public String getPatchmodule()
public void setAddopens(String aos)
public String getAddopens()
public boolean getFork()
public void setFork(boolean fork)
fork
- true to run execution in a forked JVM.public void setSchema(String schema)
schema
- A file name (can be relative to base dir),
or an URL (must be absolute).public void addConfiguredSchema(FileSet fs)
<schema>
element.public void setClasspath(Path cp)
<classpath>
element.public Path createClasspath()
<classpath>
element.public void setClasspathRef(Reference r)
public void setLanguage(String language)
public void setBinding(String binding)
public void addConfiguredBinding(FileSet fs)
<binding>
element.public void setPackage(String pkg)
public String getPackage()
public void setCatalog(File catalog)
public File getCatalog()
public void setFailonerror(boolean value)
public void setStackSize(String ss)
public void addConfiguredXMLCatalog(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(String version)
public String getSpecTarget()
public boolean getVerbose()
public void setDestdir(File dir)
public File getDestdir()
public void setEncoding(String encoding)
public String getEncoding()
public void addConfiguredDepends(FileSet fs)
<depends>
element.public void addConfiguredProduces(FileSet fs)
<produces>
element.public void setRemoveOldOutput(boolean roo)
public boolean getRemoveOldOutput()
public Commandline.Argument createArg()
public Commandline.Argument createJvmarg()
protected CommandlineJava setupCommand()
public void execute() throws BuildException
BuildException
Copyright © 2021 JBoss by Red Hat. All rights reserved.