You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/10/03 12:52:08 UTC

[jira] Issue Comment Edited: (MNG-3638) Ability to evaluate expressions involving collections

    [ http://jira.codehaus.org/browse/MNG-3638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149684#action_149684 ] 

bentmann edited comment on MNG-3638 at 10/3/08 5:51 AM:
-----------------------------------------------------------------

bq. If someone can come up with a solid, deterministic rule for how this can be done, I can implement it.

Does it need more than an index operator to allow users to specify which collection element they refer to? I mean, the POM is XML, XML is a sequence of elements so all collections should in fact be lists that can be accessed via a zero-based index.

The brackets that Java uses for array indexing are forbidden in URI paths but there are still other available delimiter characters. So, how about something like one of these:
{noformat}
project/build/resources/0/directory
project/build/resources,0/directory
project/build/resources(0)/directory
{noformat}


      was (Author: bentmann):
    bq. If someone can come up with a solid, deterministic rule for how this can be done, I can implement it.

Does it need more than an index operator to allow users to specify which collection element they refer to? I mean, the POM is XML, XML is a sequence of elements so all collections should in fact be lists that can be accessed via a zero-based index.

The brackets that Java uses for array indexing are forbidden in URI paths but there are still other available delimiter characters. So, how about something like one of these:
{noformat}
project/build/resources,0/directory
project/build/resources(0)/directory
{noformat}

  
> Ability to evaluate expressions involving collections
> -----------------------------------------------------
>
>                 Key: MNG-3638
>                 URL: http://jira.codehaus.org/browse/MNG-3638
>             Project: Maven 2
>          Issue Type: New Feature
>          Components: General
>    Affects Versions: 2.0.9
>         Environment: Windows XP Professional SP 2
>            Reporter: Matthew Tordoff
>             Fix For: 3.x
>
>
> The following property is not resolved by Maven:
> ${project.build.resources.resource.directory}
> It follows the notation described to access any property within the POM, is there an alternative property that can be used to reference the resource directory?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira