Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 91733 invoked from network); 17 Dec 2002 17:46:39 -0000 Received: from exchange.sun.com (HELO nagoya.betaversion.org) (192.18.33.10) by daedalus.apache.org with SMTP; 17 Dec 2002 17:46:39 -0000 Received: (qmail 20404 invoked by uid 97); 17 Dec 2002 17:47:40 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 20374 invoked by uid 97); 17 Dec 2002 17:47:39 -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 20362 invoked by uid 98); 17 Dec 2002 17:47:39 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: From: Dominique Devienne To: "'Ant Users List'" Subject: RE: Changing directory calling a target Date: Tue, 17 Dec 2002 11:46:26 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Targets do not execute in any directory... Ant executes within a JVM which is executed from the current directory. Targets contain tasks (which are usually implemented in pure Java) that execute within that JVM. These tasks are configured to operate on specified directories explicitly (or implicitly based on the global 'basedir', which cannot be overridden), but usually do not care which current directory ant is running from (the basedir attribute is the key info!). That said, there are a few tasks that fork a new JVM or another process, for which the current directory could matter, but beside /, I doubt many other tasks of Ant Core are influenced by the working dir. Not knowing what you 'execute', it's hard to say much more. I hope this helps though. --DD -----Original Message----- From: Pascal_Rapicault@ca.ibm.com [mailto:Pascal_Rapicault@ca.ibm.com] Sent: Tuesday, December 17, 2002 9:06 AM To: ant-user@jakarta.apache.org Subject: Changing directory calling a target Hello, I'm new to Ant, so please excuse me for this basic question. I have a target A that calls a target B (A and B are in the same file), and whereas the target A executes into the directory FOO, I'd like the target B to be executed into the directory BAR. I tried to override the basedir (with the value BAR), after setting the inheritAll property to false, but the overriding is ignored. How can I do that? I got something working putting the target B into another file, but I'd like to avoid using this solution which I found very ugly. Thank you PaScaL -- To unsubscribe, e-mail: For additional commands, e-mail: