maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MASSEMBLY-617) Add a suffix element in fileSet (same as destName in file)
Date Mon, 02 Jul 2018 05:08:00 GMT

    [ https://issues.apache.org/jira/browse/MASSEMBLY-617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16529382#comment-16529382
] 

ASF GitHub Bot commented on MASSEMBLY-617:
------------------------------------------

plamentotev commented on issue #4: [MASSEMBLY-617] add ability to give a fileSuffix to a FileSet
URL: https://github.com/apache/maven-assembly-plugin/pull/4#issuecomment-401673740
 
 
   No. `InputStreamTransformer` modifies the content of the file (like changing the line ending).
`FileMapper` changes the file name based on some logic (so it is actually a file name mapper).
You need to make a similar change to one already did. But instead of String you need to configure
an array of [`org.codehaus.plexus.components.io.filemappers.FileMapper`](https://github.com/codehaus-plexus/plexus-io/blob/master/src/main/java/org/codehaus/plexus/components/io/filemappers/FileMapper.java).
And after that you need to propagate the array to `AbstractPlexusIoResourceCollection`. I
don't think `BaseFileSet` accepts `FileMapper[]` so I think you need to change it as well.
   
   Hope this helps.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Add a suffix element in fileSet (same as destName in file)
> ----------------------------------------------------------
>
>                 Key: MASSEMBLY-617
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-617
>             Project: Maven Assembly Plugin
>          Issue Type: Wish
>    Affects Versions: 2.3
>            Reporter: thomas collignon
>            Priority: Minor
>
> The purpose of the wish is to add a "fileSuffix" attribute in fileSet descriptor. This
will add a suffix in all files in the fileSet.
> Exemple : 
> test.xml with TOTO suffix => testTOTO.xml (in the zip)
> This is the same as destName in file descriptor but this is for all the files in the
fileSet.
> I think this need to modify this jars too : 
> - plexus-io
> - plexus-archiver
> I have already made all of this modification and if you want the source code, I can give
you.
> Regards



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message