com.sun.jersey.api.wadl
Class WadlGeneratorTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.sun.jersey.api.wadl.WadlGeneratorTask
public class WadlGeneratorTask
- extends org.apache.tools.ant.Task
Ant task for generating WADL for root resource classes.
The task requires that the destfile attribute be set to the location
of the WADL file to be generated, the baseUri attribute set to the base
URI of the WADL resources, and the classpath be set.
The task will scan all classes in the classpath obtain the root resource
classes and then create a WADL document from those root resources.
- Author:
- [email protected]
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WadlGeneratorTask
public WadlGeneratorTask()
getClasspath
public org.apache.tools.ant.types.Path getClasspath()
setClasspath
public void setClasspath(org.apache.tools.ant.types.Path classpath)
createClasspath
public org.apache.tools.ant.types.Path createClasspath()
setClasspathRef
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
getDestfile
public java.io.File getDestfile()
setDestfile
public void setDestfile(java.io.File wadlFile)
getbaseUri
public java.lang.String getbaseUri()
setBaseUri
public void setBaseUri(java.lang.String baseUri)
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Overrides:
execute
in class org.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
Copyright © 2011 Oracle Corporation. All Rights Reserved.