Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 44865 invoked from network); 7 Jan 2003 17:27:53 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 7 Jan 2003 17:27:53 -0000 Received: (qmail 6041 invoked by uid 97); 7 Jan 2003 17:27:54 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 5994 invoked by uid 97); 7 Jan 2003 17:27:53 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 5967 invoked by uid 98); 7 Jan 2003 17:27:53 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3E1B0DA7.8000009@germane-software.com> Date: Tue, 07 Jan 2003 09:25:59 -0800 From: Dale Anson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Basedir not working References: <0AC2D75550100F4DBDB025D4D05611888C994A@BIGCOW.intraephox.ephox.com> X-Enigmail-Version: 0.65.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Could it be that you need a path separator after ${xml-files}? Jerome Paul wrote: >Hi, > I'm using xml files that make use of includes and I want to use the style >task to convert these xml documents to html. In order for the entities to >be found by ant I have to use absolute pathnames or really cumbersome >relative paths. > > My latest attempt is to have a build file for each root xml document in >the same folder (along with the xml files to be included). I then call >these build files as sub projects of my main build file and specify the >folder that contains the build file and the xml documents as the base >directory. The files don't get found when I run the build files as sub >projects but these same build files when run from the command prompt do >work... > > I've tried using xml catalogs to resolve the entities by specifing the >absolute path and no fatal errors occur when I did this but the entities >werenot included in translated document. (xml catalogs arn't what I want to >use anyway). I've also tried specifying the basedir attribute of the style >task and this doesn't work either. > >I've attached an example of code I'm using > > > > antfile="htmlbuild.xml" > dir="${xml-files}documents"/> > antfile="htmlBuild.xml" > dir="${xml-files}project/requirements"/> > >Does anyone know how to force ant to use look in the same directory as the >xml document of entities without having to specify absolute paths or paths >relative to the main build file? > >Cheers >Jerome Paul > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > > > -- To unsubscribe, e-mail: For additional commands, e-mail: