[ 
http://jira.codehaus.org/browse/MEAR-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tuomas Kiviaho updated MEAR-84:
-------------------------------

    Attachment: regex.patch

regex.patch contains modified test cases from EAR file name mapping and a 
customized org.apache.maven.plugin.assembly.utils.AssemblyFormatUtilsTest. 
There are references to maven-assembly-plugin which need to be solved. 
Conversion from AssemblyFormatUtilsTest as RegexFileNameMappingTest is 
basically just removal of project and model features that do not apply to 
FileNameMapping since only the artifact is available. 

With this patch I was already able to pull a static regex file name mapping... 

${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}

...which distinguishes version from base version when snapshots are used 
because current implementations are based on ${artifact.file.name} and they 
both lose unique versions because file name is based on base version.



> Ability to interpolate filenamemapping using regex.
> ---------------------------------------------------
>
>                 Key: MEAR-84
>                 URL: http://jira.codehaus.org/browse/MEAR-84
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Wish
>            Reporter: Tuomas Kiviaho
>            Priority: Minor
>         Attachments: regex.patch
>
>
> I was trying to have an impact how artifact files would be mapped based on 
> previous knowledge about assembly plugin but noticed that  there's a 
> fundamental difference in implementations. 
> Both the 'stardard' and 'full' file name mapping of ear plugin could have 
> been implemented using 
> org.codehaus.plexus.util.interpolation.RegexBasedInterpolator quite 
> identically to 
> org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils.evaluateFileNameMapping
>  used in assembly plugin. The class name based pluggability is only available 
> at EAR side.
> Regular expressions of the interpolator have a distinctive pattern separating 
> them from classes and predefined mappings making it backwards compatible to 
> extend the FileNameMappingFactory to match regular expressions.

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

        

Reply via email to