escape the backslashes (\\) or use forward slash (/) as separator in your
property value

-----Original Message-----
From: David W. Brown [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 2:54 AM
To: [email protected]
Subject: file & directory name property corrupted


Hello ant gurus (dev too), I have a very curious problem: for a couple of
weeks I have been using a hand tweeked build.xml acquired from a Tomcat
servlet server download as a template to compile servlet and jsp base
projects that run under Tomcat. Maybe this is a Tomcat mail list problem but
since I'm here I might as well take the heat if this is the wrong ML. The
build.xml file I have been using the past couple of weeks has worked
perfectly until today. Upstream in the build.xml is a list of so-called File
and Directory names defined as ant properties. One of the properties that
defines the Tomcat installation directory home: catalina.home corrupts the
directory path string that is assigned to it i.e the directory path string
loses the backslash delimiter (\) and the string is compressed together. An
example follows and thanks in advance.

<property name="catalina.home" value="C:\Program Files\Apache Software
Foundation\Tomcat 5.5"/>

At comple time namely when at the command line the following ant sequence is
issued: ant (or ant compile) the following error condition is returned:

build

compile:
     [echo] Using user.home=C:\Documents and Settings\hbd6345
     [echo] Using catalina.home=C:Program FilesApache Software
FoundationTomcat 5.5
    [javac] Compiling 1 source file to C:\Documents and Settings\hbd6345\My
Documents\general\dev\in
ventory\build\WEB-INF\classes

BUILD FAILED
C:\Documents and Settings\hbd6345\My
Documents\general\dev\inventory\build.xml:289: C:\Program Files
Apache Software FoundationTomcat 5.5\common\endorsed not found.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to