Menu

#111 without "use ant parser", resolves import wrongly

open
None
9
2004-07-09
2004-07-07
No

I have a file "utl/build2.xml" in my project (i.e. it's
one directory below the jbuilder project root).

That file imports several files of the form "ant/*.xml"
(e.g. "ant/csiprops.xml"), which should be interpreted
as relative to the basedir (which is "utl/" above).

Antrunner claims it can't open "utl/csiprops.xml".
Looks like it throws away the directory components in
the <import> statement, and tries to open the base name
of the import file in the basedir.

(Ant handles this correctly. If I enable "use ant
parser", it's able to read this file, but then
Antrunner is unable to get any targets from the build
file).

Discussion

  • Shankar Unni

    Shankar Unni - 2004-07-07
    • priority: 5 --> 9
     
  • Shankar Unni

    Shankar Unni - 2004-07-07

    Logged In: YES
    user_id=167432

    Setting priority high - this bug (and 986925) make this
    release useless for me - I have to roll back to 2.1, which
    seems to work OK (though it has another bug with recognizing
    javac error messages when the task is not called "[javac]").

     
  • Anonymous

    Anonymous - 2004-07-08

    Logged In: YES
    user_id=819044

    Same applies to me also. I needed to include (xml entity
    files) into to the jbuilder working directory to get the
    build file working.

    logger shows:

    12297 [AWT-EventQueue-0 ] DEBUG
    org.antrunner.d ( ?) must resolve systemId:
    'file:./config/db/TSTables.xml'
    12297 [AWT-EventQueue-0 ] DEBUG
    org.antrunner.d ( ?) absolute systemId:
    'file:///D|/projects/workingdir/TSTables.xml

     
  • Anonymous

    Anonymous - 2004-07-08

    Logged In: YES
    user_id=819044

    Same applies to me also. I needed to include (xml entity
    files) into to the jbuilder working directory to get the
    build file working.

    logger shows:

    12297 [AWT-EventQueue-0 ] DEBUG
    org.antrunner.d ( ?) must resolve systemId:
    'file:./config/db/TSTables.xml'
    12297 [AWT-EventQueue-0 ] DEBUG
    org.antrunner.d ( ?) absolute systemId:
    'file:///D|/projects/workingdir/TSTables.xml

     
  • Dirk Schnelle-Walka

    • assigned_to: nobody --> schnelle
     
  • Dirk Schnelle-Walka

    Logged In: YES
    user_id=192116

    Yes, seems to me that there are still severe problems
    resolving entities.

    I am currently refactoring the internal parser, not finished
    yet.

    /dirk