Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 63499 invoked from network); 31 Mar 2008 22:17:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Mar 2008 22:17:04 -0000 Received: (qmail 3795 invoked by uid 500); 31 Mar 2008 22:17:04 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 3767 invoked by uid 500); 31 Mar 2008 22:17:04 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 3758 invoked by uid 99); 31 Mar 2008 22:17:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 15:17:04 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 22:16:22 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id B480C234C0B2; Mon, 31 Mar 2008 15:14:39 -0700 (PDT) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 44718] New: allow 'if' and 'unless' on macrodef X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: michael.giroux@bull.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 31 Mar 2008 15:14:39 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=44718 Summary: allow 'if' and 'unless' on macrodef Product: Ant Version: unspecified Platform: PC OS/Version: Windows XP Status: NEW Severity: enhancement Priority: P2 Component: Core tasks AssignedTo: notifications@ant.apache.org ReportedBy: michael.giroux@bull.com We have a build environment that allows developers to do a build on a remote system using SCP and SSH tasks when the build is invoked from a system other than the build system. If the developer is logged in directly to the build system, then the build uses and tasks instead. Currently we use macrodef to generalize the SCP and SSH commands. When doing a local build, the macrodef uses the and instead. Our current build uses two separate xml files to define macrodefs for local and remote build initiation and a to set a property with the filename of the desired macrodef.xml file. This build could be simplified if the macrodef allowed if/unless attributes. That would allow us to include two macrodefs in a single build.xml and allow ANT to select the correct one based on the condition. Does this sound like the sort of thing that would have general interest? We hope so :) -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.