peterreilly 2003/07/25 09:28:24 Modified: src/main/org/apache/tools/ant/taskdefs XmlProperty.java Log: checkstyle Revision Changes Path 1.18 +7 -3 ant/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java Index: XmlProperty.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- XmlProperty.java 23 Jul 2003 12:11:08 -0000 1.17 +++ XmlProperty.java 25 Jul 2003 16:28:24 -0000 1.18 @@ -54,9 +54,7 @@ package org.apache.tools.ant.taskdefs; -import java.io.BufferedInputStream; import java.io.File; -import java.io.FileInputStream; import java.io.IOException; import java.util.Hashtable; import javax.xml.parsers.DocumentBuilderFactory; @@ -296,8 +294,9 @@ } catch (SAXException sxe) { // Error generated during parsing Exception x = sxe; - if (sxe.getException() != null) + if (sxe.getException() != null) { x = sxe.getException(); + } throw new BuildException(x); } catch (ParserConfigurationException pce) { @@ -572,6 +571,7 @@ /** * The XML file to parse; required. + * @param src the file to parse */ public void setFile(File src) { this.src = src; @@ -579,6 +579,7 @@ /** * the prefix to prepend to each property + * @param prefix the prefix to prepend to each property */ public void setPrefix(String prefix) { this.prefix = prefix.trim(); @@ -588,6 +589,7 @@ * flag to include the xml root tag as a * first value in the property name; optional, * default is true + * @param keepRoot if true (default), include the xml root tag */ public void setKeeproot(boolean keepRoot) { this.keepRoot = keepRoot; @@ -595,6 +597,7 @@ /** * flag to validate the XML file; optional, default false + * @param validate if true validate the XML file, default false */ public void setValidate(boolean validate) { this.validate = validate; @@ -603,6 +606,7 @@ /** * flag to treat attributes as nested elements; * optional, default false + * @param collapseAttributes if true treat attributes as nested elements */ public void setCollapseAttributes(boolean collapseAttributes) { this.collapseAttributes = collapseAttributes;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]