[ 
http://jira.codehaus.org/browse/MASSEMBLY-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135195#action_135195
 ] 

blacklion edited comment on MASSEMBLY-230 at 5/16/08 4:45 PM:
------------------------------------------------------------------

According to my experiments, fileSets filter files ok when a sub-module in a 
multi-module project is being built directly. But they do not filter files 
properly if I build a parent project.

Does anybody have a workaround for that other than using individual files?

      was (Author: blacklion):
    According to my experiments, fileSets filter files ok when a sub-module in 
a multi-module project is being built directly. But they do not filter files 
properly if I build a parent project.
  
> <fileset> not filtering resources, but <files> does filter
> ----------------------------------------------------------
>
>                 Key: MASSEMBLY-230
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-230
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-1
>         Environment: Windows XP Maven 2.0.5
>            Reporter: Mick Knutson
>             Fix For: 2.2
>
>
> In my assembly descriptor, this does not filter my resources:
>       <fileSet>
>             <directory>${basedir}/src/main/resources/deploy</directory>
>             <filtered>true</filtered>
>             <useStrictFiltering>true</useStrictFiltering>
>             <outputDirectory>/</outputDirectory>
>             <includes>
>                       <include>*.sh</include>
>                       <include>*.bat</include>
>             </includes>
>             <fileMode>0544</fileMode>
>               </fileSet>
> But this DOES filter the same resources just fine:
>       <files>
>           <file>
>             
> <source>${basedir}/src/main/resources/deploy/deploy.sh.txt</source>
>             <outputDirectory>deploy</outputDirectory>
>             <destName>test.sh</destName>
>             <filtered>true</filtered>
>             <lineEnding>unix</lineEnding>
>             <fileMode>0554</fileMode>
>           </file>
>       </files> 
> I have tried 2.2-beta-1 and 2.1 of the plugin and it acts the same way.
> A workaround is to just specify each file individually, but I have dozens of 
> files and the descriptor is going to get quite cluttered.

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