#395 ReplaceTokens does not allow empty values

0.85
closed-fixed
Tasks (408)
5
2005-05-03
2005-04-29
GWSyZyGy
No

When performing token replacements, any token
containing only whitespace will fail with the message:

' ' is not a valid value for attribute 'value' of <token ... />.
An empty value is not allowed.

For example:

<!-- properties defined per environment in external file -->
<property name="prop.SOME_TOKEN" value="" />

--------------------------------------
<!-- replace token properties in build script -->
<filterchain>
<replacetokens>
<token key="SOME_TOKEN"
value="${prop.SOME_TOKEN}" />
....
</replacetokens>
</filterchain>
====================

Have tried value="" (empty), value=" " (space), value=" "
(tab), value="&nbsp;", value="&#160;", value="&#013;",
value="&#010;" ....... none will work.

Discussion

  • Gert Driesen

    Gert Driesen - 2005-05-03
    • status: open --> closed-fixed
     
  • Gert Driesen

    Gert Driesen - 2005-05-03
    • assigned_to: nobody --> drieseng
     
  • Gert Driesen

    Gert Driesen - 2005-05-03

    Logged In: YES
    user_id=707851

    This was actual by design, but I've now "fixed" this in cvs.

    Thanks for the report !

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks