An ANT org.
for using com..
Usage:
<gluegen src="[source C file]"
outputrootdir="[optional output root dir]"
includes="[optional directory pattern of include files to include]"
excludes="[optional directory pattern of include files to exclude]"
includeRefid="[optional FileSet or DirSet for include files]"
literalInclude="[optional comma separated list of literal include directories, avoiding limitations of FileSet / DirSet issues]"
emitter="[emitter class name]"
config="[configuration file]"
dumpCPP="[optional boolean]"
debug="[optional boolean]"
logLevel="[optional string]" />
| Modifier and Type | Field and Description |
|---|---|
| private String | configuration
The configuration file name. |
| private boolean | debug
The optional debug flag. |
| private boolean | dumpCPP
The optional dumpCPP flag. |
| private String | emitter
The name of the emitter class. |
| private static final String | GLUE_GEN
The |
| private final CommandlineJava | gluegenCommandline
The |
| private final FileSet | includeSet
The |
| private String | literalIncludes
Comma separated list of literal directories to include. |
| private String | logLevel
The optional logLevel. |
| private String | outputRootDir
The optional output root dir. |
| private final List | setOfIncludeSets
The set of include sets. |
| private String | sourceFile
The name of the source C file that is to be parsed. |
| private boolean | usedIncludeSet
Because a |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | addDirset(final DirSet
the dirset)DirSet to be addedAdd a nested |
| public Path | Returns: org.Add an optional classpath that defines the location of |
| public PatternSet. | |
| public PatternSet. | |
| public PatternSet. | |
| public PatternSet. | |
| public void | |
| private int | |
| private boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setExcludes(final String
the string containing the exclude patterns excludes)Set the set of exclude patterns. |
| public void | setIncludeRefid(final Reference reference)
Set a |
| public void | setIncludes(final String
the string containing the include patterns includes)Set the set of include patterns. |
| public void | setLiteralInclude(final String
the comma separated directories to include commaSeparatedIncludes)Set a literal include directories, separated with a comma. |
| public void | |
| public void | setOutputRootDir(final String
the optional output root dir outputRootDir)Set the output root dir (optional). |
| public void | |
| private void |
| configuration | back to summary |
|---|---|
| private String configuration The configuration file name. | |
| debug | back to summary |
|---|---|
| private boolean debug The optional debug flag. | |
| dumpCPP | back to summary |
|---|---|
| private boolean dumpCPP The optional dumpCPP flag. | |
| emitter | back to summary |
|---|---|
| private String emitter The name of the emitter class. | |
| GLUE_GEN | back to summary |
|---|---|
| private static final String GLUE_GEN The | |
| gluegenCommandline | back to summary |
|---|---|
| private final CommandlineJava gluegenCommandline The | |
| includeSet | back to summary |
|---|---|
| private final FileSet includeSet The | |
| literalIncludes | back to summary |
|---|---|
| private String literalIncludes Comma separated list of literal directories to include. This is to get around the
fact that neither | |
| logLevel | back to summary |
|---|---|
| private String logLevel The optional logLevel. | |
| outputRootDir | back to summary |
|---|---|
| private String outputRootDir The optional output root dir. | |
| setOfIncludeSets | back to summary |
|---|---|
| private final List<AbstractFileSet> setOfIncludeSets The set of include sets. This allows includes to be added in multiple fashions. | |
| sourceFile | back to summary |
|---|---|
| private String sourceFile The name of the source C file that is to be parsed. | |
| usedIncludeSet | back to summary |
|---|---|
| private boolean usedIncludeSet Because a | |
| GlueGenTask | back to summary |
|---|---|
| public GlueGenTask() Create and add the VM and classname to | |
| addAttributes | back to summary |
|---|---|
| private void addAttributes() throws BuildException Add all of the attributes to the command line. They have already been validated. | |
| addDirset | back to summary |
|---|---|
| public void addDirset(final DirSet dirset) Add a nested
| |
| createClasspath | back to summary |
|---|---|
| public Path createClasspath() Add an optional classpath that defines the location of | |
| createExclude | back to summary |
|---|---|
| public PatternSet. Add an include file to the list that is to be exluded. This is called by ANT for a nested element. | |
| createExcludesFile | back to summary |
|---|---|
| public PatternSet. Add an exclude file to the list. This is called by ANT for a nested element. | |
| createInclude | back to summary |
|---|---|
| public PatternSet. Add an include file to the list. This is called by ANT for a nested element. | |
| createIncludesFile | back to summary |
|---|---|
| public PatternSet. Add an include 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-
| |
| setConfig | back to summary |
|---|---|
| public void setConfig(final String configuration) Set the configuration file name. This is called by ANT.
| |
| setDebug | back to summary |
|---|---|
| public void setDebug(final boolean debug) Set the debug flag (optional). This is called by ANT. | |
| setDumpCPP | back to summary |
|---|---|
| public void setDumpCPP(final boolean dumpCPP) Set the dumpCPP flag (optional). This is called by ANT. | |
| setEmitter | back to summary |
|---|---|
| public void setEmitter(final String emitter) Set the emitter class name. This is called by ANT.
| |
| setExcludes | back to summary |
|---|---|
| public void setExcludes(final String excludes) Set the set of exclude patterns. Patterns may be separated by a comma or a space. This is called by ANT.
| |
| setIncludeRefid | back to summary |
|---|---|
| public void setIncludeRefid(final Reference reference) Set a
| |
| setIncludes | back to summary |
|---|---|
| public void setIncludes(final String includes) Set the set of include patterns. Patterns may be separated by a comma or a space. This is called by ANT.
| |
| setLiteralInclude | back to summary |
|---|---|
| public void setLiteralInclude(final String commaSeparatedIncludes) Set a literal include directories, separated with a comma. See the
| |
| setLogLevel | back to summary |
|---|---|
| public void setLogLevel(final String logLevel) Set the logLevel (optional). This is called by ANT. | |
| setOutputRootDir | back to summary |
|---|---|
| public void setOutputRootDir(final String outputRootDir) Set the output root dir (optional). This is called by ANT.
| |
| setSrc | back to summary |
|---|---|
| public void setSrc(final String sourceFile) Set the source C file that is to be parsed. This is called by ANT.
| |
| validateAttributes | back to summary |
|---|---|
| private void validateAttributes() throws BuildException Ensure that the user specified all required arguments.
| |