Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 32569 invoked from network); 14 Mar 2005 13:58:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Mar 2005 13:58:21 -0000 Received: (qmail 54833 invoked by uid 500); 14 Mar 2005 13:58:20 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 54779 invoked by uid 500); 14 Mar 2005 13:58:20 -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 54766 invoked by uid 500); 14 Mar 2005 13:58:20 -0000 Received: (qmail 54763 invoked by uid 99); 14 Mar 2005 13:58:19 -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 05:58:19 -0800 Received: (qmail 32555 invoked by uid 1539); 14 Mar 2005 13:58:18 -0000 Date: 14 Mar 2005 13:58:18 -0000 Message-ID: <20050314135818.32554.qmail@minotaur.apache.org> From: peterreilly@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs XSLTProcess.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N peterreilly 2005/03/14 05:58:18 Modified: src/main/org/apache/tools/ant/taskdefs XSLTProcess.java Log: stylecheck Revision Changes Path 1.92 +28 -7 ant/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java Index: XSLTProcess.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java,v retrieving revision 1.91 retrieving revision 1.92 diff -u -r1.91 -r1.92 --- XSLTProcess.java 9 Mar 2005 00:20:41 -0000 1.91 +++ XSLTProcess.java 14 Mar 2005 13:58:18 -0000 1.92 @@ -144,7 +144,6 @@ * Creates a new XSLTProcess Task. */ public XSLTProcess() { - } //-- XSLTProcess /** @@ -163,7 +162,7 @@ * *

Setting this to true may get around a bug in certain * Xalan-J versions, default is false.

- * + * @param b a boolean value * @since Ant 1.5.2 */ public void setReloadStylesheet(boolean b) { @@ -172,6 +171,7 @@ /** * Defines the mapper to map source to destination files. + * @param mapper the mapper to use * @exception BuildException if more than one mapper is defined * @since Ant 1.6.2 */ @@ -201,7 +201,8 @@ } if (inFile != null && !inFile.exists()) { - throw new BuildException("input file " + inFile.toString() + " does not exist", getLocation()); + throw new BuildException( + "input file " + inFile.toString() + " does not exist", getLocation()); } try { @@ -588,6 +589,10 @@ return xmlCatalog; } + /** + * Get an enumeration on the outputproperties. + * @return the outputproperties + */ public Enumeration getOutputProperties() { return outputProperties.elements(); } @@ -728,6 +733,7 @@ /** * Ensures that the param passes the conditions placed * on it with if and unless properties. + * @return true if the task passes the "if" and "unless" parameters */ public boolean shouldUse() { if (ifProperty != null && project.getProperty(ifProperty) == null) { @@ -801,6 +807,7 @@ /** * Initialize internal instance of XMLCatalog + * @throws BuildException on error */ public void init() throws BuildException { super.init(); @@ -882,7 +889,7 @@ /** * Create an instance of a factory attribute. - * the newly created factory attribute + * @param attr the newly created factory attribute */ public void addAttribute(Attribute attr) { attributes.addElement(attr); @@ -926,10 +933,23 @@ return value; } + /** + * Not used. + * @param name not used + * @return null + * @throws BuildException never + */ public Object createDynamicElement(String name) throws BuildException { return null; } + /** + * Set an attribute. + * Only "name" and "value" are supported as names. + * @param name the name of the attribute + * @param value the value of the attribute + * @throws BuildException on error + */ public void setDynamicAttribute(String name, String value) throws BuildException { // only 'name' and 'value' exist. @@ -938,9 +958,10 @@ } else if ("value".equalsIgnoreCase(name)) { // a value must be of a given type // say boolean|integer|string that are mostly used. - if ("true".equalsIgnoreCase(value) - || "false".equalsIgnoreCase(value)) { - this.value = new Boolean(value); + if ("true".equalsIgnoreCase(value)) { + this.value = Boolean.TRUE; + } else if ("false".equalsIgnoreCase(value)) { + this.value = Boolean.FALSE; } else { try { this.value = new Integer(value); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org