From: James Kennard <james@we...> - 2010-03-24 21:09:01
I am having some difficulties with XML entities. All I want is to use
this task to rewrite a few XML files and expand the entities. I got this
working without any problems using the task:
where a.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [
<!ENTITY b SYSTEM ".\b.xml">
If I reference this build file from another build file, it fails:
<ant antfile="ant/buildforms.xml" useNativeBasedir="true" />
Presumably because &b; is defined in a.xml using a relative path.
Surely this should be relative to the XML file itself and not the build
file? I have turned on useNativeBasedir, surely useNativeBasedir should
prevent this from being an issue? It seems that when using a relative
path to define an entity it always looks relative to the basedir of the
highest build file, not the current basedir or the XML file in question
- is this the correct behaviour?
Get latest updates about Open Source Projects, Conferences and News.