Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 48072 invoked from network); 29 Oct 2008 05:41:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2008 05:41:27 -0000 Received: (qmail 28696 invoked by uid 500); 29 Oct 2008 05:41:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 28661 invoked by uid 500); 29 Oct 2008 05:41:25 -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 28650 invoked by uid 99); 29 Oct 2008 05:41:25 -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 22:41:25 -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 [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2008 05:40:10 +0000 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.0/8.14.0) with ESMTP id m9T5emCe025049 for ; Wed, 29 Oct 2008 06:40:48 +0100 Received: from z011102.bk.fin.local ([130.11.7.102]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.1830); Wed, 29 Oct 2008 06:40:48 +0100 Received: from z011021.bk.fin.local ([130.11.7.21]) by z011102.bk.fin.local with Microsoft SMTPSVC(6.0.3790.1830); Wed, 29 Oct 2008 06:40:48 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: How to access the basedir of ANOTHER project in Eclipse? Date: Wed, 29 Oct 2008 06:40:48 +0100 Message-ID: <9EE86F1965E19E499C80DE52AC807B5501B6F5E0@z011021.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to access the basedir of ANOTHER project in Eclipse? Thread-Index: Ack5KuadU+TbFH1LQU6PoslNGNfEGwAXdIxg References: <610401.26440.qm@web55104.mail.re4.yahoo.com> From: To: X-OriginalArrivalTime: 29 Oct 2008 05:40:48.0719 (UTC) FILETIME=[E59A25F0:01C93988] X-Virus-Checked: Checked by ClamAV on apache.org Ok, I thought you want to Ant to search the other project, which isnt = possible. But Eclipse knows that and could provide that information (like Carlos = and Matt said). But in that case a CI tool must provide that information too. Jan=20 >-----Urspr=FCngliche Nachricht----- >Von: Matt Benson [mailto:gudnabrsam@yahoo.com]=20 >Gesendet: Dienstag, 28. Oktober 2008 19:27 >An: Ant Users List >Betreff: Re: How to access the basedir of ANOTHER project in Eclipse? > >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 >>=20 >> -D=3D >>=20 >> 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} >>=20 >> for example >> MyVar=3D/home/myuser/myworkspace/ >>=20 >> Then you can do >>=20 >> -DMyproperty=3D${MyVar}/projectBBB/src >>=20 >> That should to the trick >>=20 >>=20 >> 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=FCngliche 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 (=3Dabsolute) but >> > >relative to the current workspace. It should go >> similar like: >> > > >> > >> > >> >value=3D"${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 >> > >>=20 > > > > =20 > >--------------------------------------------------------------------- >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