Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 75244 invoked by uid 500); 16 May 2001 06:34:23 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 75230 invoked from network); 16 May 2001 06:34:21 -0000 Message-Id: <3.0.6.32.20010516163909.01e128a0@mail.alphalink.com.au> X-Sender: gdonald@mail.alphalink.com.au X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Wed, 16 May 2001 16:39:09 +1000 To: ant-user@jakarta.apache.org From: Peter Donald Subject: Re: How are relative paths resolved? Cc: "Ant-User" In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N At 09:57 15/5/01 -0700, Robert Nicholson wrote: >ERROR: ejb-jar file: ../build/customerEjb.jar could not be opened. > >You see. every rule resolves correctly to an absolute path except this >value. > >I was trying to use the ant that ships with the Petstore rather than >configure up another version and have to configure the parser factory up. I would recomend getting latest version - basically for the bugfixes. >So how exactly are paths resolved in Ant or am I clutching at straws here? Well the only time Files are resolved is when they are attributes of tasks. In which case they are resolved agains project directory. In the above example you are substituting a property into a string which means value is not resolved at all. To fix it download latest ant and look in the documentation for property task (namely at the location attribute). Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*