org.npsnet.xrti.utilities
Class CompileProxiesTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.npsnet.xrti.utilities.CompileProxiesTask

public class CompileProxiesTask
extends org.apache.tools.ant.Task

An Ant task that invokes the XRTI proxy compiler.

Author:
Andrzej Kapolka

Field Summary
private  ProxyCompiler proxyCompiler
          The proxy compiler instance.
 
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
CompileProxiesTask()
          Constructor.
 
Method Summary
 void execute()
          Invokes the proxy compiler.
 void setFdd(java.io.File federationDescriptionDocument)
          Sets the federation description document to base generated classes on.
 void setInteractionlistenername(java.lang.String interactionListenerName)
          Sets the (unprefixed) interaction listener interface name.
 void setPackageprefix(java.lang.String packagePrefix)
          Sets the package prefix for generated source files.
 void setProxyambassadorName(java.lang.String proxyAmbassadorName)
          Sets the (unprefixed) proxy ambassador class name.
 void setTargetdirectory(java.io.File targetDirectory)
          Sets the target directory in which to place generated source files.
 
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
 

Field Detail

proxyCompiler

private ProxyCompiler proxyCompiler
The proxy compiler instance.

Constructor Detail

CompileProxiesTask

public CompileProxiesTask()
Constructor.

Method Detail

setFdd

public void setFdd(java.io.File federationDescriptionDocument)
Sets the federation description document to base generated classes on.

Parameters:
federationDescriptionDocument - the federation description document

setTargetdirectory

public void setTargetdirectory(java.io.File targetDirectory)
Sets the target directory in which to place generated source files.

Parameters:
targetDirectory - the target directory

setPackageprefix

public void setPackageprefix(java.lang.String packagePrefix)
Sets the package prefix for generated source files.

Parameters:
packagePrefix - the package prefix for generated source files

setProxyambassadorName

public void setProxyambassadorName(java.lang.String proxyAmbassadorName)
Sets the (unprefixed) proxy ambassador class name.

Parameters:
proxyAmbassadorName - the proxy ambassador class name

setInteractionlistenername

public void setInteractionlistenername(java.lang.String interactionListenerName)
Sets the (unprefixed) interaction listener interface name.

Parameters:
interactionListenerName - the interaction listener interface name

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Invokes the proxy compiler.

Throws:
org.apache.tools.ant.BuildException - if an error occurs