ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Goldman" <>
Subject spaces in path name of working directory causes problems with ENTITY resolution using ant 1.5.1
Date Thu, 07 Nov 2002 17:21:44 GMT
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:

	<?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=".">
	<target name="build"> <echo message="${quiet}"/> </target>

I issue the commands
	cd \tmp\S P; ant
and the output is:
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:
     [echo] true


Jay Goldman

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message