Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 68525 invoked from network); 26 Aug 2006 14:08:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Aug 2006 14:08:38 -0000 Received: (qmail 40481 invoked by uid 500); 26 Aug 2006 14:08:30 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 40440 invoked by uid 500); 26 Aug 2006 14:08:29 -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 40429 invoked by uid 99); 26 Aug 2006 14:08:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Aug 2006 07:08:29 -0700 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_00_10,HTML_MESSAGE,NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of johann.petrak@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; Sat, 26 Aug 2006 07:08:28 -0700 Received: by py-out-1112.google.com with SMTP id 39so1460094pyu for ; Sat, 26 Aug 2006 07:08:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=TDor1dJKZUqd/+9HAUfC82jyoPG+PkqBWiqNKuJ5uzCOoL6r4j/EiDphpPpyDmd1JdsF7R0x76Dw4Z5nRMn4NFMEKFIiC5xFOrUxwVFk3Pe+RKdvsyoyxux4PpzqO8mRm2yiOgRE7mWvbk0n7CJaKnyItfHpNzENN0aYm4hHgPc= Received: by 10.65.219.4 with SMTP id w4mr4956907qbq; Sat, 26 Aug 2006 07:08:08 -0700 (PDT) Received: by 10.65.253.18 with HTTP; Sat, 26 Aug 2006 07:08:08 -0700 (PDT) Message-ID: Date: Sat, 26 Aug 2006 16:08:08 +0200 From: johann.petrak@gmail.com To: user@ant.apache.org Subject: Passing command line arguments to the "run" target?? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_77611_4929458.1156601288180" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_77611_4929458.1156601288180 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I am using ant to compile a Java program that depends on quite a large number of other libraries. This program handles command line parameters of the form "--opt1 value1 -v --opt2 val2 arg1 arg2" etc. I would like to run the program from within an ant task so that I can make use of how ant can collect the classpath etc., but I would like to pass such command line parameters on the program being called in the run task. This must be something that is needed quite often when developing Java programs that use command line options. How can I do this? ------=_Part_77611_4929458.1156601288180--