com.i3sp.ant
Class JavaH

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--com.i3sp.ant.JavaH

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

Ant task for executing javah.

This task will run javah on the given java classes. The user must

Ant task for executing javah. This task will run javah on the given java classes.

Parameters

The Task has the following attributes:
Attribute Description Required
destdir Where to place the generated files. Yes
jni (boolean)Set the -jni flag on javah. No
classpath The classpath to pass to javah. No

Optionally, the user can pass the nested attribute classpath or classpathref (A reference).

The user must give 1 or more class elements.

Example

 <javah destdir="${basedir}/gensrc" jni="true" classpath="${basedir}/classes">
   <class value="com.i3sp.util.logging.SyslogForwarder" />
 </javah>
 

Version:
$Revision: 1.2 $ $Date: 2002/04/22 14:46:13 $
Author:
Matthew Watson

Constructor Summary
JavaH()
           
 
Method Summary
 org.apache.tools.ant.types.Commandline.Argument createClass()
          Create a nested class element
 org.apache.tools.ant.types.Path createClasspath()
          Maybe creates a nested classpath element.
 void execute()
           
 void setClasspath(org.apache.tools.ant.types.Path cp)
          Set the classpath to be used for this compilation
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
          Adds a reference to a CLASSPATH defined elsewhere
 void setDestdir(java.io.File destDir)
          Set the destination directory into which the JSP source files should be compiled
 void setJni(boolean jni)
          Set the jni flag to javah
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaH

public JavaH()
Method Detail

setDestdir

public void setDestdir(java.io.File destDir)
Set the destination directory into which the JSP source files should be compiled

setJni

public void setJni(boolean jni)
Set the jni flag to javah

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path cp)
Set the classpath to be used for this compilation

createClasspath

public org.apache.tools.ant.types.Path createClasspath()
Maybe creates a nested classpath element.

setClasspathRef

public void setClasspathRef(org.apache.tools.ant.types.Reference r)
Adds a reference to a CLASSPATH defined elsewhere

createClass

public org.apache.tools.ant.types.Commandline.Argument createClass()
Create a nested class element

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task


Copyright © 2001 i3SP Pty. Ltd. All Rights Reserved.