From ant-user-return-13671-apmail-jakarta-ant-user-archive=jakarta.apache.org@jakarta.apache.org Wed Oct 17 16:03:44 2001 Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 8788 invoked by uid 500); 17 Oct 2001 16:03:44 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 8739 invoked from network); 17 Oct 2001 16:03:42 -0000 Message-ID: <68CD54726A22D411A24D00A0C9ECD6E202D873B8@hulk.meb.co.za> From: Albertus Vermeulen To: "'ant-user@jakarta.apache.org'" Subject: Environment variable before executable Date: Wed, 17 Oct 2001 18:03:12 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C15725.38FDAD00" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C15725.38FDAD00 Content-Type: text/plain; charset="iso-8859-1" Hi, I would like to execute a system command, but I want to add an environment variable before the executable name (note it has to be in front of the executable). For example: OSAGENT_PORT=20000 vbj myClass I can't seem to find a way of using the exec task to achieve this. Making use of the tag also does not solve my problem. Am I missing something in using the exec task ? Is there some other way for me to possibly achieve this ? Any help would be appreciated. Albertus ------_=_NextPart_001_01C15725.38FDAD00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Environment variable before executable

Hi,

I would like to execute a system = command, but I want to add an environment variable before the = executable name (note it has to be in front of the executable). For = example:

OSAGENT_PORT=3D20000 vbj = myClass

I can't seem to find a way of using = the exec task to achieve this. Making use of the <env> tag also = does not solve my problem. Am I missing something in using the exec = task ? Is there some other way for me to possibly achieve this = ?

Any help would be appreciated.

Albertus

------_=_NextPart_001_01C15725.38FDAD00--