org.ow2.jonas.ant
Class WsGenTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.ow2.jonas.ant.WsGenTask
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer
Direct Known Subclasses:
WsGenTask

public class WsGenTask
extends org.apache.tools.ant.taskdefs.MatchingTask

Launch WsGen from Ant.

Author:
Guillaume Sauthier

Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
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
 
Constructor Summary
WsGenTask()
           
 
Method Summary
 void execute()
          Execute the WsGen Ant Task.
 void setDebug(boolean b)
          Set WSDL2Java debug mode to on/off.
 void setDestdir(File d)
          Set the output Directory.
 void setJavac(String j)
          Set the javac command line.
 void setJavacopts(String opts)
          Set Java Compiler Options.
 void setJonasbase(File jb)
          Set the JONAS_BASE to use.
 void setJonasroot(File jr)
          Set the JONAS_ROOT to use.
 void setJvmdebug(boolean d)
          Set debug mode on/off.
 void setKeepgen(boolean k)
          Set keep Generated mode to on/off.
 void setNoconfig(boolean c)
          Set noConfig mode to on/off.
 void setSrcdir(File s)
          Set where source jar files are located.
 void setValidation(boolean v)
          Set XML Validation on/off.
 void setVerbose(boolean v)
          Set WSDL2Java verbose mode to on/off.
 
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
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsGenTask

public WsGenTask()
Method Detail

setDestdir

public void setDestdir(File d)
Set the output Directory.

Parameters:
d - output dir

setSrcdir

public void setSrcdir(File s)
Set where source jar files are located.

Parameters:
s - sources dir

setValidation

public void setValidation(boolean v)
Set XML Validation on/off.

Parameters:
v - on/off

setJavac

public void setJavac(String j)
Set the javac command line.

Parameters:
j - javac to use

setJavacopts

public void setJavacopts(String opts)
Set Java Compiler Options.

Parameters:
opts - Options

setKeepgen

public void setKeepgen(boolean k)
Set keep Generated mode to on/off.

Parameters:
k - on/off

setNoconfig

public void setNoconfig(boolean c)
Set noConfig mode to on/off.

Parameters:
c - on/off

setVerbose

public void setVerbose(boolean v)
Set WSDL2Java verbose mode to on/off.

Parameters:
v - on/off

setDebug

public void setDebug(boolean b)
Set WSDL2Java debug mode to on/off.

Parameters:
b - on/off

setJvmdebug

public void setJvmdebug(boolean d)
Set debug mode on/off. Used only by developers that wants to Debug WsGen.

Parameters:
d - boolean

setJonasroot

public void setJonasroot(File jr)
Set the JONAS_ROOT to use.

Parameters:
jr - JONAS_ROOT

setJonasbase

public void setJonasbase(File jb)
Set the JONAS_BASE to use.

Parameters:
jb - JONAS_BASE

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute the WsGen Ant Task.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException - if wsgen cannot finish


Copyright © 2010 OW2 Consortium. All Rights Reserved.