An ANT org.
for using com..
Usage:
<staticglgen package="[generated files package]"
headers="[file pattern of GL headers]"
outputdir="[directory to output the generated files]" />
| Modifier and Type | Field and Description |
|---|---|
| private static final String | GL_GEN
The |
| private final CommandlineJava | glgenCommandline
The |
| private final FileSet | headerSet
The |
| private String | outputDirectory
The output directory. |
| private String | packageName
The package name for the generated files. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Path | Returns: org.Add an optional classpath that defines the location of |
| public PatternSet. | |
| public PatternSet. | |
| public void | |
| private int | |
| private boolean | |
| public void | setHeaders(final String
the string containing the header patterns headers)Set the set of header patterns. |
| public void | |
| public void | setPackage(final String
the name of the package for the generated files packageName)Set the package name for the generated files. |
| private void |
| GL_GEN | back to summary |
|---|---|
| private static final String GL_GEN The | |
| glgenCommandline | back to summary |
|---|---|
| private final CommandlineJava glgenCommandline The | |
| headerSet | back to summary |
|---|---|
| private final FileSet headerSet The | |
| outputDirectory | back to summary |
|---|---|
| private String outputDirectory The output directory. | |
| packageName | back to summary |
|---|---|
| private String packageName The package name for the generated files. | |
| StaticGLGenTask | back to summary |
|---|---|
| public StaticGLGenTask() Create and add the VM and classname to | |
| addAttributes | back to summary |
|---|---|
| private void addAttributes() Add all of the attributes to the command line. They have already been validated. | |
| createClasspath | back to summary |
|---|---|
| public Path createClasspath() Add an optional classpath that defines the location of | |
| createHeader | back to summary |
|---|---|
| public PatternSet. Add a header file to the list. This is called by ANT for a nested element. | |
| createHeadersFile | back to summary |
|---|---|
| public PatternSet. Add a header file to the list. This is called by ANT for a nested element. | |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Run the task. This involves validating the set attributes, creating the command line to be executed and finally executing the command.
| |
| execute | back to summary |
|---|---|
| private int execute(final String[] command) throws BuildException Execute | |
| isValid | back to summary |
|---|---|
| private boolean isValid(final String string) Is the specified string valid? A valid string is non-
| |
| setHeaders | back to summary |
|---|---|
| public void setHeaders(final String headers) Set the set of header patterns. Patterns may be separated by a comma or a space. This is called by ANT.
| |
| setOutputDir | back to summary |
|---|---|
| public void setOutputDir(final String directory) Set the output directory. This is called by ANT.
| |
| setPackage | back to summary |
|---|---|
| public void setPackage(final String packageName) Set the package name for the generated files. This is called by ANT.
| |
| validateAttributes | back to summary |
|---|---|
| private void validateAttributes() throws BuildException Ensure that the user specified all required arguments.
| |