XML-include in build.xml doesn't work
Brought to you by:
schnelle
The example below, with an XML-include doesn't work. It
worked in 1.6.1
tonjac@rsv.se
<!DOCTYPE project [ <!ENTITY include
SYSTEM "file:../../../include/java.include"> ]>
<project name="base" default="compile" basedir=".">
...
</project>
<target name="compile">
...
</target>
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
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>
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>
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)
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)
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
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
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
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]