When I attempt to include xml code in my build file
with '!ENTITY' declarations I get the following exception:
org.antrunner.exception.BuildFileParsingException
at org.antrunner.at.c(Unknown Source)
at org.antrunner.an.F(Unknown Source)
The DEBUG messages that precede the exception are:
...ReloadAntBuildfileAction ( ?) reload ant buildfile...
...org.antrunner.aC ( ?) working directory...
...org.antrunner.aC ( ?) base directory...
...node.action.AntTargetGroup ( ?) processing target map:
...node.action.AntTargetGroup ( ?) could not find
target: ..
...org.antrunner.h ( ?) parse exception: null
This happens when I add:
<!DOCTYPE project [
<!ENTITY props SYSTEM "file:properties.xml"> ]>
to the build file and try to reload it.
Running ant from the command line works fine.
I'm using AntRunner 2.1 with JBuilder6 on redhat linux 7.2.
I have also tried variations on the entity reference like:
<!DOCTYPE project [
<!ENTITY props SYSTEM "file:./properties.xml"> ]>
and (moving the file around)
<!DOCTYPE project [
<!ENTITY props SYSTEM "file:../properties.xml"> ]>
to see if the parser would be happier with different
syntax, to no avail.
I enjoy using AntRunner and would greatly appreciate
any help in this.
Logged In: NO
sorry, the original post didn't work (the DOCTYPE and ENTITY
declarations were not displayed). They should look like this
(assume an exclamation point following the "<" characters):
< DOCTYPE project [
< ENTITY props SYSTEM "file:properties.xml"> ]>
Logged In: YES
user_id=943591
it might be worth a look
Logged In: YES
user_id=192116
Sorry for my late reply. I checked this on my computer
(Windows and Linux) and it worked for me.
Unfortunately I don't own JBuilder 6. Looks as if the parser
behaves different for JBuilder 6 than for JBuilder X.
Answering the following questions could hep me to find the
error:
- Are the directories which are displayed on the console
correct?
- Is the default target in the included file?
/Dirk
Logged In: YES
user_id=192116
Is this still present for the 2.2 release,probably if you choose to use the ANT
parser?
/Dirk