Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 59541 invoked from network); 1 Nov 2000 22:44:16 -0000 Received: from shell8.ba.best.com (steffi@206.184.139.139) by locus.apache.org with SMTP; 1 Nov 2000 22:44:16 -0000 Received: from localhost (steffi@localhost) by shell8.ba.best.com (8.9.3/8.9.2/best.sh) with ESMTP id OAA13733; Wed, 1 Nov 2000 14:44:17 -0800 (PST) From: robert@elastica.com X-Authentication-Warning: shell8.ba.best.com: steffi owned process doing -bs Date: Wed, 1 Nov 2000 14:44:17 -0800 (PST) X-Sender: steffi@shell8.ba.best.com Reply-To: robert@elastica.com To: "'ant-user@jakarta.apache.org'" Subject: RE: make -D in ant? In-Reply-To: <13356BB49A60D311A446009027B0F4670166D04A@bayexch2.discoverbrokerage.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Ant doesn't evaluate the -Dproperty from the commandline when setting the baseDir. It sets the base dir to literally ${rootDir} On Wed, 1 Nov 2000, Ventimiglia, David wrote: > Maybe I'm missing something, but why doesn't ant -Dbasedir=C:\plymediadev > work? > > -----Original Message----- > From: robert@elastica.com [mailto:robert@elastica.com] > Sent: Wednesday, November 01, 2000 11:04 AM > To: Samuel R Listopad II > Cc: ant-user@jakarta.apache.org; robert@elastica.com > Subject: RE: make -D in ant? > > > What can we expect? It would definately be nice to be able to pass in > properties from the command line especially for baseDir or for that > matter anything else. I don't want to keep these references in the > .xml file. > > On Wed, 1 Nov 2000, Samuel R Listopad II wrote: > > > > > > > > > > and > > > > > > ant -DrootDir=C:\plymediadev > > > > > > I want to hide all references to absolute paths outside of > > > the build file. > > > > > > when I do this it doesn't evaluate $rootDir as I would expect. > > > > Ok this is what I was getting at with my last post (albeit poorly). Ant > 1.2 > > only seems > > to evaluate properties at creation time. However I would propose a more > > dynamic system > > where properties were recursively evaluated whenever used. > > > > i.e. in this case when ${basedir} used it would lookup basedir in the > hash, > > get the value > > of ${rootDir}, and the try to extract rootDir from the hashmap and find > > C:\plymediadev. > > > > Its a simple change, I was just wondering if it had already been thought > of > > and done/shot down > > for some glaring reason I could not see. > > > > Sam > > >