org.apache.tools.ant.taskdefs.optional.ejb
Class BorlandGenerateClient

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.taskdefs.optional.ejb.BorlandGenerateClient

public class BorlandGenerateClient
extends Task

BorlandGenerateClient is dedicated to the Borland Application Server 4.5 This task generates the client jar using as input the ejb jar file. Two mode are available: java mode (default) and fork mode. With the fork mode, it is impossible to add classpath to the commmand line.

Author:
Benoit Moussaud

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
BorlandGenerateClient()
           
 
Method Summary
 Path createClasspath()
           
 void execute()
          Do the work.
protected  void executeFork()
          launch the generate client using system api
protected  void executeJava()
          launch the generate client using java api
 void setClasspath(Path classpath)
           
 void setClasspathRef(Reference r)
           
 void setClientjar(java.io.File clientjar)
           
 void setDebug(boolean debug)
           
 void setEjbjar(java.io.File ejbfile)
           
 void setMode(java.lang.String s)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
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

BorlandGenerateClient

public BorlandGenerateClient()
Method Detail

setMode

public void setMode(java.lang.String s)

setDebug

public void setDebug(boolean debug)

setEjbjar

public void setEjbjar(java.io.File ejbfile)

setClientjar

public void setClientjar(java.io.File clientjar)

setClasspath

public void setClasspath(Path classpath)

createClasspath

public Path createClasspath()

setClasspathRef

public void setClasspathRef(Reference r)

execute

public void execute()
             throws BuildException
Do the work. The work is actually done by creating a separate JVM to run a java task.
Overrides:
execute in class Task
Throws:
BuildException - if someting goes wrong with the build

executeJava

protected void executeJava()
                    throws BuildException
launch the generate client using java api

executeFork

protected void executeFork()
                    throws BuildException
launch the generate client using system api


Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.