Author: bodewig
Date: Mon Aug 11 04:41:48 2008
New Revision: 684722
URL: http://svn.apache.org/viewvc?rev=684722&view=rev
Log:
whitespace
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/util/GlobPatternMapper.java
ant/core/trunk/src/main/org/apache/tools/ant/util/RegexpPatternMapper.java
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/util/GlobPatternMapper.java
URL:
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/GlobPatternMapper.java?rev=684722&r1=684721&r2=684722&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/util/GlobPatternMapper.java
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/util/GlobPatternMapper.java
Mon Aug 11 04:41:48 2008
@@ -98,16 +98,16 @@
*/
public void setFrom(String from) {
if (from != null) {
- int index = from.lastIndexOf("*");
- if (index == -1) {
- fromPrefix = from;
- fromPostfix = "";
- } else {
- fromPrefix = from.substring(0, index);
- fromPostfix = from.substring(index + 1);
- }
- prefixLength = fromPrefix.length();
- postfixLength = fromPostfix.length();
+ int index = from.lastIndexOf("*");
+ if (index == -1) {
+ fromPrefix = from;
+ fromPostfix = "";
+ } else {
+ fromPrefix = from.substring(0, index);
+ fromPostfix = from.substring(index + 1);
+ }
+ prefixLength = fromPrefix.length();
+ postfixLength = fromPostfix.length();
} else {
throw new BuildException("this mapper requires a 'from'
attribute");
}
@@ -119,14 +119,14 @@
*/
public void setTo(String to) {
if (to != null) {
- int index = to.lastIndexOf("*");
- if (index == -1) {
- toPrefix = to;
- toPostfix = "";
- } else {
- toPrefix = to.substring(0, index);
- toPostfix = to.substring(index + 1);
- }
+ int index = to.lastIndexOf("*");
+ if (index == -1) {
+ toPrefix = to;
+ toPostfix = "";
+ } else {
+ toPrefix = to.substring(0, index);
+ toPostfix = to.substring(index + 1);
+ }
} else {
throw new BuildException("this mapper requires a 'to' attribute");
}
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/util/RegexpPatternMapper.java
URL:
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/util/RegexpPatternMapper.java?rev=684722&r1=684721&r2=684722&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/util/RegexpPatternMapper.java
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/util/RegexpPatternMapper.java
Mon Aug 11 04:41:48 2008
@@ -81,14 +81,14 @@
*/
public void setFrom(String from) throws BuildException {
if (from != null) {
- try {
- reg.setPattern(from);
- } catch (NoClassDefFoundError e) {
- // depending on the implementation the actual RE won't
- // get instantiated in the constructor.
- throw new BuildException("Cannot load regular expression matcher",
- e);
- }
+ try {
+ reg.setPattern(from);
+ } catch (NoClassDefFoundError e) {
+ // depending on the implementation the actual RE won't
+ // get instantiated in the constructor.
+ throw new BuildException("Cannot load regular expression
matcher",
+ e);
+ }
} else {
throw new BuildException("this mapper requires a 'from'
attribute");
}
@@ -101,7 +101,7 @@
*/
public void setTo(String to) {
if (to != null) {
- this.to = to.toCharArray();
+ this.to = to.toCharArray();
} else {
throw new BuildException("this mapper requires a 'to' attribute");
}