org.objectweb.jonas.ant
Class GenICTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.objectweb.jonas.ant.BootstrapTask
              extended by org.objectweb.jonas.ant.GenICTask

public class GenICTask
extends BootstrapTask

GenIC Task. That's basically an Ant Task wrapper around GenIC.

Author:
Guillaume Sauthier

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
GenICTask()
           
 
Method Summary
 org.apache.tools.ant.types.Path createClasspath()
          Adds to the classpath the class of the project
 org.apache.tools.ant.types.FileSet createFileSet()
           
 void execute()
          Execute the WsGen Ant Task.
 void setAdditionalargs(java.lang.String added)
          Set additional arguments for GenIC command line
 void setInvokecmd(boolean inv)
          Use InvokeCmd option on/off
 void setJavac(java.lang.String j)
          Set the javac command line to be used
 void setJavacopts(java.lang.String opts)
          Set the options to be given to javac
 void setJvmdebug(boolean d)
          Set debug mode on/off.
 void setKeepgenerated(boolean k)
          Keep already generated files
 void setNocompil(boolean noc)
          Do not compile generated java files
 void setNoFastRMIC(boolean value)
          Specifies which RMIC compiler to use: the built-in fast one or the slower external one.
 void setProtocols(java.lang.String p)
          Set the set of protocols for the generation
 void setRmicopts(java.lang.String opts)
          Set the optios to be passed to the RMI compiler
 void setValidation(boolean v)
          Validate XML descriptors
 void setVerbose(boolean v)
          Set verbose mode on/off
 
Methods inherited from class org.objectweb.jonas.ant.BootstrapTask
getBootstraptask, getCatalinaHome, getDomainName, getJettyHome, getJonasRoot, getServerName, getTaskName, setCatalinaHome, setClasspath, setDomainName, setJettyHome, setJonasbase, setJonasRoot, setJvmopts, setServerName, setTaskName
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, 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
 

Constructor Detail

GenICTask

public GenICTask()
Method Detail

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Description copied from class: BootstrapTask
Adds to the classpath the class of the project

Overrides:
createClasspath in class BootstrapTask
Returns:
Returns an empty Path for inner element classpath

createFileSet

public org.apache.tools.ant.types.FileSet createFileSet()
Returns:
Returns an empty FileSet

setAdditionalargs

public void setAdditionalargs(java.lang.String added)
Set additional arguments for GenIC command line

Parameters:
added - additional args

setVerbose

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

Parameters:
v - boolean

setJvmdebug

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

Parameters:
d - boolean

setInvokecmd

public void setInvokecmd(boolean inv)
Use InvokeCmd option on/off

Parameters:
inv - boolean

setNocompil

public void setNocompil(boolean noc)
Do not compile generated java files

Parameters:
noc - on/off

setRmicopts

public void setRmicopts(java.lang.String opts)
Set the optios to be passed to the RMI compiler

Parameters:
opts - list of options

setValidation

public void setValidation(boolean v)
Validate XML descriptors

Parameters:
v - on/off

setJavac

public void setJavac(java.lang.String j)
Set the javac command line to be used

Parameters:
j - path to javac executable

setJavacopts

public void setJavacopts(java.lang.String opts)
Set the options to be given to javac

Parameters:
opts - options

setKeepgenerated

public void setKeepgenerated(boolean k)
Keep already generated files

Parameters:
k - on/off

setNoFastRMIC

public void setNoFastRMIC(boolean value)
Specifies which RMIC compiler to use: the built-in fast one or the slower external one.

Parameters:
value - if true, use the external RMIC compiler

setProtocols

public void setProtocols(java.lang.String p)
Set the set of protocols for the generation

Parameters:
p - protocol list (comma separated)

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 something goes wrong