You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2017/10/08 10:11:00 UTC

[jira] [Comment Edited] (JCRVLT-210) Allow to define excludes for the ContentPackageArchiver to prevent copying of script files from src to target

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

Konrad Windszus edited comment on JCRVLT-210 at 10/8/17 10:10 AM:
------------------------------------------------------------------

This is implemented in the maven-war-plugin in https://github.com/apache/maven-plugins/blob/a9566e14f980ff52f3ee3c89d64d6b98b03c0305/maven-war-plugin/src/main/java/org/apache/maven/plugins/war/packaging/WarProjectPackagingTask.java#L162. The actual filtering is implemented based on https://maven.apache.org/shared/maven-shared-utils/apidocs/org/apache/maven/shared/utils/io/DirectoryScanner.html.


was (Author: kwin):
Most probably the source from https://github.com/apache/maven-plugins/blob/a9566e14f980ff52f3ee3c89d64d6b98b03c0305/maven-war-plugin/src/main/java/org/apache/maven/plugins/war/packaging/WarProjectPackagingTask.java#L162 could be taken more or less as is.

> Allow to define excludes for the ContentPackageArchiver to prevent copying of script files from src to target
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: JCRVLT-210
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-210
>             Project: Jackrabbit FileVault
>          Issue Type: Improvement
>          Components: package maven plugin
>            Reporter: Konrad Windszus
>
> Similar to the {{maven-war-plugin}} it should be possible to define exclusion filename patterns of files which should never end up in the filevault package (compare with https://maven.apache.org/plugins/maven-war-plugin/war-mojo.html, parameter {{warSourceExcludes}}).
> The following filenames come to my mind, which would be useful to exclude by default:
> # .DS_Store
> # SVN files
> # Git fles
> # FileVault conflict files
> That way it would be possible to create the package based on the source directory without being forced to first use the {{maven-resource-plugin}} to copy them somewhere to {{/target}} and do the filtering there.
> That would speed up the generation of large packages a lot.
> At the same time the default value of parameter {{builtContentDirectory}} could be modified to point to the source directory e.g. {{${basedir}/src/main/jcr_root}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)