peterreilly 2003/10/28 08:54:56
Modified: src/main/org/apache/tools/ant/taskdefs Echo.java
Log:
checkstyle
Revision Changes Path
1.30 +10 -0 ant/src/main/org/apache/tools/ant/taskdefs/Echo.java
Index: Echo.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Echo.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- Echo.java 13 Sep 2003 12:58:33 -0000 1.29
+++ Echo.java 28 Oct 2003 16:54:56 -0000 1.30
@@ -116,6 +116,8 @@
/**
* File to write to.
+ * @param file the file to write to, if not set, echo to
+ * standard output
*/
public void setFile(File file) {
this.file = file;
@@ -123,6 +125,8 @@
/**
* If true, append to existing file.
+ * @param append if true, append to existing file, default
+ * is false.
*/
public void setAppend(boolean append) {
this.append = append;
@@ -130,6 +134,7 @@
/**
* Set a multiline message.
+ * @param msg the CDATA text to append to the output text
*/
public void addText(String msg) {
message += getProject().replaceProperties(msg);
@@ -146,6 +151,7 @@
* </ul>
* <p>The default is "warning" to ensure that messages are
* displayed by default when using the -quiet command line option.</p>
+ * @param echoLevel the logging level
*/
public void setLevel(EchoLevel echoLevel) {
String option = echoLevel.getValue();
@@ -163,9 +169,13 @@
}
}
+ /**
+ * The enumerated values for the level attribute.
+ */
public static class EchoLevel extends EnumeratedAttribute {
/**
* @see EnumeratedAttribute#getValues
+ * @return the strings allowed for the level attribute
*/
public String[] getValues() {
return new String[] {"error", "warning", "info",
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]