Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 6227 invoked from network); 24 Jan 2005 15:15:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Jan 2005 15:15:43 -0000 Received: (qmail 48341 invoked by uid 500); 24 Jan 2005 15:15:41 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 48266 invoked by uid 500); 24 Jan 2005 15:15:40 -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 48252 invoked by uid 500); 24 Jan 2005 15:15:40 -0000 Received: (qmail 48247 invoked by uid 99); 24 Jan 2005 15:15:40 -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, 24 Jan 2005 07:15:40 -0800 Received: (qmail 6189 invoked by uid 1539); 24 Jan 2005 15:15:39 -0000 Date: 24 Jan 2005 15:15:39 -0000 Message-ID: <20050124151539.6188.qmail@minotaur.apache.org> From: peterreilly@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant/util RegexpPatternMapper.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N peterreilly 2005/01/24 07:15:39 Modified: src/main/org/apache/tools/ant/util RegexpPatternMapper.java Log: javadoc Revision Changes Path 1.16 +14 -1 ant/src/main/org/apache/tools/ant/util/RegexpPatternMapper.java Index: RegexpPatternMapper.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/RegexpPatternMapper.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- RegexpPatternMapper.java 17 Dec 2004 13:06:35 -0000 1.15 +++ RegexpPatternMapper.java 24 Jan 2005 15:15:39 -0000 1.16 @@ -1,5 +1,5 @@ /* - * Copyright 2000,2002-2004 The Apache Software Foundation + * Copyright 2000,2002-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -32,6 +32,10 @@ protected char[] to = null; protected StringBuffer result = new StringBuffer(); + /** + * Constructor for RegexpPatternMapper. + * @throws BuildException on error. + */ public RegexpPatternMapper() throws BuildException { reg = (new RegexpMatcherFactory()).newRegexpMatcher(); } @@ -66,6 +70,8 @@ /** * Sets the "from" pattern. Required. + * @param from the from pattern. + * @throws BuildException on error. */ public void setFrom(String from) throws BuildException { try { @@ -80,6 +86,8 @@ /** * Sets the "to" pattern. Required. + * @param to the to pattern. + * @throws BuildException on error. */ public void setTo(String to) { this.to = to.toCharArray(); @@ -89,6 +97,9 @@ * Returns null if the source file name doesn't match the * "from" pattern, an one-element array containing the * translated file otherwise. + * @param sourceFileName the source file name + * @return a one-element array containing the translated file or + * null if the to pattern did not match */ public String[] mapFileName(String sourceFileName) { if (handleDirChar) { @@ -106,6 +117,8 @@ /** * Replace all backreferences in the to pattern with the matched * groups of the source. + * @param source the source file name. + * @return the translated file name. */ protected String replaceReferences(String source) { Vector v = reg.getGroups(source, regexpOptions); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org