Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 588 invoked from network); 14 Mar 2005 15:31:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Mar 2005 15:31:38 -0000 Received: (qmail 98305 invoked by uid 500); 14 Mar 2005 15:31:37 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 97983 invoked by uid 500); 14 Mar 2005 15:31:36 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 97970 invoked by uid 500); 14 Mar 2005 15:31:36 -0000 Received: (qmail 97966 invoked by uid 99); 14 Mar 2005 15:31:36 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 14 Mar 2005 07:31:36 -0800 Received: (qmail 511 invoked by uid 1539); 14 Mar 2005 15:31:35 -0000 Date: 14 Mar 2005 15:31:35 -0000 Message-ID: <20050314153135.509.qmail@minotaur.apache.org> From: peterreilly@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional EchoProperties.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N peterreilly 2005/03/14 07:31:35 Modified: src/main/org/apache/tools/ant/taskdefs/optional EchoProperties.java Log: javadoc Revision Changes Path 1.31 +22 -4 ant/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java Index: EchoProperties.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- EchoProperties.java 10 Mar 2005 21:16:08 -0000 1.30 +++ EchoProperties.java 14 Mar 2005 15:31:34 -0000 1.31 @@ -177,20 +177,31 @@ /** * A set of properties to write. - * + * @param ps the property set to write * @since Ant 1.6 */ public void addPropertyset(PropertySet ps) { propertySets.addElement(ps); } + /** + * Set the output format - xml or text. + * @param ea an enumerated FormatAttribute value + */ public void setFormat(FormatAttribute ea) { format = ea.getValue(); } + /** + * A enumerated type for the format attribute. + * The values are "xml" and "text". + */ public static class FormatAttribute extends EnumeratedAttribute { private String [] formats = new String[]{"xml", "text"}; + /** + * @see EnumeratedAttribute#getValues() + */ public String[] getValues() { return formats; } @@ -320,9 +331,10 @@ * sent to the output stream. * The output stream will be closed when this method returns. * - *@param allProps propfile to save - *@param os output stream - *@exception IOException trouble + * @param allProps propfile to save + * @param os output stream + * @throws IOException on output errors + * @throws BuildException on other errors */ protected void saveProperties(Hashtable allProps, OutputStream os) throws IOException, BuildException { @@ -383,6 +395,12 @@ return sorted; } + /** + * Output the properties as xml output. + * @param props the properties to save + * @param os the output stream to write to (Note this gets closed) + * @throws IOException on error in writing to the stream + */ protected void xmlSaveProperties(Properties props, OutputStream os) throws IOException { // create XML document --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org