Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 50179 invoked from network); 28 Oct 2008 18:27:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2008 18:27:51 -0000 Received: (qmail 4868 invoked by uid 500); 28 Oct 2008 18:27:52 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 4825 invoked by uid 500); 28 Oct 2008 18:27:52 -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 4814 invoked by uid 99); 28 Oct 2008 18:27:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 11:27:52 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [206.190.58.153] (HELO web55104.mail.re4.yahoo.com) (206.190.58.153) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 28 Oct 2008 18:26:39 +0000 Received: (qmail 26673 invoked by uid 60001); 28 Oct 2008 18:27:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=z6WQIgZwnrD8nLvFILOYW5OeT6uay76L8ORk83jMN7JZ5sQ7/Rh9aXdLZ9K2NDGsIcZQdDvTDxOTvzib5jKoNwCb+YiyKQyHgDDHDpjFZoTQFKnCFd3VZGxfUFZexvDg4EUsURpjz0UzReYjb0AHVsO5jln4Y5lHKuao6AvYMSg=; X-YMail-OSG: dctHy9QVM1nHtSXiaM.dxgaRrJTJ0UyaR16wlXPVMEVLx0Xge3yOHmFcEy1GtFMCey9qac2DsN6IYJsidlemn.vhMA8iYKE2Udr8MF.bmv9fAWLW5QTvF6FKS98.nXhocGAVdaFt_UC_ECrXZbaOIaGOEMPUTZE_j_6oyOdqeVKFkAJm4B9rwayNAzw- Received: from [67.142.130.26] by web55104.mail.re4.yahoo.com via HTTP; Tue, 28 Oct 2008 11:27:18 PDT Date: Tue, 28 Oct 2008 11:27:18 -0700 (PDT) From: Matt Benson Subject: Re: How to access the basedir of ANOTHER project in Eclipse? To: Ant Users List In-Reply-To: <62e18c920810281019y36ae2870gde85e60873f75564@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <610401.26440.qm@web55104.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org If you just have your projects all checked out directly into the workspace, there's no real trick to using: Alternatively you could possibly add such a property to your base Ant config in Eclipse, but since I'm not using that there may be some reason I don't presently recall. ;) HTH, Matt --- Carlos Ortiz wrote: > Actually it is posible but you must run the > build.xml as a external > tool in eclipse then send as a argument > > -D= > > Yet there is a small trick since ${workspace_loc} > variable won't work > you have to create a new variable with the same > value of > ${workspace_loc} > > for example > MyVar=/home/myuser/myworkspace/ > > Then you can do > > -DMyproperty=${MyVar}/projectBBB/src > > That should to the trick > > > 2008/10/28 > > > > AFAIK you cant: > > - Ant doesnt know anything about Eclipse. > > - An Eclipse workspace knows its projects but a > project does not know its workspace. > > Therefore parsing the .classpath and .project > files wouldnt help. > > > > Jan > > > > >-----Urspr�ngliche Nachricht----- > > >Von: Ben Stover [mailto:bxstover@yahoo.co.uk] > > >Gesendet: Montag, 27. Oktober 2008 23:27 > > >An: user@ant.apache.org > > >Betreff: How to access the basedir of ANOTHER > project in Eclipse? > > > > > >Assume I use a build.xml in Project AAA. > > >As part of a property definition I want to define > a folder from > > >ANOTHER project BBB within the same Eclipse > installation. > > > > > >However the actual path should NOT be entered > directly (=absolute) but > > >relative to the current workspace. It should go > similar like: > > > > > > > > >value="${basedirofcurrentworkspace}/projectBBB/src" > /> > > > > > >How can I refer this external dir with Ant? > > > > > > > > >Ben > > > > > > > > > > > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > > >For additional commands, e-mail: > user-help@ant.apache.org > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > > For additional commands, e-mail: > user-help@ant.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org