https://issues.apache.org/bugzilla/show_bug.cgi?id=48804

           Summary: import and extension-point / extensionOf not working
                    as documented
           Product: Ant
           Version: 1.8.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [email protected]


As per the documentation on extension-points, there is a note that this is
designed to be used with imported build files. I tried to create the example
given (see attached files) where build.xml imports targets and an
extension-point and then adds a dependency via the extensionOf.

This results in an error that the extension-point does not exist, which it
doesn't because the import is done after the build is parsed.  I believe that I
have the intent correct but that there is a bug in TargetHelper in
ProjectHelper2.  I can see that the extensionOf needs to find the other target
so that it can add a dependency but that that target doesn't exist since the
import stack hasn't been fully popped.

I believe that the fix is to change ProjectHelper2 (I will try to create my own
in the short term) to add the extension to a stack which then is processed
after the import stack is done.  That is, all extensions should be done after
the imports are done.

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

Reply via email to