[
http://jira.codehaus.org/browse/MPLUGIN-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter moved MNG-1959 to MPLUGIN-47:
------------------------------------------
Affects Version/s: (was: 2.0.1)
Fix Version/s: (was: 2.0.x)
Component/s: (was: Plugin Creation Tools)
Key: MPLUGIN-47 (was: MNG-1959)
Project: Maven 2.x Plugin Tools (was: Maven 2)
> maven-plugin-tools-ant: faulty variable interpolation
> -----------------------------------------------------
>
> Key: MPLUGIN-47
> URL: http://jira.codehaus.org/browse/MPLUGIN-47
> Project: Maven 2.x Plugin Tools
> Issue Type: Bug
> Environment: WinXP SP2
> Maven 2 SNAPSHOT
> Reporter: Michael Böckling
> Priority: Minor
>
> Using ANT as Mojo language, there is a bug in the variable interpolation.
> Example parameter:
> <!-- performexec -->
> <parameter>
> <description>Execute a binary</description>
> <name>performexec</name>
> <expression>${performexec}</expression>
> <required>false</required>
> <readonly>false</readonly>
> <type>java.lang.String</type>
> </parameter>
> Example Mojo call:
> <project>
> <target name="someproject">
> <taskdef name="someTask/>"
> <someTask performexec="${performexec}"/>
> ...
> Preconditions:
> - ${performexec} has no default value
> - ${performexec} is not marked as required
> - ${performexec} is not set in POM that executes the Ant Mojo plugin
> Observed behaviour:
> - The string "${performexec} " is literaly passed to the corresponding task.
> Expected result:
> - ${performexec} should be null.
> If the parameter has a <defaultValue></defaultValue> tag, above error occurs
> too. I'd expect that to set the parameter to the empty string (instead of
> null when leaving out <defaultValue></defaultValue>).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira