Browse Source

Set the location for the default target (the location will be the project tag)

PR: 32267
Reported by: Yves Martin


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277048 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
0e1abe82d1
2 changed files with 6 additions and 0 deletions
  1. +3
    -0
      WHATSNEW
  2. +3
    -0
      src/main/org/apache/tools/ant/helper/ProjectHelper2.java

+ 3
- 0
WHATSNEW View File

@@ -157,6 +157,9 @@ Fixed bugs:
* Properties.propertyNames() should be used instead of .keys().
Bugzilla report 27261.

* Target location is not set for default target.
Bugzilla report 32267.

Changes from Ant 1.6.1 to Ant 1.6.2
===================================



+ 3
- 0
src/main/org/apache/tools/ant/helper/ProjectHelper2.java View File

@@ -601,6 +601,9 @@ public class ProjectHelper2 extends ProjectHelper {
boolean nameAttributeSet = false;

Project project = context.getProject();
// Set the location of the implicit target associated with the project tag
context.getImplicitTarget().setLocation(
new Location(context.getLocator()));

/** XXX I really don't like this - the XML processor is still
* too 'involved' in the processing. A better solution (IMO)


Loading…
Cancel
Save