Browse Source

quick fix for Ant.java use of property in Ant#reinit

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274726 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 22 years ago
parent
commit
4ffa9e1380
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      src/main/org/apache/tools/ant/ComponentHelper.java

+ 9
- 1
src/main/org/apache/tools/ant/ComponentHelper.java View File

@@ -434,7 +434,15 @@ public class ComponentHelper {
*/
public Task createTask(String taskType) throws BuildException {
Task task=createNewTask(taskType);
if(task!=null) {
if (task == null && taskType.equals("property")) {
// quick fix for Ant.java use of property before
// initializeing the project
addTaskDefinition("property",
org.apache.tools.ant.taskdefs.Property.class);
task = createNewTask(taskType);
}
if (task != null) {
addCreatedTask(taskType, task);
}
return task;


Loading…
Cancel
Save