org.apache.tools.ant.taskdefs.optional
public class NetRexxC extends MatchingTask
When this task executes, it will recursively scan the srcdir looking for NetRexx source files to compile. This task makes its compile decision based on timestamp.
Before files are compiled they and any other file in the srcdir will be copied to the destdir allowing support files to be located properly in the classpath. The reason for copying the source files before the compile is that NetRexxC has only two destinations for classfiles:
Nested Class Summary | |
---|---|
static class | NetRexxC.TraceAttr
Enumerated class corresponding to the trace attribute. |
static class | NetRexxC.VerboseAttr
Enumerated class corresponding to the verbose attribute. |
Method Summary | |
---|---|
void | execute()
Executes the task - performs the actual compiler call. |
void | init()
init-Method sets defaults from Properties. |
void | setBinary(boolean binary)
Set whether literals are treated as binary, rather than NetRexx types. |
void | setClasspath(String classpath)
Set the classpath used for NetRexx compilation. |
void | setComments(boolean comments)
Set whether comments are passed through to the generated java source.
|
void | setCompact(boolean compact)
Set whether error messages come out in compact or verbose format. |
void | setCompile(boolean compile)
Set whether the NetRexx compiler should compile the generated java code
Valid true values are "on" or "true". |
void | setConsole(boolean console)
Set whether or not messages should be displayed on the 'console' Valid
true values are "on" or "true". |
void | setCrossref(boolean crossref)
Whether variable cross references are generated. |
void | setDecimal(boolean decimal)
Set whether decimal arithmetic should be used for the netrexx code.
|
void | setDestDir(File destDirName)
Set the destination directory into which the NetRexx source files
should be copied and then compiled. |
void | setDiag(boolean diag)
Whether diagnostic information about the compile is generated |
void | setExplicit(boolean explicit)
Sets whether variables must be declared explicitly before use. |
void | setFormat(boolean format)
Whether the generated java code is formatted nicely or left to match
NetRexx line numbers for call stack debugging. |
void | setJava(boolean java)
Whether the generated java code is produced Valid true values are "on"
or "true". |
void | setKeep(boolean keep)
Sets whether the generated java source file should be kept after
compilation. |
void | setLogo(boolean logo)
Whether the compiler text logo is displayed when compiling. |
void | setReplace(boolean replace)
Whether the generated .java file should be replaced when compiling
Valid true values are "on" or "true". |
void | setSavelog(boolean savelog)
Sets whether the compiler messages will be written to NetRexxC.log as
well as to the console Valid true values are "on" or "true". |
void | setSourcedir(boolean sourcedir)
Tells the NetRexx compiler to store the class files in the same
directory as the source files. |
void | setSrcDir(File srcDirName)
Set the source dir to find the source Java files. |
void | setStrictargs(boolean strictargs)
Tells the NetRexx compiler that method calls always need parentheses,
even if no arguments are needed, e.g. |
void | setStrictassign(boolean strictassign)
Tells the NetRexx compile that assignments must match exactly on type. |
void | setStrictcase(boolean strictcase)
Specifies whether the NetRexx compiler should be case sensitive or not. |
void | setStrictimport(boolean strictimport)
Sets whether classes need to be imported explicitly using an import
statement. |
void | setStrictprops(boolean strictprops)
Sets whether local properties need to be qualified explicitly using
this Valid true values are "on" or "true". |
void | setStrictsignal(boolean strictsignal)
Whether the compiler should force catching of exceptions by explicitly
named types. |
void | setSuppressDeprecation(boolean suppressDeprecation)
Tells whether we should filter out any deprecation-messages
of the compiler out. |
void | setSuppressExceptionNotSignalled(boolean suppressExceptionNotSignalled)
Whether the task should suppress the "FooException is in SIGNALS list
but is not signalled within the method", which is sometimes rather
useless. |
void | setSuppressMethodArgumentNotUsed(boolean suppressMethodArgumentNotUsed)
Whether the task should suppress the "Method argument is not used" in
strictargs-Mode, which can not be suppressed by the compiler itself.
|
void | setSuppressPrivatePropertyNotUsed(boolean suppressPrivatePropertyNotUsed)
Whether the task should suppress the "Private property is defined but
not used" in strictargs-Mode, which can be quite annoying while
developing. |
void | setSuppressVariableNotUsed(boolean suppressVariableNotUsed)
Whether the task should suppress the "Variable is set but not used" in
strictargs-Mode. |
void | setSymbols(boolean symbols)
Sets whether debug symbols should be generated into the class file
Valid true values are "on" or "true". |
void | setTime(boolean time)
Asks the NetRexx compiler to print compilation times to the console
Valid true values are "on" or "true". |
void | setTrace(NetRexxC.TraceAttr trace)
Turns on or off tracing and directs the resultant trace output Valid
values are: "trace", "trace1", "trace2" and "notrace". |
void | setTrace(String trace)
Turns on or off tracing and directs the resultant trace output Valid
values are: "trace", "trace1", "trace2" and "notrace". |
void | setUtf8(boolean utf8)
Tells the NetRexx compiler that the source is in UTF8 Valid true values
are "on" or "true". |
void | setVerbose(NetRexxC.VerboseAttr verbose)
Whether lots of warnings and error messages should be generated |
void | setVerbose(String verbose)
Whether lots of warnings and error messages should be generated |
Throws: BuildException on error.
Parameters: binary a boolean
value.
Parameters: classpath the classpath to use.
Parameters: comments a boolean
value.
Parameters: compact a boolean
value.
Parameters: compile a boolean
value.
Parameters: console a boolean
value.
Parameters: crossref a boolean
value.
Parameters: decimal a boolean
value.
Parameters: destDirName the destination directory.
Parameters: diag a boolean
value.
Parameters: explicit a boolean
value.
Parameters: format a boolean
value.
Parameters: java a boolean
value.
Parameters: keep a boolean
value.
Parameters: logo a boolean
value.
Parameters: replace a boolean
value.
Parameters: savelog a boolean
value.
Parameters: sourcedir a boolean
value.
Parameters: srcDirName the source directory.
aStringVar.getBytes
vs. aStringVar.getBytes()
Valid true values are "on" or
"true". Anything else sets the flag to false. The default value is
false.Parameters: strictargs a boolean
value.
Parameters: strictassign a boolean
value.
Parameters: strictcase a boolean
value.
import
statement. By default the NetRexx compiler will import certain packages
automatically Valid true values are "on" or "true". Anything else sets
the flag to false. The default value is false.Parameters: strictimport a boolean
value.
this
Valid true values are "on" or "true". Anything else
sets the flag to false. The default value is false.Parameters: strictprops a boolean
value.
Parameters: strictsignal a boolean
value.
Parameters: suppressDeprecation a boolean
value.
Parameters: suppressExceptionNotSignalled a boolean
value.
Parameters: suppressMethodArgumentNotUsed a boolean
value.
Parameters: suppressPrivatePropertyNotUsed a boolean
value.
Parameters: suppressVariableNotUsed a boolean
value.
Parameters: symbols a boolean
value.
Parameters: time a boolean
value.
Parameters: trace the value to set.
Parameters: trace the value to set.
Parameters: utf8 a boolean
value.
Parameters: verbose the value to set - verbose<level> or noverbose.
Parameters: verbose the value to set - verbose<level> or noverbose.