From user-return-33988-apmail-ant-user-archive=ant.apache.org@ant.apache.org Sat Jun 21 10:31:18 2003 Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 34409 invoked by uid 500); 21 Jun 2003 10:31:18 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 34398 invoked from network); 21 Jun 2003 10:31:17 -0000 Received: from relay1.tiscali.de (HELO webmail.tiscali.de) (62.26.116.129) by daedalus.apache.org with SMTP; 21 Jun 2003 10:31:17 -0000 Received: from DJ0X820J (80.128.224.133) by webmail.tiscali.de (6.7.018) id 3EF0C98000031F16 for user@ant.apache.org; Sat, 21 Jun 2003 12:31:15 +0200 Message-ID: <003601c337e0$5f355ac0$030200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Users List" References: <000001c337d3$301426c0$1b01a8c0@taltos> Subject: Re: Sample for task with file attribute Date: Sat, 21 Jun 2003 12:32:02 +0200 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 Tamas, from the documentation this means the following : if you do this ant will execute myprog with an environment variable called SOME_FILE_LOCATION, whose value is going to be ../../etc/somefile resolved according to ant rules, which means that the base directory of the build file will be prepended to ../../etc/somefile. So no, this is not a way to import environment variables from a file. You can invoke a shell script from ant if you want to have your environments variables in a file. In this case just pay attention to the fact that for shell scripts, the executable is your shell interpreter and the shell script an argument. For instance for a Bourne Shell script, you should do : Antoine ----- Original Message ----- From: "Tamas Nagy" To: Sent: Saturday, June 21, 2003 10:57 AM Subject: Sample for task with file attribute > Hello, > > I'm looking for a sample for the task, which shows how to use the > file attribute. The manual only states: > "The value for the env. Variables". Will be replaced by the absolute > filename of the file by Ant" > Is this allows importing the environment variables from a file? > > Thanks, > Tamas > > > --------------------------------------------------------------------- > 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