I am having problems using ENTITY references in ant files which reside
in a directory whose absolute path contains spaces. This problem was not
present in ant 1.4.1.
Is this an ant 1.5.1 problem or a xerces problem?
(i am using JDK 1.4.0_01, but i have seen the behavior using JDK 1.3.1_03)
For example, I have the following ant files:
/tmp/defs.xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<property name="quiet" value="true"/>
/tmp/S P/build.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE project [
<!ENTITY pathdefs SYSTEM "../defs.xml">
]>
<project name="test" default="build" basedir=".">
&pathdefs;
<target name="build"> <echo message="${quiet}"/> </target>
</project>
I issue the commands
cd \tmp\S P; ant
and the output is:
BUILD FAILED
Error reading project file: no protocol: ../defs.xml
If i rename the 'S P' directory to 'SP', and issue the commands
cd \tmp\SP; ant
the output is:
build:
[echo] true
BUILD SUCCESSFUL
Jay Goldman
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>