Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8E809F15 for ; Fri, 17 Feb 2012 13:07:36 +0000 (UTC) Received: (qmail 98380 invoked by uid 500); 17 Feb 2012 13:07:36 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 98202 invoked by uid 500); 17 Feb 2012 13:07:36 -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 98193 invoked by uid 99); 17 Feb 2012 13:07:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2012 13:07:36 +0000 X-ASF-Spam-Status: No, hits=4.7 required=5.0 tests=FREEMAIL_FORGED_REPLYTO,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.213.164] (HELO nm14-vm0.bullet.mail.bf1.yahoo.com) (98.139.213.164) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 17 Feb 2012 13:07:26 +0000 Received: from [98.139.212.152] by nm14.bullet.mail.bf1.yahoo.com with NNFMP; 17 Feb 2012 13:07:04 -0000 Received: from [98.139.212.199] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 17 Feb 2012 13:07:04 -0000 Received: from [127.0.0.1] by omp1008.mail.bf1.yahoo.com with NNFMP; 17 Feb 2012 13:07:04 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 595547.23992.bm@omp1008.mail.bf1.yahoo.com Received: (qmail 85877 invoked by uid 60001); 17 Feb 2012 13:06:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1329483994; bh=dVoEGDN+7qv4PItWAtQhwVoDH9scXy3UM8ZWLwmRVGI=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=jgq9ULIjSB/+62oWAiVU6xDCedwv8hsf/VgX3PLTcVuHYLFwxwAuEs6tksVfYcncrPtg61G5GX1DbRbTDbi8o+DNP8Wz7MmMaUdzr+4JQJW74luIu1elABk0N3kJsVA/MqX4h5uljCLP1cEOo7B9c9vg+NaGT6Ok+5+RWGoG5Sw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=ztNLq1YTh402I3vN4AWzQOhvyAVyrLBVUsvqr1IhZajYXQxUTy0pAtp4PiY73f1ydBG9VFgehMHKleQ7+8emam2/r4cSE7NbEo/R++2NgPOaKn/JSzLHRFRXa6IXqAnYGEVoS/MMm1RQISDlXfQOkMyMWDT1lOazImPBfZVTU5k=; X-YMail-OSG: trNTkOcVM1mhlP9F5obSarySw4zhj4qnavAXRSAGR_Hu0VK qFGSel2COddcq5FYz_EaNV.IJp_EuIZbFB6kBAz_JCysCj2hedfnQGX8rbL0 g8W3h4pB8y25wSmnC31E4PrKKGB5mZwL_gWKT0ODq2QXxLz8ISX4vUKkI08m pgxdcnXAUZJhrMamqxRK.ddj.Yrkv8mfbxKrM74hA.sasS02SVsZOYkOID9t mZ7.yS3p7uJT8dvsCM3m9.kziqZUrZPX0fh_AAfNLkPZ4Erz74JjDkqbbpJo O5flaOmpKFd7ORNXSMmugv5aI2rZpCWAWJRhXFwZNzbw2GH3XRq2qe_Kf3E1 .m4W4kz7Ny6Kk.v8PAvNO1pYLtadkC6vG6V6iFep6BMwgsZPoyQ3InBgsB2m FUtukX1v9ZcJWSfpe4ilTB1ErY1qDE7ZgUXdoKX4y6b26kGN1KjQnSAC7fDZ Z7OBAJ_9npwRljSdwh0aTlrjpyHoxq_fhYrzM1Pgu.xdpQQ-- Received: from [24.18.119.219] by web161203.mail.bf1.yahoo.com via HTTP; Fri, 17 Feb 2012 05:06:34 PST X-Mailer: YahooMailWebService/0.8.116.338427 References: Message-ID: <1329483994.54377.YahooMailNeo@web161203.mail.bf1.yahoo.com> Date: Fri, 17 Feb 2012 05:06:34 -0800 (PST) From: Vimil Saju Reply-To: Vimil Saju Subject: Re: Feature request: if/unless on command line arguments To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-852950040-1487700693-1329483994=:54377" X-Virus-Checked: Checked by ClamAV on apache.org ---852950040-1487700693-1329483994=:54377 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Can't you use the if task from ant-contrib?=A0=0A=0A=0A____________________= ____________=0A From: "Steele, Richard" =0ATo: user@an= t.apache.org =0ASent: Friday, February 17, 2012 4:34 AM=0ASubject: Feature = request: if/unless on command line arguments=0A =0AI think it would be conv= enient to have command-line arguments take optional=0Aif/unless attributes = that work much like those on targets.=A0 My use case is=0Awith the = task where I want to conditionally pass in an -Xlint=0Aoption:=0A=0A=0A=A0 = =A0 =A0 =A0 =A0 =A0 =0A=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =0A=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 .=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .=0A= =A0 =A0 =A0 =A0 =A0 =A0 =0A=0AI think my only choice now is to play= games with the compiler attribute on=0Acompilerarg: use a to s= et the compiler to a bogus value,=0Asomething like this:=0A=0A=A0 =A0 =A0 = =A0 =A0 =A0 =0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A=A0 =A0 =A0 =A0 =A0 =A0 =0A=A0 =A0 =A0 =A0 =A0= =A0 =0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =0A=A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 .=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .= =0A=A0 =A0 =A0 =A0 =A0 =A0 =0A=0AIf there's consensus that this is = generally useful I'll write up a formal=0Afeature request.=0A=0ARich ---852950040-1487700693-1329483994=:54377--