ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52407] Support "default" values for command line arguments
Date Thu, 12 Jan 2012 15:47:01 GMT

Stefan Bodewig <> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME
         OS/Version|                            |All

--- Comment #1 from Stefan Bodewig <> 2012-01-12 15:47:01 UTC ---
There already is a way to provide default values for properties, the property

What you are trying to do is

<target name="mycall">
  <property name="url" value=""/>
  <java ...>
    <arg value="${url}"/>

where the property task won't do anything if the url property has already been
set via the command line.

Another option would be the props Antlib with something like

  <java ...>
    <arg value="${url:=}"/>

but since it hasn't been released yet, I'm reluctant to recommending it.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message