Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 4604 invoked from network); 18 Mar 2008 06:08:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2008 06:08:24 -0000 Received: (qmail 58112 invoked by uid 500); 18 Mar 2008 06:08:15 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 58076 invoked by uid 500); 18 Mar 2008 06:08:14 -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 58065 invoked by uid 99); 18 Mar 2008 06:08:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 23:08:14 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of suhasrm@gmail.com designates 64.233.166.181 as permitted sender) Received: from [64.233.166.181] (HELO py-out-1112.google.com) (64.233.166.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 06:07:36 +0000 Received: by py-out-1112.google.com with SMTP id f31so7131023pyh.17 for ; Mon, 17 Mar 2008 23:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=HBElT8NiynW45PZqEfxsuaEvAyFN1yBp3QHJkw0SD/Q=; b=oPv3ojtWiYJ+neg05YQAgWcA27+XfuF4GYERaO3JZrovWx+t5KDqh8VFwLGotGfR0MMoporVJ+h0nMLScn97LC0ZXccju8Rzq0VRB6LXvY2GYkW5oLEMd2vJuAHgy7a5F5rI3/x+Zdn5CptPR49RQTooCw47PETJ6NYw4x+sav0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=G1OA1w9FbOXjbGj67GdB/JQ8tLj0zJ/qjLcZWQGMlEqSDK0FDWHNI8EjBXx+vbXS+JKyYiyzTIly0kMWlhAXjYSqnQbZBwakcm/S+qpHleNBKiD+uo7sZ7FqhOS8r90skcpNgh/gNJCjKxqD2idDKjAbojjmNg72xUqPqfZuRT0= Received: by 10.114.110.12 with SMTP id i12mr903562wac.73.1205820467205; Mon, 17 Mar 2008 23:07:47 -0700 (PDT) Received: by 10.114.156.19 with HTTP; Mon, 17 Mar 2008 23:07:47 -0700 (PDT) Message-ID: <1ab40b640803172307r52721423l4026244451f3b9e2@mail.gmail.com> Date: Tue, 18 Mar 2008 11:37:47 +0530 From: "Suhas Majale" To: user@ant.apache.org Subject: Using environment variable in SCP MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12159_1772890.1205820467196" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_12159_1772890.1205820467196 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline HI all, I am very new to ant and am using the SCP to transfer files from windows to linux (FC 6) machine. Following is the code, ** * ** * The *solr.home.path* is getting read from the associated properties file. When I assign absolute path for solr.home.path the transfer works successfully. i.e *solr.home.path=/root/solr-deploy/solr* Now instead of giving the absolute path, I tried giving environment variable that is set for that path. When I do so, the transfer fails. *solr.home.path=$SOLR_HOME* Can we use environment variable in SCP ? If yes, what is the way we do it? Regards, Suhas M ------=_Part_12159_1772890.1205820467196--