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.MatchingTask
wscompile task for use with the JAXRPC project.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    -gen:both option
    protected boolean
    -gen:client option
    protected org.apache.tools.ant.types.Path
    -classpath option
    protected boolean
    -define option
    protected boolean
    -import option
    protected String
    -jvmargs option
    protected boolean
    -gen:server option
    protected boolean
    -verbose option
    protected boolean
    -version option
    protected boolean
    -Xprintstacktrace option
    protected boolean
    -Xserializable option

    Fields 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.tools.ant.types.Path
    Creates a nested classpath element.
    void
    Called by the project to let the task do it's work
    Gets the base directory to output generated class.
    boolean
    Get the value of the "gen:both" flag.
    org.apache.tools.ant.types.Path
    Gets the classpath.
    boolean
    Gets the "gen:client" flag.
    Gets the configuration file.
    org.apache.tools.ant.types.Path
    Gets the classpath.
    boolean
    Gets the debug flag.
    boolean
    Get the value of the "define" flag.
    Gets the values for the "f" flag.
    Gets the values for the "features" flag.
    boolean
    Gets the "keep" flag.
    boolean
    Gets the "gen" flag.
    Gets the String "httpproxy" flag.
    boolean
    Gets the "import" 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.
    Gets the Java VM options.
    boolean
    Gets the "keep" flag.
    Gets the "mapping" file.
    Gets the "model" file.
    Gets the directory for non-class generated files.
    boolean
    Gets the optimize flag.
    Gets the URL for "httpproxy" flag.
    Gets the "security" file.
    boolean
    Gets the "gen:server" flag.
     
    Gets the directory to place generated source java files.
    boolean
    Gets the "verbose" flag.
    boolean
    Gets the "version" flag.
    Gets the "Xdebugmodel" file.
    boolean
    Gets the "Xprintstacktrace" flag.
    boolean
    Gets the "Xserializable" flag.
    void
    setBase(File base)
    Sets the base directory to output generated class.
    void
    setBoth(boolean both)
    Set the value of the "gen:both" flag.
    void
    setClasspath(org.apache.tools.ant.types.Path classpath)
    Set the classpath to be used for this compilation.
    void
    setClasspathRef(org.apache.tools.ant.types.Reference r)
    Adds a reference to a CLASSPATH defined elsewhere.
    void
    setClient(boolean client)
    Sets the "gen:client" flag.
    void
    setConfig(File config)
    Sets the configuration file.
    void
    setCP(org.apache.tools.ant.types.Path classpath)
    Set the classpath to be used for this compilation.
    void
    setDebug(boolean debug)
    Sets the debug flag.
    void
    setDefine(boolean define)
    Set the value of the "define" flag.
    void
    setF(String features)
    Sets the values for the "f" flag.
    void
    setFeatures(String features)
    Sets the values for the "features" flag.
    void
    setFork(boolean fork)
    Sets the "fork" flag.
    void
    setGen(boolean client)
    Sets the "gen" flag.
    void
    setHTTPProxy(String HTTPProxy)
    Sets the String "httpproxy" flag.
    void
    setImport(boolean genImport)
    Sets the "import" flag.
    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
    setJvmargs(String jvmargs)
    Sets the Java VM options.
    void
    setKeep(boolean keep)
    Sets the "keep" flag.
    void
    setMapping(File mappingFile)
    Sets the "mapping" file.
    void
    setModel(File modelFile)
    Sets the "model" file.
    void
    setNonClassDir(File nonClassDir)
    Sets the directory for non-class generated files.
    void
    setOptimize(boolean optimize)
    Sets the optimize flag.
    void
    setProxyServer(URL proxyURL)
    Sets the URL for "httpproxy" flag.
    void
    setSecurity(File securityFile)
    Sets the "security" file.
    void
    setServer(boolean server)
    Sets the "gen:server" flag.
    void
    setSource(String version)
    Sets the -source
    void
    setSourceBase(File sourceBase)
    Sets the directory to place generated source java files.
    void
    setVerbose(boolean verbose)
    Sets the "verbose" flag.
    void
    setVersion(boolean version)
    Sets the "version" flag.
    void
    setXDebugModel(File xDebugModel)
    Sets the "Xdebugmodel" file.
    void
    setXPrintStackTrace(boolean xPrintStackTrace)
    Sets the "Xprintstacktrace" flag.
    void
    setXSerializable(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

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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
  • Constructor Details

    • Wscompile

      public Wscompile()
  • Method Details

    • 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.BuildException
      Called by the project to let the task do it's work
      Overrides:
      execute in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException