git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270063 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -222,7 +222,7 @@ public class Target implements TaskContainer { | |||||
| return true; | return true; | ||||
| } | } | ||||
| String test = ProjectHelper.replaceProperties(getProject(), ifCondition, getProject().getProperties()); | |||||
| String test = ProjectHelper.replaceProperties(getProject(), ifCondition); | |||||
| return project.getProperty(test) != null; | return project.getProperty(test) != null; | ||||
| } | } | ||||
| @@ -230,7 +230,7 @@ public class Target implements TaskContainer { | |||||
| if ("".equals(unlessCondition)) { | if ("".equals(unlessCondition)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| String test = ProjectHelper.replaceProperties(getProject(), unlessCondition, getProject().getProperties()); | |||||
| String test = ProjectHelper.replaceProperties(getProject(), unlessCondition); | |||||
| return project.getProperty(test) == null; | return project.getProperty(test) == null; | ||||
| } | } | ||||
| } | } | ||||
| @@ -128,7 +128,7 @@ public class Echo extends Task { | |||||
| */ | */ | ||||
| public void addText(String msg) { | public void addText(String msg) { | ||||
| message += | message += | ||||
| ProjectHelper.replaceProperties(project, msg, project.getProperties()); | |||||
| ProjectHelper.replaceProperties(project, msg); | |||||
| } | } | ||||
| /** | /** | ||||
| @@ -84,7 +84,7 @@ public class Exit extends Task { | |||||
| */ | */ | ||||
| public void addText(String msg) { | public void addText(String msg) { | ||||
| message += | message += | ||||
| ProjectHelper.replaceProperties(project, msg, project.getProperties()); | |||||
| ProjectHelper.replaceProperties(project, msg); | |||||
| } | } | ||||
| } | } | ||||
| @@ -204,7 +204,7 @@ public class Input extends Task { | |||||
| */ | */ | ||||
| public void addText(String msg) { | public void addText(String msg) { | ||||
| message += | message += | ||||
| ProjectHelper.replaceProperties(project, msg, project.getProperties()); | |||||
| ProjectHelper.replaceProperties(project, msg); | |||||
| } | } | ||||
| } | } | ||||
| @@ -1146,8 +1146,7 @@ public class Javadoc extends Task { | |||||
| * Convenience method to expand properties. | * Convenience method to expand properties. | ||||
| */ | */ | ||||
| protected String expand(String content) { | protected String expand(String content) { | ||||
| return ProjectHelper.replaceProperties(project, content, | |||||
| project.getProperties()); | |||||
| return ProjectHelper.replaceProperties(project, content); | |||||
| } | } | ||||
| private String getJavadocExecutableName() | private String getJavadocExecutableName() | ||||
| @@ -280,7 +280,7 @@ public class Property extends Task { | |||||
| String name = (String) e.nextElement(); | String name = (String) e.nextElement(); | ||||
| String value = (String) props.getProperty(name); | String value = (String) props.getProperty(name); | ||||
| String v = ProjectHelper.replaceProperties(project, value, project.getProperties()); | |||||
| String v = ProjectHelper.replaceProperties(project, value); | |||||
| addProperty(name, v); | addProperty(name, v); | ||||
| } | } | ||||
| } | } | ||||
| @@ -533,8 +533,7 @@ public class SQLExec extends Task { | |||||
| try{ | try{ | ||||
| while ((line=in.readLine()) != null){ | while ((line=in.readLine()) != null){ | ||||
| line = line.trim(); | line = line.trim(); | ||||
| line = ProjectHelper.replaceProperties(project, line, | |||||
| project.getProperties()); | |||||
| line = ProjectHelper.replaceProperties(project, line); | |||||
| if (line.startsWith("//")) continue; | if (line.startsWith("//")) continue; | ||||
| if (line.startsWith("--")) continue; | if (line.startsWith("--")) continue; | ||||
| StringTokenizer st = new StringTokenizer(line); | StringTokenizer st = new StringTokenizer(line); | ||||
| @@ -291,8 +291,7 @@ public class PatternSet extends DataType { | |||||
| String line = patternReader.readLine(); | String line = patternReader.readLine(); | ||||
| while (line != null) { | while (line != null) { | ||||
| if (line.length() > 0) { | if (line.length() > 0) { | ||||
| line = ProjectHelper.replaceProperties(p, line, | |||||
| p.getProperties()); | |||||
| line = ProjectHelper.replaceProperties(p, line); | |||||
| addPatternToList(patternlist).setName(line); | addPatternToList(patternlist).setName(line); | ||||
| } | } | ||||
| line = patternReader.readLine(); | line = patternReader.readLine(); | ||||