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=37475>.
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=37475

           Summary: ImportTask object puts artifical limit on where a file
                    can be included
           Product: Ant
           Version: 1.6.5
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


The documentation for ImportTask says " It must be 'top level'." Why? If
ImportTask is intended to be a replacement/equivalent to entity references then
it should allow snippets to be included at any place in the build file.

E.g:
<!DOCTYPE project [
    <!ENTITY icu-config SYSTEM "file:./icu-config.xml">
]>
<project name="CLDR" default="util" basedir=".">
    <target name="init"/>
    ....
    <target name="icu-locales" depends="init,ant">
        
        <cldr-build toolName="LDML2ICUConverter">
            <run type="locales">
                <args>
                </args>
                <!-- <import file="./icu-config.xml"/> does not work!!! -->
                &icu-config;
            </run>
       </cldr-build>
   </target>
</project>

-- 
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