Package com.sun.tools.ws.ant
Class WsImport2
- 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
-
- com.sun.tools.ws.ant.WsImport2
-
- All Implemented Interfaces:
Cloneable,org.apache.tools.ant.types.selectors.SelectorContainer
public class WsImport2 extends WsImportBase
wscompile task for use with the JAXWS project.
-
-
Field Summary
-
Fields inherited from class com.sun.tools.ws.ant.WsImportBase
xNoAddressingDatabinding
-
-
Constructor Summary
Constructors Constructor Description WsImport2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.tools.ant.types.Commandline.ArgumentcreateJavacarg()Adds Javac argument.org.apache.tools.ant.types.Commandline.ArgumentcreateJvmarg()Adds a JVM argument.voidexecute()Called by the project to let the task do it's workprotected voidexecute(String tool, String toolClass)Let the task do it's work.StringgetAddexports()StringgetAddmodules()StringgetAddopens()StringgetAddreads()booleangetDebug()Gets the debug flag.FilegetDestdir()Gets the base directory to output generated class.StringgetEncoding()Gets the encoding for generated source java files.booleangetExtension()Gets the "extension" flag.booleangetFork()Gets the "fork" flag.booleangetIncludeantruntime()Gets whether or not the ant classpath is to be included in the task's classpath.booleangetIncludejavaruntime()Gets whether or not the java runtime should be included in this task's classpath.org.apache.tools.ant.types.CommandlinegetJavacargs()booleangetKeep()Gets the "keep" flag.StringgetLimitmodules()org.apache.tools.ant.types.PathgetModulepath()StringgetPatchmodule()FilegetSourcedestdir()Gets the directory to place generated source java files.org.apache.tools.ant.types.PathgetUpgrademodulepath()booleangetVerbose()Gets the "verbose" flag.booleanisFailonerror()booleanisXendorsed()booleanisXnocompile()voidsetAddexports(String aes)voidsetAddmodules(String ams)voidsetAddopens(String aos)voidsetAddreads(String ars)voidsetDebug(boolean debug)Sets the debug flag.voidsetDestdir(File base)Sets the base directory to output generated class.voidsetEncoding(String encoding)Sets the encoding for generated source java files.voidsetExtension(boolean extension)Sets the "extension" flag.voidsetFailonerror(boolean value)Mostly for our SQE teams and not to be advertised.voidsetFork(boolean fork)Sets the "fork" flag.voidsetIncludeantruntime(boolean include)Include ant's own classpath in this task's classpath?voidsetIncludejavaruntime(boolean include)Sets whether or not to include the java runtime libraries to this task's classpath.voidsetKeep(boolean keep)Sets the "keep" flag.voidsetLimitmodules(String lms)voidsetModulepath(org.apache.tools.ant.types.Path mp)voidsetPatchmodule(String pms)voidsetSourcedestdir(File sourceBase)Sets the directory to place generated source java files.voidsetupForkCommand(String className)voidsetUpgrademodulepath(org.apache.tools.ant.types.Path ump)voidsetVerbose(boolean verbose)Sets the "verbose" flag.voidsetXendorsed(boolean xendorsed)voidsetXnocompile(boolean xnocompile)-
Methods inherited from class com.sun.tools.ws.ant.WsImportBase
addConfiguredBinding, addConfiguredDepends, addConfiguredProduces, addConfiguredXMLCatalog, createArg, createXjcarg, getCatalog, getClientjar, getImplDestDir, getImplPortName, getImplServiceName, getModule, getPackage, getWsdl, getWsdllocation, getXauthfile, getXdisableAuthenticator, getxNoAddressingDatabinding, isGenerateJWS, isQuiet, isXadditionalHeaders, isXdebug, isXUseBaseResourceAndURLToLoadWSDL, runInVm, setBinding, setCatalog, setClientjar, setdisableAuthenticator, setGenerateJWS, setImplDestDir, setImplPortName, setImplServiceName, setModule, setPackage, setQuiet, setTarget, setupCommand, setWsdl, setWsdllocation, setXadditionalHeaders, setXauthfile, setXdebug, setxNoAddressingDatabinding, setXUseBaseResourceAndURLToLoadWSDL
-
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
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.tools.ant.BuildExceptionDescription copied from class:WsImportBaseCalled by the project to let the task do it's work- Overrides:
executein classWsImportBase- Throws:
org.apache.tools.ant.BuildException
-
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
public void setAddmodules(String ams)
-
getAddmodules
public String getAddmodules()
-
setLimitmodules
public void setLimitmodules(String lms)
-
getLimitmodules
public String getLimitmodules()
-
setAddreads
public void setAddreads(String ars)
-
getAddreads
public String getAddreads()
-
setAddexports
public void setAddexports(String aes)
-
getAddexports
public String getAddexports()
-
setPatchmodule
public void setPatchmodule(String pms)
-
getPatchmodule
public String getPatchmodule()
-
setAddopens
public void setAddopens(String aos)
-
getAddopens
public String getAddopens()
-
getDestdir
public File getDestdir()
Gets the base directory to output generated class.- Returns:
- destination directory for generated class(es).
-
setDestdir
public void setDestdir(File base)
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
public File getSourcedestdir()
Gets the directory to place generated source java files.- Returns:
- destination directory for generated source(s).
-
setSourcedestdir
public void setSourcedestdir(File sourceBase)
Sets the directory to place generated source java files.- Parameters:
sourceBase- destination directory for generated source(s).
-
setEncoding
public void setEncoding(String encoding)
Sets the encoding for generated source java files.- Parameters:
encoding- encoding to use in generated sources.
-
getEncoding
public String 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
public void setupForkCommand(String className)
-
-