ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 44718] New: allow 'if' and 'unless' on macrodef
Date Mon, 31 Mar 2008 22:14:39 GMT

           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

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 <copy> and <exec> tasks instead.

Currently we use macrodef to generalize the SCP and SSH commands.  When doing a
local build, the macrodef uses the <copy> and <exec> instead.  Our current
build uses two separate xml files to define macrodefs for local and remote
build initiation and a <condition> 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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message