Browse Source

javadoc

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@472658 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
9e81bf50b8
3 changed files with 102 additions and 18 deletions
  1. +24
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/Cab.java
  2. +6
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/Javah.java
  3. +72
    -15
      src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java

+ 24
- 0
src/main/org/apache/tools/ant/taskdefs/optional/Cab.java View File

@@ -52,12 +52,15 @@ public class Cab extends MatchingTask {
private boolean doVerbose = false; private boolean doVerbose = false;
private String cmdOptions; private String cmdOptions;


// CheckStyle:VisibilityModifier OFF - bc
protected String archiveType = "cab"; protected String archiveType = "cab";
// CheckStyle:VisibilityModifier ON


private static final FileUtils FILE_UTILS = FileUtils.getFileUtils(); private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();


/** /**
* The name/location of where to create the .cab file. * The name/location of where to create the .cab file.
* @param cabFile the location of the cab file.
*/ */
public void setCabfile(File cabFile) { public void setCabfile(File cabFile) {
this.cabFile = cabFile; this.cabFile = cabFile;
@@ -65,6 +68,7 @@ public class Cab extends MatchingTask {


/** /**
* Base directory to look in for files to CAB. * Base directory to look in for files to CAB.
* @param baseDir base directory for files to cab.
*/ */
public void setBasedir(File baseDir) { public void setBasedir(File baseDir) {
this.baseDir = baseDir; this.baseDir = baseDir;
@@ -72,6 +76,7 @@ public class Cab extends MatchingTask {


/** /**
* If true, compress the files otherwise only store them. * If true, compress the files otherwise only store them.
* @param compress a <code>boolean</code> value.
*/ */
public void setCompress(boolean compress) { public void setCompress(boolean compress) {
doCompress = compress; doCompress = compress;
@@ -79,6 +84,7 @@ public class Cab extends MatchingTask {


/** /**
* If true, display cabarc output. * If true, display cabarc output.
* @param verbose a <code>boolean</code> value.
*/ */
public void setVerbose(boolean verbose) { public void setVerbose(boolean verbose) {
doVerbose = verbose; doVerbose = verbose;
@@ -86,6 +92,7 @@ public class Cab extends MatchingTask {


/** /**
* Sets additional cabarc options that are not supported directly. * Sets additional cabarc options that are not supported directly.
* @param options cabarc command line options.
*/ */
public void setOptions(String options) { public void setOptions(String options) {
cmdOptions = options; cmdOptions = options;
@@ -93,6 +100,7 @@ public class Cab extends MatchingTask {


/** /**
* Adds a set of files to archive. * Adds a set of files to archive.
* @param set a set of files to archive.
*/ */
public void addFileset(FileSet set) { public void addFileset(FileSet set) {
if (filesets.size() > 0) { if (filesets.size() > 0) {
@@ -106,6 +114,10 @@ public class Cab extends MatchingTask {
* task-cancelling exceptions". It feels too much like programming * task-cancelling exceptions". It feels too much like programming
* for side-effects to me... * for side-effects to me...
*/ */
/**
* Check if the attributes and nested elements are correct.
* @throws BuildException on error.
*/
protected void checkConfiguration() throws BuildException { protected void checkConfiguration() throws BuildException {
if (baseDir == null && filesets.size() == 0) { if (baseDir == null && filesets.size() == 0) {
throw new BuildException("basedir attribute or one " throw new BuildException("basedir attribute or one "
@@ -128,6 +140,7 @@ public class Cab extends MatchingTask {
/** /**
* Create a new exec delegate. The delegate task is populated so that * Create a new exec delegate. The delegate task is populated so that
* it appears in the logs to be the same task as this one. * it appears in the logs to be the same task as this one.
* @throws BuildException on error.
*/ */
protected ExecTask createExec() throws BuildException { protected ExecTask createExec() throws BuildException {
ExecTask exec = new ExecTask(this); ExecTask exec = new ExecTask(this);
@@ -136,6 +149,7 @@ public class Cab extends MatchingTask {


/** /**
* Check to see if the target is up to date with respect to input files. * Check to see if the target is up to date with respect to input files.
* @param files the list of files to check.
* @return true if the cab file is newer than its dependents. * @return true if the cab file is newer than its dependents.
*/ */
protected boolean isUpToDate(Vector files) { protected boolean isUpToDate(Vector files) {
@@ -156,6 +170,9 @@ public class Cab extends MatchingTask {
* *
* <p>This method expects to only be called on Windows and thus * <p>This method expects to only be called on Windows and thus
* quotes the file names.</p> * quotes the file names.</p>
* @param files the list of files to use.
* @param the list file created.
* @throws IOException if there is an error.
*/ */
protected File createListFile(Vector files) protected File createListFile(Vector files)
throws IOException { throws IOException {
@@ -175,6 +192,8 @@ public class Cab extends MatchingTask {


/** /**
* Append all files found by a directory scanner to a vector. * Append all files found by a directory scanner to a vector.
* @param files the vector to append the files to.
* @param ds the scanner to get the files from.
*/ */
protected void appendFiles(Vector files, DirectoryScanner ds) { protected void appendFiles(Vector files, DirectoryScanner ds) {
String[] dsfiles = ds.getIncludedFiles(); String[] dsfiles = ds.getIncludedFiles();
@@ -188,6 +207,7 @@ public class Cab extends MatchingTask {
* Get the complete list of files to be included in the cab. Filenames * Get the complete list of files to be included in the cab. Filenames
* are gathered from the fileset if it has been added, otherwise from the * are gathered from the fileset if it has been added, otherwise from the
* traditional include parameters. * traditional include parameters.
* @return the list of files.
*/ */
protected Vector getFileList() throws BuildException { protected Vector getFileList() throws BuildException {
Vector files = new Vector(); Vector files = new Vector();
@@ -204,6 +224,10 @@ public class Cab extends MatchingTask {
return files; return files;
} }


/**
* execute this task.
* @throws BuildException on error.
*/
public void execute() throws BuildException { public void execute() throws BuildException {


checkConfiguration(); checkConfiguration();


+ 6
- 3
src/main/org/apache/tools/ant/taskdefs/optional/Javah.java View File

@@ -81,6 +81,9 @@ public class Javah extends Task {
private static String lSep = System.getProperty("line.separator"); private static String lSep = System.getProperty("line.separator");
private FacadeTaskHelper facade = null; private FacadeTaskHelper facade = null;


/**
* No arg constructor.
*/
public Javah() { public Javah() {
facade = new FacadeTaskHelper(JavahAdapterFactory.getDefault()); facade = new FacadeTaskHelper(JavahAdapterFactory.getDefault());
} }
@@ -133,7 +136,7 @@ public class Javah extends Task {


/** /**
* Names of the classes to process. * Names of the classes to process.
*
* @return the array of classes.
* @since Ant 1.6.3 * @since Ant 1.6.3
*/ */
public String[] getClasses() { public String[] getClasses() {
@@ -164,7 +167,7 @@ public class Javah extends Task {


/** /**
* The destination directory, if any. * The destination directory, if any.
*
* @return the destination directory.
* @since Ant 1.6.3 * @since Ant 1.6.3
*/ */
public File getDestdir() { public File getDestdir() {
@@ -205,7 +208,7 @@ public class Javah extends Task {


/** /**
* The classpath to use. * The classpath to use.
*
* @return the classpath.
* @since Ant 1.6.3 * @since Ant 1.6.3
*/ */
public Path getClasspath() { public Path getClasspath() {


+ 72
- 15
src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java View File

@@ -142,14 +142,18 @@ public class NetRexxC extends MatchingTask {
private Hashtable filecopyList = new Hashtable(); private Hashtable filecopyList = new Hashtable();


/** /**
* Set whether literals are treated as binary, rather than NetRexx types
* Set whether literals are treated as binary, rather than NetRexx types.
* @param binary a <code>boolean</code> value.
*/ */
public void setBinary(boolean binary) { public void setBinary(boolean binary) {
this.binary = binary; this.binary = binary;
} }




/** Set the classpath used for NetRexx compilation */
/**
* Set the classpath used for NetRexx compilation.
* @param classpath the classpath to use.
*/
public void setClasspath(String classpath) { public void setClasspath(String classpath) {
this.classpath = classpath; this.classpath = classpath;
} }
@@ -159,6 +163,7 @@ public class NetRexxC extends MatchingTask {
* Set whether comments are passed through to the generated java source. * Set whether comments are passed through to the generated java source.
* Valid true values are "on" or "true". Anything else sets the flag to * Valid true values are "on" or "true". Anything else sets the flag to
* false. The default value is false * false. The default value is false
* @param comments a <code>boolean</code> value.
*/ */
public void setComments(boolean comments) { public void setComments(boolean comments) {
this.comments = comments; this.comments = comments;
@@ -169,6 +174,7 @@ public class NetRexxC extends MatchingTask {
* Set whether error messages come out in compact or verbose format. Valid * Set whether error messages come out in compact or verbose format. Valid
* true values are "on" or "true". Anything else sets the flag to false. * true values are "on" or "true". Anything else sets the flag to false.
* The default value is false * The default value is false
* @param compact a <code>boolean</code> value.
*/ */
public void setCompact(boolean compact) { public void setCompact(boolean compact) {
this.compact = compact; this.compact = compact;
@@ -180,6 +186,7 @@ public class NetRexxC extends MatchingTask {
* Valid true values are "on" or "true". Anything else sets the flag to * Valid true values are "on" or "true". Anything else sets the flag to
* false. The default value is true. Setting this flag to false, will * false. The default value is true. Setting this flag to false, will
* automatically set the keep flag to true. * automatically set the keep flag to true.
* @param compile a <code>boolean</code> value.
*/ */
public void setCompile(boolean compile) { public void setCompile(boolean compile) {
this.compile = compile; this.compile = compile;
@@ -193,13 +200,17 @@ public class NetRexxC extends MatchingTask {
* Set whether or not messages should be displayed on the 'console' Valid * Set whether or not messages should be displayed on the 'console' Valid
* true values are "on" or "true". Anything else sets the flag to false. * true values are "on" or "true". Anything else sets the flag to false.
* The default value is true. * The default value is true.
* @param console a <code>boolean</code> value.
*/ */
public void setConsole(boolean console) { public void setConsole(boolean console) {
this.console = console; this.console = console;
} }




/** Whether variable cross references are generated */
/**
* Whether variable cross references are generated.
* @param crossref a <code>boolean</code> value.
*/
public void setCrossref(boolean crossref) { public void setCrossref(boolean crossref) {
this.crossref = crossref; this.crossref = crossref;
} }
@@ -210,6 +221,7 @@ public class NetRexxC extends MatchingTask {
* Binary arithmetic is used when this flag is turned off. Valid true * Binary arithmetic is used when this flag is turned off. Valid true
* values are "on" or "true". Anything else sets the flag to false. The * values are "on" or "true". Anything else sets the flag to false. The
* default value is true. * default value is true.
* @param decimal a <code>boolean</code> value.
*/ */
public void setDecimal(boolean decimal) { public void setDecimal(boolean decimal) {
this.decimal = decimal; this.decimal = decimal;
@@ -219,6 +231,7 @@ public class NetRexxC extends MatchingTask {
/** /**
* Set the destination directory into which the NetRexx source files * Set the destination directory into which the NetRexx source files
* should be copied and then compiled. * should be copied and then compiled.
* @param destDirName the destination directory.
*/ */
public void setDestDir(File destDirName) { public void setDestDir(File destDirName) {
destDir = destDirName; destDir = destDirName;
@@ -227,6 +240,7 @@ public class NetRexxC extends MatchingTask {


/** /**
* Whether diagnostic information about the compile is generated * Whether diagnostic information about the compile is generated
* @param diag a <code>boolean</code> value.
*/ */
public void setDiag(boolean diag) { public void setDiag(boolean diag) {
this.diag = diag; this.diag = diag;
@@ -237,6 +251,7 @@ public class NetRexxC extends MatchingTask {
* Sets whether variables must be declared explicitly before use. Valid * Sets whether variables must be declared explicitly before use. Valid
* true values are "on" or "true". Anything else sets the flag to false. * true values are "on" or "true". Anything else sets the flag to false.
* The default value is false. * The default value is false.
* @param explicit a <code>boolean</code> value.
*/ */
public void setExplicit(boolean explicit) { public void setExplicit(boolean explicit) {
this.explicit = explicit; this.explicit = explicit;
@@ -245,7 +260,8 @@ public class NetRexxC extends MatchingTask {


/** /**
* Whether the generated java code is formatted nicely or left to match * Whether the generated java code is formatted nicely or left to match
* NetRexx line numbers for call stack debugging
* NetRexx line numbers for call stack debugging.
* @param format a <code>boolean</code> value.
*/ */
public void setFormat(boolean format) { public void setFormat(boolean format) {
this.format = format; this.format = format;
@@ -256,6 +272,7 @@ public class NetRexxC extends MatchingTask {
* Whether the generated java code is produced Valid true values are "on" * Whether the generated java code is produced Valid true values are "on"
* or "true". Anything else sets the flag to false. The default value is * or "true". Anything else sets the flag to false. The default value is
* false. * false.
* @param java a <code>boolean</code> value.
*/ */
public void setJava(boolean java) { public void setJava(boolean java) {
log("The attribute java is currently unused.", Project.MSG_WARN); log("The attribute java is currently unused.", Project.MSG_WARN);
@@ -267,13 +284,17 @@ public class NetRexxC extends MatchingTask {
* compilation. The generated files will have an extension of .java.keep, * compilation. The generated files will have an extension of .java.keep,
* <b>not</b> .java Valid true values are "on" or "true". Anything else * <b>not</b> .java Valid true values are "on" or "true". Anything else
* sets the flag to false. The default value is false. * sets the flag to false. The default value is false.
* @param keep a <code>boolean</code> value.
*/ */
public void setKeep(boolean keep) { public void setKeep(boolean keep) {
this.keep = keep; this.keep = keep;
} }




/** Whether the compiler text logo is displayed when compiling */
/**
* Whether the compiler text logo is displayed when compiling.
* @param logo a <code>boolean</code> value.
*/
public void setLogo(boolean logo) { public void setLogo(boolean logo) {
this.logo = logo; this.logo = logo;
} }
@@ -283,6 +304,7 @@ public class NetRexxC extends MatchingTask {
* Whether the generated .java file should be replaced when compiling * Whether the generated .java file should be replaced when compiling
* Valid true values are "on" or "true". Anything else sets the flag to * Valid true values are "on" or "true". Anything else sets the flag to
* false. The default value is false. * false. The default value is false.
* @param replace a <code>boolean</code> value.
*/ */
public void setReplace(boolean replace) { public void setReplace(boolean replace) {
this.replace = replace; this.replace = replace;
@@ -293,6 +315,7 @@ public class NetRexxC extends MatchingTask {
* Sets whether the compiler messages will be written to NetRexxC.log as * Sets whether the compiler messages will be written to NetRexxC.log as
* well as to the console Valid true values are "on" or "true". Anything * well as to the console Valid true values are "on" or "true". Anything
* else sets the flag to false. The default value is false. * else sets the flag to false. The default value is false.
* @param savelog a <code>boolean</code> value.
*/ */
public void setSavelog(boolean savelog) { public void setSavelog(boolean savelog) {
this.savelog = savelog; this.savelog = savelog;
@@ -304,13 +327,17 @@ public class NetRexxC extends MatchingTask {
* directory as the source files. The alternative is the working directory * directory as the source files. The alternative is the working directory
* Valid true values are "on" or "true". Anything else sets the flag to * Valid true values are "on" or "true". Anything else sets the flag to
* false. The default value is true. * false. The default value is true.
* @param sourcedir a <code>boolean</code> value.
*/ */
public void setSourcedir(boolean sourcedir) { public void setSourcedir(boolean sourcedir) {
this.sourcedir = sourcedir; this.sourcedir = sourcedir;
} }




/** Set the source dir to find the source Java files. */
/**
* Set the source dir to find the source Java files.
* @param srcDirName the source directory.
*/
public void setSrcDir(File srcDirName) { public void setSrcDir(File srcDirName) {
srcDir = srcDirName; srcDir = srcDirName;
} }
@@ -322,6 +349,7 @@ public class NetRexxC extends MatchingTask {
* vs. <code>aStringVar.getBytes()</code> Valid true values are "on" or * vs. <code>aStringVar.getBytes()</code> Valid true values are "on" or
* "true". Anything else sets the flag to false. The default value is * "true". Anything else sets the flag to false. The default value is
* false. * false.
* @param strictargs a <code>boolean</code> value.
*/ */
public void setStrictargs(boolean strictargs) { public void setStrictargs(boolean strictargs) {
this.strictargs = strictargs; this.strictargs = strictargs;
@@ -329,7 +357,8 @@ public class NetRexxC extends MatchingTask {




/** /**
* Tells the NetRexx compile that assignments must match exactly on type
* Tells the NetRexx compile that assignments must match exactly on type.
* @param strictassign a <code>boolean</code> value.
*/ */
public void setStrictassign(boolean strictassign) { public void setStrictassign(boolean strictassign) {
this.strictassign = strictassign; this.strictassign = strictassign;
@@ -337,7 +366,8 @@ public class NetRexxC extends MatchingTask {




/** /**
* Specifies whether the NetRexx compiler should be case sensitive or not
* Specifies whether the NetRexx compiler should be case sensitive or not.
* @param strictcase a <code>boolean</code> value.
*/ */
public void setStrictcase(boolean strictcase) { public void setStrictcase(boolean strictcase) {
this.strictcase = strictcase; this.strictcase = strictcase;
@@ -349,6 +379,7 @@ public class NetRexxC extends MatchingTask {
* statement. By default the NetRexx compiler will import certain packages * statement. By default the NetRexx compiler will import certain packages
* automatically Valid true values are "on" or "true". Anything else sets * automatically Valid true values are "on" or "true". Anything else sets
* the flag to false. The default value is false. * the flag to false. The default value is false.
* @param strictimport a <code>boolean</code> value.
*/ */
public void setStrictimport(boolean strictimport) { public void setStrictimport(boolean strictimport) {
this.strictimport = strictimport; this.strictimport = strictimport;
@@ -359,6 +390,7 @@ public class NetRexxC extends MatchingTask {
* Sets whether local properties need to be qualified explicitly using * Sets whether local properties need to be qualified explicitly using
* <code>this</code> Valid true values are "on" or "true". Anything else * <code>this</code> Valid true values are "on" or "true". Anything else
* sets the flag to false. The default value is false. * sets the flag to false. The default value is false.
* @param strictprops a <code>boolean</code> value.
*/ */
public void setStrictprops(boolean strictprops) { public void setStrictprops(boolean strictprops) {
this.strictprops = strictprops; this.strictprops = strictprops;
@@ -367,7 +399,8 @@ public class NetRexxC extends MatchingTask {


/** /**
* Whether the compiler should force catching of exceptions by explicitly * Whether the compiler should force catching of exceptions by explicitly
* named types
* named types.
* @param strictsignal a <code>boolean</code> value.
*/ */
public void setStrictsignal(boolean strictsignal) { public void setStrictsignal(boolean strictsignal) {
this.strictsignal = strictsignal; this.strictsignal = strictsignal;
@@ -378,6 +411,7 @@ public class NetRexxC extends MatchingTask {
* Sets whether debug symbols should be generated into the class file * Sets whether debug symbols should be generated into the class file
* Valid true values are "on" or "true". Anything else sets the flag to * Valid true values are "on" or "true". Anything else sets the flag to
* false. The default value is false. * false. The default value is false.
* @param symbols a <code>boolean</code> value.
*/ */
public void setSymbols(boolean symbols) { public void setSymbols(boolean symbols) {
this.symbols = symbols; this.symbols = symbols;
@@ -388,21 +422,27 @@ public class NetRexxC extends MatchingTask {
* Asks the NetRexx compiler to print compilation times to the console * Asks the NetRexx compiler to print compilation times to the console
* Valid true values are "on" or "true". Anything else sets the flag to * Valid true values are "on" or "true". Anything else sets the flag to
* false. The default value is false. * false. The default value is false.
* @param time a <code>boolean</code> value.
*/ */
public void setTime(boolean time) { public void setTime(boolean time) {
this.time = time; this.time = time;
} }



/**
* Turns on or off tracing and directs the resultant trace output Valid
* values are: "trace", "trace1", "trace2" and "notrace". "trace" and
* "trace2".
* @param trace the value to set.
*/
public void setTrace(TraceAttr trace) { public void setTrace(TraceAttr trace) {
this.trace = trace.getValue(); this.trace = trace.getValue();
} }



/** /**
* Turns on or off tracing and directs the resultant trace output Valid * Turns on or off tracing and directs the resultant trace output Valid
* values are: "trace", "trace1", "trace2" and "notrace". "trace" and * values are: "trace", "trace1", "trace2" and "notrace". "trace" and
* "trace2"
* "trace2".
* @param trace the value to set.
*/ */
public void setTrace(String trace) { public void setTrace(String trace) {
TraceAttr t = new TraceAttr(); TraceAttr t = new TraceAttr();
@@ -416,6 +456,7 @@ public class NetRexxC extends MatchingTask {
* Tells the NetRexx compiler that the source is in UTF8 Valid true values * Tells the NetRexx compiler that the source is in UTF8 Valid true values
* are "on" or "true". Anything else sets the flag to false. The default * are "on" or "true". Anything else sets the flag to false. The default
* value is false. * value is false.
* @param utf8 a <code>boolean</code> value.
*/ */
public void setUtf8(boolean utf8) { public void setUtf8(boolean utf8) {
this.utf8 = utf8; this.utf8 = utf8;
@@ -424,6 +465,7 @@ public class NetRexxC extends MatchingTask {


/** /**
* Whether lots of warnings and error messages should be generated * Whether lots of warnings and error messages should be generated
* @param verbose the value to set - verbose&lt;level&gt; or noverbose.
*/ */
public void setVerbose(VerboseAttr verbose) { public void setVerbose(VerboseAttr verbose) {
this.verbose = verbose.getValue(); this.verbose = verbose.getValue();
@@ -432,6 +474,7 @@ public class NetRexxC extends MatchingTask {


/** /**
* Whether lots of warnings and error messages should be generated * Whether lots of warnings and error messages should be generated
* @param verbose the value to set - verbose&lt;level&gt; or noverbose.
*/ */
public void setVerbose(String verbose) { public void setVerbose(String verbose) {
VerboseAttr v = new VerboseAttr(); VerboseAttr v = new VerboseAttr();
@@ -440,11 +483,11 @@ public class NetRexxC extends MatchingTask {
setVerbose(v); setVerbose(v);
} }



/** /**
* Whether the task should suppress the "Method argument is not used" in * Whether the task should suppress the "Method argument is not used" in
* strictargs-Mode, which can not be suppressed by the compiler itself. * strictargs-Mode, which can not be suppressed by the compiler itself.
* The warning is logged as verbose message, though. * The warning is logged as verbose message, though.
* @param suppressMethodArgumentNotUsed a <code>boolean</code> value.
*/ */
public void setSuppressMethodArgumentNotUsed(boolean suppressMethodArgumentNotUsed) { public void setSuppressMethodArgumentNotUsed(boolean suppressMethodArgumentNotUsed) {
this.suppressMethodArgumentNotUsed = suppressMethodArgumentNotUsed; this.suppressMethodArgumentNotUsed = suppressMethodArgumentNotUsed;
@@ -455,6 +498,7 @@ public class NetRexxC extends MatchingTask {
* Whether the task should suppress the "Private property is defined but * Whether the task should suppress the "Private property is defined but
* not used" in strictargs-Mode, which can be quite annoying while * not used" in strictargs-Mode, which can be quite annoying while
* developing. The warning is logged as verbose message, though. * developing. The warning is logged as verbose message, though.
* @param suppressPrivatePropertyNotUsed a <code>boolean</code> value.
*/ */
public void setSuppressPrivatePropertyNotUsed(boolean suppressPrivatePropertyNotUsed) { public void setSuppressPrivatePropertyNotUsed(boolean suppressPrivatePropertyNotUsed) {
this.suppressPrivatePropertyNotUsed = suppressPrivatePropertyNotUsed; this.suppressPrivatePropertyNotUsed = suppressPrivatePropertyNotUsed;
@@ -465,6 +509,7 @@ public class NetRexxC extends MatchingTask {
* Whether the task should suppress the "Variable is set but not used" in * Whether the task should suppress the "Variable is set but not used" in
* strictargs-Mode. Be careful with this one! The warning is logged as * strictargs-Mode. Be careful with this one! The warning is logged as
* verbose message, though. * verbose message, though.
* @param suppressVariableNotUsed a <code>boolean</code> value.
*/ */
public void setSuppressVariableNotUsed(boolean suppressVariableNotUsed) { public void setSuppressVariableNotUsed(boolean suppressVariableNotUsed) {
this.suppressVariableNotUsed = suppressVariableNotUsed; this.suppressVariableNotUsed = suppressVariableNotUsed;
@@ -475,6 +520,7 @@ public class NetRexxC extends MatchingTask {
* Whether the task should suppress the "FooException is in SIGNALS list * Whether the task should suppress the "FooException is in SIGNALS list
* but is not signalled within the method", which is sometimes rather * but is not signalled within the method", which is sometimes rather
* useless. The warning is logged as verbose message, though. * useless. The warning is logged as verbose message, though.
* @param suppressExceptionNotSignalled a <code>boolean</code> value.
*/ */
public void setSuppressExceptionNotSignalled(boolean suppressExceptionNotSignalled) { public void setSuppressExceptionNotSignalled(boolean suppressExceptionNotSignalled) {
this.suppressExceptionNotSignalled = suppressExceptionNotSignalled; this.suppressExceptionNotSignalled = suppressExceptionNotSignalled;
@@ -484,6 +530,7 @@ public class NetRexxC extends MatchingTask {
/** /**
* Tells whether we should filter out any deprecation-messages * Tells whether we should filter out any deprecation-messages
* of the compiler out. * of the compiler out.
* @param suppressDeprecation a <code>boolean</code> value.
*/ */
public void setSuppressDeprecation(boolean suppressDeprecation) { public void setSuppressDeprecation(boolean suppressDeprecation) {
this.suppressDeprecation = suppressDeprecation; this.suppressDeprecation = suppressDeprecation;
@@ -597,7 +644,10 @@ public class NetRexxC extends MatchingTask {
} }




/** Executes the task - performs the actual compiler call. */
/**
* Executes the task - performs the actual compiler call.
* @throws BuildException on error.
*/
public void execute() throws BuildException { public void execute() throws BuildException {


// first off, make sure that we've got a srcdir and destdir // first off, make sure that we've got a srcdir and destdir
@@ -887,14 +937,21 @@ public class NetRexxC extends MatchingTask {
} }




/**
* Enumerated class corresponding to the trace attribute.
*/
public static class TraceAttr extends EnumeratedAttribute { public static class TraceAttr extends EnumeratedAttribute {
/** {@inheritDoc}. */
public String[] getValues() { public String[] getValues() {
return new String[]{"trace", "trace1", "trace2", "notrace"}; return new String[]{"trace", "trace1", "trace2", "notrace"};
} }
} }



/**
* Enumerated class corresponding to the verbose attribute.
*/
public static class VerboseAttr extends EnumeratedAttribute { public static class VerboseAttr extends EnumeratedAttribute {
/** {@inheritDoc}. */
public String[] getValues() { public String[] getValues() {
return new String[]{"verbose", "verbose0", "verbose1", return new String[]{"verbose", "verbose0", "verbose1",
"verbose2", "verbose3", "verbose4", "verbose2", "verbose3", "verbose4",


Loading…
Cancel
Save