buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Toulme (JIRA)" <>
Subject [jira] Resolved: (BUILDR-331) using ArchiveTask#include with patterns is too tricky
Date Fri, 02 Jul 2010 07:37:49 GMT


Antoine Toulme resolved BUILDR-331.

    Resolution: Won't Fix

You should use an enhance block for this type of configuration.

> using ArchiveTask#include with patterns is too tricky
> -----------------------------------------------------
>                 Key: BUILDR-331
>                 URL:
>             Project: Buildr
>          Issue Type: Wish
>    Affects Versions: 1.3.5
>            Reporter: Ittay Dror
> We have a case in our buildfile where the code below doesn't work with a clean build:
> package(:war).include(path_to( , :web, '*.swf')))
> the reason is that  the pattern is evaluated before the resources task had a chance to
> it is evaluated because the @include instance variable in ArchiveTask#Path is a FileList
which is very sensitive and resolves all its patterns whenever a method from the Array class
is called on it. 
> so somewhere in our, or buildr's code, the FileList instance is resolved, and it is tricky
to find where and probably to fix. as well as being unexpected
> suggestion: @includes should be a regular array. when invoked (in the action block),
the task should use FileList[*@includes] to expand all patterns. this will ensure that patterns
are evaluated lazily

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

View raw message