From user-return-72230-apmail-ant-user-archive=ant.apache.org@ant.apache.org Fri Feb 17 12:35:28 2012 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 2D8F695F6 for ; Fri, 17 Feb 2012 12:35:28 +0000 (UTC) Received: (qmail 10019 invoked by uid 500); 17 Feb 2012 12:35:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 9937 invoked by uid 500); 17 Feb 2012 12:35:26 -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 9926 invoked by uid 99); 17 Feb 2012 12:35:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2012 12:35:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.212.45] (HELO mail-vw0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2012 12:35:21 +0000 Received: by vbal1 with SMTP id l1so2835231vba.4 for ; Fri, 17 Feb 2012 04:35:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=steelezone.net; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=WCvsEGENXiC0QD7ksqwHhotGppOJV47BUeJnf95aqVE=; b=fmKeXYJ/SFkBfNQWpfFHfYYr6ljhRxB6E0+DmvTGrhn9/MVc5OjnBxNHn+qvRUC5g6 AnIFwO+VNhSHMXaE5Kl7l9nmjWdkb4MFEsASuXJ8LF5rxqnP+uj6V4pXIYlqHuMGJPJy 6fQCTlIjLz6ITZMQA4LtoTJ3vKKoTBOGyLEmU= MIME-Version: 1.0 Received: by 10.52.67.35 with SMTP id k3mr2982080vdt.38.1329482099978; Fri, 17 Feb 2012 04:34:59 -0800 (PST) Received: by 10.52.36.16 with HTTP; Fri, 17 Feb 2012 04:34:59 -0800 (PST) Date: Fri, 17 Feb 2012 07:34:59 -0500 Message-ID: Subject: Feature request: if/unless on command line arguments From: "Steele, Richard" To: user@ant.apache.org Content-Type: multipart/alternative; boundary=20cf307abe714df12e04b9282cf4 X-Gm-Message-State: ALoCoQnLul10wCk9RcfhudlRLhO23r4FmMyxsmLI6e8UZjn7d03cEhgUrEil4KstdWbyaLu+aleU --20cf307abe714df12e04b9282cf4 Content-Type: text/plain; charset=ISO-8859-1 I think it would be convenient to have command-line arguments take optional if/unless attributes that work much like those on targets. My use case is with the task where I want to conditionally pass in an -Xlint option: . . . I think my only choice now is to play games with the compiler attribute on compilerarg: use a to set the compiler to a bogus value, something like this: . . . If there's consensus that this is generally useful I'll write up a formal feature request. Rich --20cf307abe714df12e04b9282cf4--