peterreilly 2004/11/18 01:48:59
Modified: . WHATSNEW
src/main/org/apache/tools/ant/helper ProjectHelper2.java
Log:
Set the location for the default target (the location will be the project tag)
PR: 32267
Reported by: Yves Martin
Revision Changes Path
1.686 +3 -0 ant/WHATSNEW
Index: WHATSNEW
===================================================================
RCS file: /home/cvs/ant/WHATSNEW,v
retrieving revision 1.685
retrieving revision 1.686
diff -u -r1.685 -r1.686
--- WHATSNEW 16 Nov 2004 21:46:46 -0000 1.685
+++ WHATSNEW 18 Nov 2004 09:48:59 -0000 1.686
@@ -157,6 +157,9 @@
* 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
===================================
1.51 +3 -0
ant/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
Index: ProjectHelper2.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/helper/ProjectHelper2.java,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- ProjectHelper2.java 12 Nov 2004 11:07:12 -0000 1.50
+++ ProjectHelper2.java 18 Nov 2004 09:48:59 -0000 1.51
@@ -601,6 +601,9 @@
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)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]