ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Goldman" <jgold...@iconverse.com>
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:

/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>


Mime
View raw message