Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 39760 invoked from network); 10 Sep 2002 16:31:17 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 10 Sep 2002 16:31:17 -0000 Received: (qmail 7665 invoked by uid 97); 10 Sep 2002 16:31:48 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 7638 invoked by uid 97); 10 Sep 2002 16:31:47 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 7621 invoked by uid 98); 10 Sep 2002 16:31:47 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <002001c258e7$78830fa0$1b1d570f@nevis> From: "Steve Loughran" To: "Ant Developers List" References: <001401c2589d$ce75eda0$900a0a0a@expresso.nl> Subject: Re: Bug 3129 - task proposal Date: Tue, 10 Sep 2002 09:31:10 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "Rob van Oostrum" To: "Ant Developers List" Sent: Tuesday, September 10, 2002 00:43 Subject: Re: Bug 3129 - task proposal > Sounds like what you're really looking for is an Ant-version of the which > command. > > Something like where > basedir is optional and represents the directory from which to run 'which'. > > Should be easy enough for Linux/Unix. Not sure how I would prefer to do this > on Win32 though. For users with the cygwin bin directory in their paths the > task could use cygwin which (check with this doesn't fly, the task should probably append the filename to each path > element and run an until it finds a match or runs out of path > elements . Anybody working on this yet? Any suggestions? Available does search for a file on a path; this code could be used as the basis for . > > > cheers > Rob > > ----- Original Message ----- > From: "Stefan Bodewig" > To: > Sent: Tuesday, September 10, 2002 8:18 AM > Subject: Re: Bug 3129 > > > > On Mon, 9 Sep 2002, Dominique Devienne wrote: > > > > > You can get the absolute pathname of your executable on Win32 using: > > > > > > > > /> > > > > > > and use ${ssh.exe} thereafter. > > > > Are you sure? > > > > I'd think this property would be either unset or "true" after that > > task. Yep: > > > > [bodewig@bodewig bodewig]$ cat > /tmp/ssh.xml > > > > > > > > > > ${ssh} > > > > > > [bodewig@bodewig bodewig]$ ant -f /tmp/ssh.xml -verbose > > Apache Ant version 1.6alpha compiled on September 9 2002 > > Buildfile: /tmp/ssh.xml > > ... > > foo: > > [property] Loading Environment env. > > [available] Found: ssh in /usr/bin > > [echo] true > > > > BUILD SUCCESSFUL > > Total time: 3 seconds > > > > Stefan > > > > -- > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: