Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83FB9F96B for ; Thu, 18 Apr 2013 11:30:44 +0000 (UTC) Received: (qmail 61346 invoked by uid 500); 18 Apr 2013 11:30:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 61174 invoked by uid 500); 18 Apr 2013 11:30:43 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 61146 invoked by uid 99); 18 Apr 2013 11:30:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 11:30:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of michael.niemand@gmail.com designates 209.85.210.171 as permitted sender) Received: from [209.85.210.171] (HELO mail-ia0-f171.google.com) (209.85.210.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 11:30:36 +0000 Received: by mail-ia0-f171.google.com with SMTP id f27so2360104iae.16 for ; Thu, 18 Apr 2013 04:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=657Y7UgDLNlCMXd5Dv4DtJU0gVwKm7VvB8gdLenW+a8=; b=UTr/MyIjIILqBfZrdsFE1ql+RRm19SCqkfTwyNS/jNKAu5yk84LCVx/w7+OidfwnsY CW/GGK8CuWY2i2UpO6N+Z65W7KvNnq0DcOZIWPWBC2AEIxFsqicFlqSXwdRCXf1S2Xm5 7fyd8QfPij6uFZsHmfVd5PzUi5sJK+dv1PsiakRphZV2sxfe0vpzCLlW3p1Yx3NNeA16 i49V93PcNLkw8nKIxbrCdJGPin9ndHTFrMqgX8rIiuM2Y2bKhbsXxW7tS1qmxzorI7ip 6oTn7EFGF9PEKMR3wKVe/0roEnWcp1HPGq8DDqJZUUHpulN9lW30kjLEpnk+NX4vVWuy 3lcw== MIME-Version: 1.0 X-Received: by 10.50.170.36 with SMTP id aj4mr6475730igc.4.1366284615333; Thu, 18 Apr 2013 04:30:15 -0700 (PDT) Received: by 10.64.23.38 with HTTP; Thu, 18 Apr 2013 04:30:15 -0700 (PDT) In-Reply-To: References: <003701ce3bfc$3117e510$9347af30$@de> Date: Thu, 18 Apr 2013 13:30:15 +0200 Message-ID: Subject: Re: basedir setting not working? From: Michael Niemand To: Ant Users List Content-Type: multipart/alternative; boundary=e89a8f234a512a7dfe04daa0edab X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f234a512a7dfe04daa0edab Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ok, nevermind, I've found the problem. In the ant script I call the other ant script, I set the "dir" property to location A, so the basedir is taken from there ... On Thu, Apr 18, 2013 at 1:07 PM, Michael Niemand wrote: > Thanks Jan, > > I check out the project to 2 different locations. Hence the build file > resides in 2 different locations. yet, the basedir is the same in both > locations. This results in a failed build in one location. > > > > On Thu, Apr 18, 2013 at 8:15 AM, Jan Mat=E8rne (jhm) w= rote: > >> The "." in the basedir attribute is relative to the buildfile itself, no= t >> the current directory. >> You could access that via ${user.dir} : >> >> >> BaseDir: ${basedir} >> UserDir: ${user.dir} >> >> >> You can't set that value as basedir because at the time when basedir is >> set, >> the system properties aren't populates as Ant properties. >> (Also I would not do that because can't be sure from where a user is >> calling >> the buildfile with strange site effects ... think of a "ant clean" in yo= ur >> home dir?) >> >> >> Jan >> >> > -----Urspr=FCngliche Nachricht----- >> > Von: Michael Niemand [mailto:michael.niemand@gmail.com] >> > Gesendet: Mittwoch, 17. April 2013 16:12 >> > An: user@ant.apache.org >> > Betreff: basedir setting not working? >> > >> > Hi folks, >> > >> > my basedir setting doesnt seem to work. >> > >> > I have the same project I check out to two different locations. >> > >> > in the second project the basedir setting doesnt seem to work. >> > >> > Here's what I do: >> > >> > > > > >> > >> > >> > > > ${basedir}" >> > /> >> > >> > > > ${basedir}" >> > /> >> > >> > >> > >> > The result is always: >> > >> > [echo] *** what's considered basedir before setting it: >> > M:\path\to\A >> > [echo] *** what's considered basedir after setting it: >> > M:\path\to\A >> > >> > >> > even though I execute the ant-skript in M:\path\to\B >> > >> > >> > I thought basedir is always the path where the build.xml itself >> > resides? >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >> >> > > > -- > Dipl.-Ing. (FH) *Michael Niemand** > * > Albusstr. 17 > 60313 Frankfurt/M > Germany > > Tel.: +49 (0) 69 200 130 60 > Mobile: +49 (0) 171 645 29 07 > > eMail: michael.niemand@gmail.com > sip:1406283@sipgate.de > --=20 Dipl.-Ing. (FH) *Michael Niemand** * Albusstr. 17 60313 Frankfurt/M Germany Tel.: +49 (0) 69 200 130 60 Mobile: +49 (0) 171 645 29 07 eMail: michael.niemand@gmail.com sip:1406283@sipgate.de --e89a8f234a512a7dfe04daa0edab--