[ 
https://issues.apache.org/jira/browse/BUILDR-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Assaf Arkin closed BUILDR-134.
------------------------------

    Resolution: Invalid

The expand method takes the arguments, expands them based on the defined 
layout, and returns a path.

project.layout[:source :main] = project.layout.expand(:source, 'my_main')
project.layout[:source] = 'my_source' 
puts project.layout.expand(:source, :main)
  => "source/my_main"

This is the correct and expected behavior of expand.  It cannot expand your 
arguments into a path based on, yet unknown, mapping.

> changing "parent" component in layout  doesn't change child if already 
> referenced
> ---------------------------------------------------------------------------------
>
>                 Key: BUILDR-134
>                 URL: https://issues.apache.org/jira/browse/BUILDR-134
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.2
>            Reporter: Ittay Dror
>             Fix For: 1.3.3
>
>
> Take this code:
>   project.layout[:source :main] = project.layout.expand(:source, 'my_main')
>   project.layout[:source] = 'my_source'
> I would expect project.layout.expand(:source, :main) to then expand to 
> my_source/my_main. It doesn't, it expands to source/my_main.
> Obviously the above is just a toy example and can be solved by reordering the 
> lines, however in a complex buildfile and extensions, this is not so easy.

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

Reply via email to