Package com.sun.xml.rpc.tools.ant
Class Wscompile
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.apache.tools.ant.taskdefs.MatchingTask
-
- com.sun.xml.rpc.tools.ant.Wscompile
-
- All Implemented Interfaces:
Cloneable,org.apache.tools.ant.types.selectors.SelectorContainer
public class Wscompile extends org.apache.tools.ant.taskdefs.MatchingTaskwscompile task for use with the JAXRPC project.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanboth-gen:both optionprotected booleanclient-gen:client optionprotected org.apache.tools.ant.types.PathcompileClasspath-classpath optionprotected booleandefine-define optionprotected booleangenImport-import optionprotected Stringjvmargs-jvmargs optionprotected booleanserver-gen:server optionprotected booleanverbose-verbose optionprotected booleanversion-version optionprotected booleanxPrintStackTrace-Xprintstacktrace optionprotected booleanxSerializable-Xserializable option
-
Constructor Summary
Constructors Constructor Description Wscompile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.tools.ant.types.PathcreateClasspath()Creates a nested classpath element.voidexecute()Called by the project to let the task do it's workFilegetBase()Gets the base directory to output generated class.booleangetBoth()Get the value of the "gen:both" flag.org.apache.tools.ant.types.PathgetClasspath()Gets the classpath.booleangetClient()Gets the "gen:client" flag.FilegetConfig()Gets the configuration file.org.apache.tools.ant.types.PathgetCP()Gets the classpath.booleangetDebug()Gets the debug flag.booleangetDefine()Get the value of the "define" flag.StringgetF()Gets the values for the "f" flag.StringgetFeatures()Gets the values for the "features" flag.booleangetFork()Gets the "keep" flag.booleangetGen()Gets the "gen" flag.StringgetHTTPProxy()Gets the String "httpproxy" flag.booleangetImport()Gets the "import" 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.StringgetJvmargs()Gets the Java VM options.booleangetKeep()Gets the "keep" flag.FilegetMapping()Gets the "mapping" file.FilegetModel()Gets the "model" file.FilegetNonClassDir()Gets the directory for non-class generated files.booleangetOptimize()Gets the optimize flag.URLgetProxyServer()Gets the URL for "httpproxy" flag.FilegetSecurity()Gets the "security" file.booleangetServer()Gets the "gen:server" flag.StringgetSource()FilegetSourceBase()Gets the directory to place generated source java files.booleangetVerbose()Gets the "verbose" flag.booleangetVersion()Gets the "version" flag.FilegetXDebugModel()Gets the "Xdebugmodel" file.booleangetXPrintStackTrace()Gets the "Xprintstacktrace" flag.booleangetXSerializable()Gets the "Xserializable" flag.voidsetBase(File base)Sets the base directory to output generated class.voidsetBoth(boolean both)Set the value of the "gen:both" flag.voidsetClasspath(org.apache.tools.ant.types.Path classpath)Set the classpath to be used for this compilation.voidsetClasspathRef(org.apache.tools.ant.types.Reference r)Adds a reference to a CLASSPATH defined elsewhere.voidsetClient(boolean client)Sets the "gen:client" flag.voidsetConfig(File config)Sets the configuration file.voidsetCP(org.apache.tools.ant.types.Path classpath)Set the classpath to be used for this compilation.voidsetDebug(boolean debug)Sets the debug flag.voidsetDefine(boolean define)Set the value of the "define" flag.voidsetF(String features)Sets the values for the "f" flag.voidsetFeatures(String features)Sets the values for the "features" flag.voidsetFork(boolean fork)Sets the "fork" flag.voidsetGen(boolean client)Sets the "gen" flag.voidsetHTTPProxy(String HTTPProxy)Sets the String "httpproxy" flag.voidsetImport(boolean genImport)Sets the "import" 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.voidsetJvmargs(String jvmargs)Sets the Java VM options.voidsetKeep(boolean keep)Sets the "keep" flag.voidsetMapping(File mappingFile)Sets the "mapping" file.voidsetModel(File modelFile)Sets the "model" file.voidsetNonClassDir(File nonClassDir)Sets the directory for non-class generated files.voidsetOptimize(boolean optimize)Sets the optimize flag.voidsetProxyServer(URL proxyURL)Sets the URL for "httpproxy" flag.voidsetSecurity(File securityFile)Sets the "security" file.voidsetServer(boolean server)Sets the "gen:server" flag.voidsetSource(String version)Sets the -sourcevoidsetSourceBase(File sourceBase)Sets the directory to place generated source java files.voidsetVerbose(boolean verbose)Sets the "verbose" flag.voidsetVersion(boolean version)Sets the "version" flag.voidsetXDebugModel(File xDebugModel)Sets the "Xdebugmodel" file.voidsetXPrintStackTrace(boolean xPrintStackTrace)Sets the "Xprintstacktrace" flag.voidsetXSerializable(boolean xSerializable)Sets the "Xserializable" flag.-
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
-
-
-
-
Field Detail
-
compileClasspath
protected org.apache.tools.ant.types.Path compileClasspath
-classpath option
-
define
protected boolean define
-define option
-
client
protected boolean client
-gen:client option
-
server
protected boolean server
-gen:server option
-
both
protected boolean both
-gen:both option
-
genImport
protected boolean genImport
-import option
-
jvmargs
protected String jvmargs
-jvmargs option
-
verbose
protected boolean verbose
-verbose option
-
version
protected boolean version
-version option
-
xPrintStackTrace
protected boolean xPrintStackTrace
-Xprintstacktrace option
-
xSerializable
protected boolean xSerializable
-Xserializable option
-
-
Method Detail
-
getClasspath
public org.apache.tools.ant.types.Path getClasspath()
Gets the classpath.
-
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path classpath)
Set the classpath to be used for this compilation.
-
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
Creates a nested classpath element.
-
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a CLASSPATH defined elsewhere.
-
getCP
public org.apache.tools.ant.types.Path getCP()
Gets the classpath.
-
setCP
public void setCP(org.apache.tools.ant.types.Path classpath)
Set the classpath to be used for this compilation.
-
getBase
public File getBase()
Gets the base directory to output generated class.
-
setBase
public void setBase(File base)
Sets the base directory to output generated class.
-
getDefine
public boolean getDefine()
Get the value of the "define" flag.
-
setDefine
public void setDefine(boolean define)
Set the value of the "define" flag.
-
getF
public String getF()
Gets the values for the "f" flag.
-
setF
public void setF(String features)
Sets the values for the "f" flag.
-
getFeatures
public String getFeatures()
Gets the values for the "features" flag.
-
setFeatures
public void setFeatures(String features)
Sets the values for the "features" flag.
-
getDebug
public boolean getDebug()
Gets the debug flag.
-
setDebug
public void setDebug(boolean debug)
Sets the debug flag.
-
getGen
public boolean getGen()
Gets the "gen" flag.
-
setGen
public void setGen(boolean client)
Sets the "gen" flag.
-
getClient
public boolean getClient()
Gets the "gen:client" flag.
-
setClient
public void setClient(boolean client)
Sets the "gen:client" flag.
-
getServer
public boolean getServer()
Gets the "gen:server" flag.
-
setServer
public void setServer(boolean server)
Sets the "gen:server" flag.
-
getBoth
public boolean getBoth()
Get the value of the "gen:both" flag.
-
setBoth
public void setBoth(boolean both)
Set the value of the "gen:both" flag.- Parameters:
both- true if you want both client and server-side stuff to be generated.
-
getHTTPProxy
public String getHTTPProxy()
Gets the String "httpproxy" flag.
-
setHTTPProxy
public void setHTTPProxy(String HTTPProxy)
Sets the String "httpproxy" flag. This value can either specify the http protocol or not.
-
getProxyServer
public URL getProxyServer()
Gets the URL for "httpproxy" flag.
-
setProxyServer
public void setProxyServer(URL proxyURL)
Sets the URL for "httpproxy" flag.
-
getImport
public boolean getImport()
Gets the "import" flag.
-
setImport
public void setImport(boolean genImport)
Sets the "import" flag.
-
getJvmargs
public String getJvmargs()
Gets the Java VM options.
-
setJvmargs
public void setJvmargs(String jvmargs)
Sets the Java VM options.
-
getKeep
public boolean getKeep()
Gets the "keep" flag.
-
setKeep
public void setKeep(boolean keep)
Sets the "keep" flag.
-
getFork
public boolean getFork()
Gets the "keep" flag.
-
setFork
public void setFork(boolean fork)
Sets the "fork" flag.
-
getModel
public File getModel()
Gets the "model" file.
-
setModel
public void setModel(File modelFile)
Sets the "model" file.
-
getMapping
public File getMapping()
Gets the "mapping" file.
-
setMapping
public void setMapping(File mappingFile)
Sets the "mapping" file.
-
getSecurity
public File getSecurity()
Gets the "security" file.
-
setSecurity
public void setSecurity(File securityFile)
Sets the "security" file.
-
getNonClassDir
public File getNonClassDir()
Gets the directory for non-class generated files.
-
setNonClassDir
public void setNonClassDir(File nonClassDir)
Sets the directory for non-class generated files.
-
getOptimize
public boolean getOptimize()
Gets the optimize flag.
-
setOptimize
public void setOptimize(boolean optimize)
Sets the optimize flag.
-
setSourceBase
public void setSourceBase(File sourceBase)
Sets the directory to place generated source java files.
-
getSourceBase
public File getSourceBase()
Gets the directory to place generated source java files.
-
getVerbose
public boolean getVerbose()
Gets the "verbose" flag.
-
setVerbose
public void setVerbose(boolean verbose)
Sets the "verbose" flag.
-
getVersion
public boolean getVersion()
Gets the "version" flag.
-
setVersion
public void setVersion(boolean version)
Sets the "version" flag.
-
getXPrintStackTrace
public boolean getXPrintStackTrace()
Gets the "Xprintstacktrace" flag.
-
setXPrintStackTrace
public void setXPrintStackTrace(boolean xPrintStackTrace)
Sets the "Xprintstacktrace" flag.
-
getXSerializable
public boolean getXSerializable()
Gets the "Xserializable" flag.
-
setXSerializable
public void setXSerializable(boolean xSerializable)
Sets the "Xserializable" flag.
-
getXDebugModel
public File getXDebugModel()
Gets the "Xdebugmodel" file.
-
setXDebugModel
public void setXDebugModel(File xDebugModel)
Sets the "Xdebugmodel" file.
-
getConfig
public File getConfig()
Gets the configuration file.
-
setConfig
public void setConfig(File config)
Sets the configuration file.
-
getSource
public String getSource()
-
setSource
public void setSource(String version)
Sets the -source
-
setIncludeantruntime
public void setIncludeantruntime(boolean include)
Include ant's own classpath in this task's classpath?
-
getIncludeantruntime
public boolean getIncludeantruntime()
Gets whether or not the ant classpath is to 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.
-
getIncludejavaruntime
public boolean getIncludejavaruntime()
Gets whether or not the java runtime should be included in this task's classpath.
-
execute
public void execute() throws org.apache.tools.ant.BuildExceptionCalled by the project to let the task do it's work- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
-