java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
com.sun.tools.ws.ant.WsImportBase
- All Implemented Interfaces:
Cloneable
,org.apache.tools.ant.types.selectors.SelectorContainer
- Direct Known Subclasses:
WsImport2
public class WsImportBase
extends org.apache.tools.ant.taskdefs.MatchingTask
- Author:
- lukas
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
-Xno-addressing-databindingFields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addConfiguredBinding
(org.apache.tools.ant.types.FileSet fs) 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
addConfiguredXMLCatalog
(org.apache.tools.ant.types.XMLCatalog entityResolver) org.apache.tools.ant.types.Commandline.Argument
Provides a way to directly pass wsimport commandline options through nested arg instead of a separate attribute for each option.org.apache.tools.ant.types.Commandline.Argument
Adds Javac argument.org.apache.tools.ant.types.Commandline.Argument
Adds a JVM argument.org.apache.tools.ant.types.Commandline.Argument
Adds XJC argument.void
execute()
Called by the project to let the task do it's workprotected final void
Let the task do it's work.Gets the clientjar to output generated artifacts into a jar.boolean
getDebug()
Gets the debug flag.Gets the base directory to output generated class.Gets the encoding for generated source java files.boolean
Gets the "extension" flag.boolean
getFork()
Gets the "fork" flag.boolean
Gets whether or not the ant classpath is to be included in the task's classpath.boolean
Gets whether or not the java runtime should be included in this task's classpath.org.apache.tools.ant.types.Commandline
boolean
getKeep()
Gets the "keep" flag.Gets Java module name.org.apache.tools.ant.types.Path
Gets the directory to place generated source java files.org.apache.tools.ant.types.Path
boolean
Gets the "verbose" flag.getWsdl()
boolean
boolean
boolean
boolean
boolean
isQuiet()
boolean
boolean
isXdebug()
boolean
boolean
boolean
protected boolean
runInVm
(String[] arguments, OutputStream out) Used to call the tool directly using API.void
setAddexports
(String aes) void
setAddmodules
(String ams) void
setAddopens
(String aos) void
setAddreads
(String ars) void
setBinding
(String binding) void
setCatalog
(File catalog) Adds a new catalog file.void
setClientjar
(String clientjar) Sets the base directory to output generated class.void
setDebug
(boolean debug) Sets the debug flag.void
setDestdir
(File base) Sets the base directory to output generated class.void
setdisableAuthenticator
(boolean disableAuthenticator) void
setEncoding
(String encoding) Sets the encoding for generated source java files.void
setExtension
(boolean extension) Sets the "extension" flag.void
setFailonerror
(boolean value) Mostly for our SQE teams and not to be advertised.void
setFork
(boolean fork) Sets the "fork" flag.void
setGenerateJWS
(boolean isGenerateJWS) void
setImplDestDir
(File base) void
setImplPortName
(String base) void
setImplServiceName
(String base) void
setIncludeantruntime
(boolean include) Include ant's own classpath in this task's classpath?void
setIncludejavaruntime
(boolean include) Sets whether or not to include the java runtime libraries to this task's classpath.void
setKeep
(boolean keep) Sets the "keep" flag.void
setLimitmodules
(String lms) void
Sets Java module name.void
setModulepath
(org.apache.tools.ant.types.Path mp) void
setPackage
(String pkg) void
setPatchmodule
(String pms) void
setQuiet
(boolean quiet) void
setSourcedestdir
(File sourceBase) Sets the directory to place generated source java files.void
protected org.apache.tools.ant.types.CommandlineJava
Set up command line to invoke.void
setupForkCommand
(String className) void
setUpgrademodulepath
(org.apache.tools.ant.types.Path ump) void
setVerbose
(boolean verbose) Sets the "verbose" flag.void
void
setWsdllocation
(String wsdlLocation) void
setXadditionalHeaders
(boolean xadditionalHeaders) void
setXauthfile
(File xauthfile) void
setXdebug
(boolean xdebug) void
setXendorsed
(boolean xendorsed) void
setxNoAddressingDatabinding
(boolean xNoAddressingDatabinding) void
setXnocompile
(boolean xnocompile) void
setXUseBaseResourceAndURLToLoadWSDL
(boolean xuseBaseResourceAndURLToLoadWSDL) 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, XsetItems
Methods 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, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
-
Field Details
-
xNoAddressingDatabinding
protected boolean xNoAddressingDatabinding-Xno-addressing-databinding
-
-
Constructor Details
-
WsImportBase
public WsImportBase()
-
-
Method Details
-
isXdebug
public boolean isXdebug() -
setXdebug
public void setXdebug(boolean xdebug) -
setXUseBaseResourceAndURLToLoadWSDL
public void setXUseBaseResourceAndURLToLoadWSDL(boolean xuseBaseResourceAndURLToLoadWSDL) -
isXUseBaseResourceAndURLToLoadWSDL
public boolean isXUseBaseResourceAndURLToLoadWSDL() -
isGenerateJWS
public boolean isGenerateJWS() -
setGenerateJWS
public void setGenerateJWS(boolean isGenerateJWS) -
getImplDestDir
-
setImplDestDir
-
getImplServiceName
-
setImplServiceName
-
getImplPortName
-
setImplPortName
-
createArg
public org.apache.tools.ant.types.Commandline.Argument createArg()Provides a way to directly pass wsimport commandline options through nested arg instead of a separate attribute for each option.- Returns:
- argument created
-
isXadditionalHeaders
public boolean isXadditionalHeaders() -
setXadditionalHeaders
public void setXadditionalHeaders(boolean xadditionalHeaders) -
getClientjar
Gets the clientjar to output generated artifacts into a jar.- Returns:
- jar file where to put generated artifacts.
-
setClientjar
Sets the base directory to output generated class.- Parameters:
clientjar
- jar file where to put generated artifacts.
-
getWsdllocation
-
setWsdllocation
-
addConfiguredXMLCatalog
public void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog entityResolver) -
setPackage
-
getPackage
-
setModule
Sets Java module name.- Parameters:
module
- Java module name to set.null
turns (@code module-info.java} generation off.
-
getModule
Gets Java module name.- Returns:
- Java module name or
null
if (@code module-info.java} generation is turned off.
-
createXjcarg
public org.apache.tools.ant.types.Commandline.Argument createXjcarg()Adds XJC argument.- Returns:
- XJC argument created.
- Since:
- 2.1
-
getxNoAddressingDatabinding
public boolean getxNoAddressingDatabinding() -
setxNoAddressingDatabinding
public void setxNoAddressingDatabinding(boolean xNoAddressingDatabinding) -
isQuiet
public boolean isQuiet() -
setQuiet
public void setQuiet(boolean quiet) -
setTarget
-
addConfiguredDepends
public void addConfiguredDepends(org.apache.tools.ant.types.FileSet fs) Nested <depends> element.- Parameters:
fs
- FileSet to check for modifications.
-
addConfiguredProduces
public void addConfiguredProduces(org.apache.tools.ant.types.FileSet fs) Nested <produces> element.- Parameters:
fs
- FileSet to check for modifications.
-
setBinding
- Parameters:
binding
- The external binding to set.
-
setCatalog
Adds a new catalog file.- Parameters:
catalog
- catalog file to use.
-
getCatalog
-
getWsdl
- Returns:
- Returns the wsdl.
-
setWsdl
- Parameters:
wsdl
- The wsdl to set.
-
getXauthfile
-
setXauthfile
-
getXdisableAuthenticator
public boolean getXdisableAuthenticator() -
setdisableAuthenticator
public void setdisableAuthenticator(boolean disableAuthenticator) -
addConfiguredBinding
public void addConfiguredBinding(org.apache.tools.ant.types.FileSet fs) -
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.BuildExceptionCalled by the project to let the task do it's work- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
-
runInVm
Used to call the tool directly using API.- Parameters:
arguments
- arguments to be passed to the toolout
- output for the tool- Returns:
- true if tool succeed
-
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
-
getDestdir
Gets the base directory to output generated class.- Returns:
- destination directory for generated class(es).
-
setDestdir
Sets the base directory to output generated class.- Parameters:
base
- destination directory for generated class(es).
-
getExtension
public boolean getExtension()Gets the "extension" flag.- Returns:
- true if extension mode is on, false otherwise.
-
setExtension
public void setExtension(boolean extension) Sets the "extension" flag.- Parameters:
extension
- true to set extension mode on, false otherwise.
-
getKeep
public boolean getKeep()Gets the "keep" flag.- Returns:
- Whether to keep generated sources.
-
setKeep
public void setKeep(boolean keep) Sets the "keep" flag.- Parameters:
keep
- keep generated sources.
-
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.
-
getSourcedestdir
Gets the directory to place generated source java files.- Returns:
- destination directory for generated source(s).
-
setSourcedestdir
Sets the directory to place generated source java files.- Parameters:
sourceBase
- destination directory for generated source(s).
-
setEncoding
Sets the encoding for generated source java files.- Parameters:
encoding
- encoding to use in generated sources.
-
getEncoding
Gets the encoding for generated source java files.- Returns:
- encoding to use in generated sources.
-
getVerbose
public boolean getVerbose()Gets the "verbose" flag.- Returns:
- true if messages about what the compiler is doing should be printed out.
-
setVerbose
public void setVerbose(boolean verbose) Sets the "verbose" flag.- Parameters:
verbose
- whether to output messages about what the compiler is doing.
-
getDebug
public boolean getDebug()Gets the debug flag.- Returns:
- true if all debugging info should be generated.
-
setDebug
public void setDebug(boolean debug) Sets the debug flag.- Parameters:
debug
- generate all debugging info.
-
createJavacarg
public org.apache.tools.ant.types.Commandline.Argument createJavacarg()Adds Javac argument.- Returns:
- Javac argument created.
- Since:
- 2.2.9
-
getJavacargs
public org.apache.tools.ant.types.Commandline getJavacargs() -
setXendorsed
public void setXendorsed(boolean xendorsed) -
isXendorsed
public boolean isXendorsed() -
isXnocompile
public boolean isXnocompile() -
setXnocompile
public void setXnocompile(boolean xnocompile) -
setFailonerror
public void setFailonerror(boolean value) Mostly for our SQE teams and not to be advertised.- Parameters:
value
- a boolean value
-
isFailonerror
public boolean isFailonerror()- Returns:
- true if the task should fail on error.
-
setIncludeantruntime
public void setIncludeantruntime(boolean include) Include ant's own classpath in this task's classpath?- Parameters:
include
- a boolean value.
-
getIncludeantruntime
public boolean getIncludeantruntime()Gets whether or not the ant classpath is to be included in the task's classpath.- Returns:
- true if Ant classpath should be included in the task's classpath.
-
setIncludejavaruntime
public void setIncludejavaruntime(boolean include) Sets whether or not to include the java runtime libraries to this task's classpath.- Parameters:
include
- a boolean value.
-
getIncludejavaruntime
public boolean getIncludejavaruntime()Gets whether or not the java runtime should be included in this task's classpath.- Returns:
- true if java runtime classpath should be included in the task's classpath.
-
createJvmarg
public org.apache.tools.ant.types.Commandline.Argument createJvmarg()Adds a JVM argument.- Returns:
- JVM argument created
-
execute
protected final void execute(String tool, String toolClass) throws org.apache.tools.ant.BuildException Let the task do it's work.- Parameters:
tool
- string to use in logged messagestoolClass
- class name to invoke- Throws:
org.apache.tools.ant.BuildException
- if invocation fails
-
setupForkCommand
-