You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Ittay Dror (JIRA)" <ji...@apache.org> on 2008/08/19 10:25:46 UTC

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

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
             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.


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

Posted by Assaf Arkin <ar...@intalio.com>.
Thanks!

Assaf

On Mon, Sep 29, 2008 at 2:56 PM, Victor Hugo Borja (JIRA)
<ji...@apache.org> wrote:
>
>     [ https://issues.apache.org/jira/browse/BUILDR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Victor Hugo Borja resolved BUILDR-135.
> --------------------------------------
>
>    Resolution: Fixed
>
>> 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.
>
>

[jira] Issue Comment Edited: (BUILDR-135) extract content mapping functionality from Filter

Posted by "Victor Hugo Borja (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631589#action_12631589 ] 

vic edited comment on BUILDR-135 at 9/17/08 12:19 AM:
--------------------------------------------------------------------

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/jtestr

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'




      was (Author: vic):
    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.


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

Posted by "lacton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635163#action_12635163 ] 

lacton commented on BUILDR-135:
-------------------------------

I am confused by the 'result' method name, too.

What about 'run_with' or 'apply_to'?

I like 'transform'.

> 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.


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

Posted by "Victor Hugo Borja (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Hugo Borja resolved BUILDR-135.
--------------------------------------

    Resolution: Fixed

> 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.


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

Posted by "Victor Hugo Borja (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Victor Hugo Borja (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635238#action_12635238 ] 

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

Ok, let it be #transform. 

> 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.


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

Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12634639#action_12634639 ] 

Assaf Arkin commented on BUILDR-135:
------------------------------------

If a method is called result, I would expect it to return the result of whatever came before it (i.e on the left side).  I think this is confusing, maybe call this method filter? transform?

> 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.


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

Posted by "Victor Hugo Borja (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Hugo Borja reassigned BUILDR-135:
----------------------------------------

    Assignee: Victor Hugo Borja

> 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.