Browse Source

Missed the getTarget method. In fact this is the one that introduced the problem

because it makes the introspection think there is a property of type Target
rather than string.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267752 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 25 years ago
parent
commit
b3dffa5f95
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/BuildEvent.java
  2. +1
    -1
      src/main/org/apache/tools/ant/Task.java

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

@@ -97,7 +97,7 @@ public class BuildEvent extends EventObject {
public BuildEvent(Task task) {
super(task);
this.project = task.getProject();
this.target = task.getTarget();
this.target = task.getOwningTarget();
this.task = task;
}



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

@@ -100,7 +100,7 @@ public abstract class Task {
*
* @param the task's target.
*/
public Target getTarget() {
public Target getOwningTarget() {
return target;
}


Loading…
Cancel
Save