You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Victor Hugo Borja (JIRA)" <ji...@apache.org> on 2008/09/17 01:03:44 UTC

[jira] Commented: (BUILDR-135) extract content mapping functionality from Filter

    [ https://issues.apache.org/jira/browse/BUILDR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631589#action_12631589 ] 

Victor Hugo Borja commented on BUILDR-135:
------------------------------------------

I've extracted the mapping replacement logic into a Filter::Mapper class, so that you can reuse it outside of filters.
Changes are currently on a JtestR branch I'm working on http://github.com/vic/buildr/commits/jrestr

The specs for this are at 
   http://github.com/vic/buildr/commit/af0226d051c89e6073b9ed3821b4354967568692#L0R492

Usage would be like..

   Filter::Mapper.new(:maven, 'world' => 'mapper').result('Hello ${world}') # => 'Hello mapper'




> extract content mapping functionality from Filter
> -------------------------------------------------
>
>                 Key: BUILDR-135
>                 URL: https://issues.apache.org/jira/browse/BUILDR-135
>             Project: Buildr
>          Issue Type: Improvement
>    Affects Versions: 1.3.2
>            Reporter: Ittay Dror
>            Assignee: Victor Hugo Borja
>             Fix For: 1.3.3
>
>
> I have a use case where I need to filter content, replacing properties with values. This functionality is well implemented in Filter, and I would like to reuse it.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.