com.jogamp.gluegen.opengl.ant
Class StaticGLGenTask

java.lang.Object
  extended by Task
      extended by com.jogamp.gluegen.opengl.ant.StaticGLGenTask

public class StaticGLGenTask
extends Task

An ANT org.apache.tools.ant.Task for using BuildStaticGLInfo.

Usage:

    <staticglgen package="[generated files package]" 
                    headers="[file pattern of GL headers]"
                    outputdir="[directory to output the generated files]" />
 

Author:
Rob Grzywinski rgrzywinski@yahoo.com

Constructor Summary
StaticGLGenTask()
          Create and add the VM and classname to org.apache.tools.ant.types.CommandlineJava.
 
Method Summary
 Path createClasspath()
          Add an optional classpath that defines the location of BuildStaticGLInfo and BuildStaticGLInfo's dependencies.
 PatternSet.NameEntry createHeader()
          Add a header file to the list.
 PatternSet.NameEntry createHeadersFile()
          Add a header file to the list.
 void execute()
          Run the task.
 void setHeaders(String headers)
          Set the set of header patterns.
 void setOutputDir(String directory)
          Set the output directory.
 void setPackage(String packageName)
          Set the package name for the generated files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticGLGenTask

public StaticGLGenTask()

Create and add the VM and classname to org.apache.tools.ant.types.CommandlineJava.

Method Detail

setPackage

public void setPackage(String packageName)

Set the package name for the generated files. This is called by ANT.

Parameters:
packageName - the name of the package for the generated files

setOutputDir

public void setOutputDir(String directory)

Set the output directory. This is called by ANT.

Parameters:
directory - the output directory

createHeader

public PatternSet.NameEntry createHeader()

Add a header file to the list. This is called by ANT for a nested element.

Returns:
org.apache.tools.ant.types.PatternSet.NameEntry

createHeadersFile

public PatternSet.NameEntry createHeadersFile()

Add a header file to the list. This is called by ANT for a nested element.

Returns:
org.apache.tools.ant.types.PatternSet.NameEntry

setHeaders

public void setHeaders(String headers)

Set the set of header patterns. Patterns may be separated by a comma or a space. This is called by ANT.

Parameters:
headers - the string containing the header patterns

createClasspath

public Path createClasspath()

Add an optional classpath that defines the location of BuildStaticGLInfo and BuildStaticGLInfo's dependencies.


execute

public void execute()
             throws BuildException

Run the task. This involves validating the set attributes, creating the command line to be executed and finally executing the command.

Throws:
BuildException
See Also:
org.apache.tools.ant.Task#execute()


Copyright 2010 JogAmp Community.