ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40522] New: - Fix coreloader so that it works
Date Fri, 15 Sep 2006 14:29:34 GMT
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=40522>.
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=40522

           Summary: Fix coreloader so that it works
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: peterreilly@apache.org


project.setCoreLoader(Classloader x) has been part
of the ant code base for quite a long time, (it
was orignally called project.setSystemLoader(Classloader x)).

Currently it does not do anything usefull, but with a few modifications
it can be made to work again.

1) change antclassloader to use the core loader as a parent
   loader
2) when the coreloader is changed update all the non resolved
   tasks and types that use the coreloader to use the new
   core loader.

Two other changes are also necessary:
1) when the coreloader is set, ensure that it can be used
   to resolve Project correctly.
2) modify oata.taskdefs.Classloader to add types.optional and
   util.optional to its addLoaderPackageRoot list.

When these changes are made, <classloader> works.
<classloader> has been in the ant code since 1.6, but has not
been docuemented.

With these changes one can do the following:
<project ... xmlns:ac="antlib:net.sf.antcontrib">
    <classloader>
      <classpath>
        <pathelement path="c:/apps/jdepend-2.9.1/lib/jdepend-2.9.1.jar"/>
        <pathelement path="${ant.home}/lib/ant-jdepend.jar"/>
        <pathelement path="c:/apps/ant-contrib/build/lib/ant-contrib.jar"/>
     </classpath>
    </classloader>

    <jdepend>
       ..
    </jdepend>

    <ac:for ...
    <ac:for

-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message