DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39597>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39597


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Reference not seen in       |Reference not seen by top
                   |imported antfile            |level tasks in sub-projects




------- Additional Comments From [EMAIL PROTECTED]  2006-09-22 10:50 -------
If b.xml is written like:
<project name="b" default="b">
  <pathconvert refid="somepath" pathsep=":" property="xx"/>
  <target name="b"/>
</project>

it also fails.

however this works and may be used as a work-around for the moment.

<project name="b" default="b">
  <target name="b-init">
    <pathconvert refid="somepath" pathsep=":" property="xx"/>
  </target>
  <target name="b" depends="b-init"/>
</project>

The problem is a little historic. In ant 1.5, it was
not possible to have top-level tasks (except property).
As this was the case, references would not be used except
in targets. As this was the case, it was decided to allow
references in sub-projects to be over-ridden by references
specified in the reference nested element of <ant>. This
is implemented by running all the top level tasks and types
of the sub-project and then setting the references set
in the <reference> element of ant.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to