org.ow2.jonas.ant
Class GenICTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.ant.BootstrapTask
              extended by org.ow2.jonas.ant.GenICTask
Direct Known Subclasses:
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(String added)
          Set additional arguments for GenIC command line.
 void setInvokecmd(boolean inv)
          Use InvokeCmd option on/off.
 void setJavac(String j)
          Set the javac command line to be used.
 void setJavacopts(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(String p)
          Set the set of protocols for the generation.
 void setRmicopts(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.ow2.jonas.ant.BootstrapTask
getBootstraptask, getBootstraptask, getDomainName, getJonasRoot, getMaven2Repository, 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(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 developers 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(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(String j)
Set the javac command line to be used.

Parameters:
j - path to javac executable

setJavacopts

public void setJavacopts(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(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


Copyright © 2010 OW2 Consortium. All Rights Reserved.