Menu

#107 XML-include in build.xml doesn't work

open-fixed
None
5
2004-02-05
2003-10-13
Anonymous
No

The example below, with an XML-include doesn't work. It
worked in 1.6.1

tonjac@rsv.se

build.xml:

<!DOCTYPE project [ <!ENTITY include
SYSTEM "file:../../../include/java.include"> ]>
<project name="base" default="compile" basedir=".">
...
</project>

java.include:

<target name="compile">
...
</target>

Discussion

  • Dirk Schnelle-Walka

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

    Logged In: YES
    user_id=192116

    Hi,

    does not work is not very specific. What is the error message.

    Can you run JBuilder on the command line and sen me the output?

    /Dirk

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry missed one important thing in the sample:

    build.xml:

    <!DOCTYPE project [ <!ENTITY include
    SYSTEM "file:../../../include/java.include"> ]>
    <project name="base" default="compile" basedir=".">

    ...

    &include;
    </project>

     
  • Nobody/Anonymous

    Logged In: NO

    Forgott a detail, see below

    build.xml:

    <!DOCTYPE project [ <!ENTITY include
    SYSTEM "file:../../../include/java.include"> ]>
    <project name="base" default="compile" basedir=".">
    ...
    &include;
    </project>

     
  • Nobody/Anonymous

    Logged In: NO

    A message dialogbox:
    build.xml is not an ANT buildfile or the buildfile has no targets!
    ../../../include/java.include (The System cannot find the path
    specified)

    On systemout:
    <ant> - support by AntRunner
    \_/ Configured ANT batchfile...OK
    \(_)/
    -(_)- AntRunner was invented by Dieter Bogdoll
    /(_)\ AntRunner 2.0.2 installed, Copyright (c) 2003 Dirk
    Schnelle
    java.lang.NoSuchMethodError:
    org.antrunner.antcontrol.communication.Message.b()I
    at org.antrunner.Q.a(Unknown Source)
    at org.antrunner.Q.run(Unknown Source)

     
  • Nobody/Anonymous

    Logged In: NO

    Error messagebox:
    build.xml is not an ANT buildfile or the buildfile has no targets!
    ..\..\..\include/java.include (The system cannot find the path
    specified)

    On systemout:
    <ant> - support by AntRunner
    \_/ Configured ANT batchfile...OK
    \(_)/
    -(_)- AntRunner was invented by Dieter Bogdoll
    /(_)\ AntRunner 2.0.2 installed, Copyright (c) 2003 Dirk
    Schnelle
    java.lang.NoSuchMethodError:
    org.antrunner.antcontrol.communication.Message.b()I
    at org.antrunner.Q.a(Unknown Source)
    at org.antrunner.Q.run(Unknown Source)

     
  • Dirk Schnelle-Walka

    • status: open --> closed-fixed
     
  • János Orosz

    János Orosz - 2004-01-23

    Logged In: YES
    user_id=958381

    Hi!

    The bug still exists in the 2.1 release! I wonder why did
    you remove it from the 'known bugs' page, and why did you
    close the bug on the 16th of January, when the release came
    out...
    (There's also nothing about this bug in the ChangeLog)

    jano

     
  • Dirk Schnelle-Walka

    • status: closed-fixed --> open-fixed
     
  • Dirk Schnelle-Walka

    Logged In: YES
    user_id=192116

    I closed the bug because it works for me.
    Since there seem to be so some trouble, I reopened it.

    Can you send me your ant log with the debuggingoption turned
    on for this example.

    I tried
    build.xml:
    ---
    <!DOCTYPE project [ <!ENTITY include
    SYSTEM "file:include.xml"> ]>
    <project name="base" default="compile"
    basedir=".">

    &include;
    </project>
    ---
    include.xml:
    ---
    <target name="compile">

    </target>
    ---

    AntRunner shows up correctly the target compile.

    /Dirk

     
  • János Orosz

    János Orosz - 2004-02-20

    Logged In: YES
    user_id=958381

    I tried it using your files with this result:

    build.xml is not an ANT buildfile or the buildfile has no
    targets!
    null

    What do you mean "... ant log with the debuggingoption turned
    on ..."?

    anyway, my environment:
    WinXP
    JBuilder7 Enterprise
    ant 1.5.4
    (verbose stdout is pretty long)

    jano

     
  • Dirk Schnelle-Walka

    Logged In: YES
    user_id=192116

    The verbose output is the thing I meant when I talked
    about 'debugging option turned on'.

    It is too long to be posted here. You can send it to me as an
    email, if you like.

    But the intersting part should look like

    249651 [AWT-EventQueue-0 ]
    DEBUG .buildfilemanager.AntBuildfile ( 85) created parser
    249651 [AWT-EventQueue-0 ] DEBUG
    dfilemanager.AntEntityResolver ( 65) working
    directory: 'C:\cygwin\home\dirk\src\audiobrowser\bin\.'
    249661 [AWT-EventQueue-0 ] DEBUG
    dfilemanager.AntEntityResolver ( 67) base
    directory: 'C:\cygwin\home\dirk\src\audiobrowser'
    249671 [AWT-EventQueue-0 ] DEBUG
    ildfilemanager.BuildfileParser ( 278) found project: base with
    default target compile
    249681 [AWT-EventQueue-0 ] DEBUG
    dfilemanager.AntEntityResolver ( 88) must resolve
    systemId: 'file:include.xml'
    249691 [AWT-EventQueue-0 ] DEBUG
    dfilemanager.AntEntityResolver ( 100) absolute
    systemId: 'file:///C|/cygwin/home/dirk/src/audiobrowser/includ
    e.xml'
    249701 [AWT-EventQueue-0 ] DEBUG
    ildfilemanager.BuildfileParser ( 299) found target: Target
    [name=compile,description=null,selected=true]