From 5cca92d5c54da9b4baef291d5781537674e8b8a9 Mon Sep 17 00:00:00 2001 From: aheritier Date: Thu, 8 Dec 2005 23:20:55 +0000 Subject: [PATCH] PR: MPDIST-28 Submitted by: Phil Steitz Reviewed by: aheritier Allow to configure to which files should use CRLF/LF line endings in archives. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@355268 13f79535-47bb-0310-9956-ffa450edef68 --- dist/plugin.jelly | 34 ++++++++++++++++++++++++++++------ dist/plugin.properties | 2 ++ dist/xdocs/properties.xml | 13 +++++++++++++ 3 files changed, 43 insertions(+), 6 deletions(-) diff --git a/dist/plugin.jelly b/dist/plugin.jelly index 933c96ba..d1f9121e 100644 --- a/dist/plugin.jelly +++ b/dist/plugin.jelly @@ -140,6 +140,8 @@ description="Set up directories for a distribution build"> + + + + + + + @@ -159,9 +168,12 @@ - - + + + + @@ -174,6 +186,13 @@ prereqs="dist:build-setup,dist:prepare-src-filesystem" description="Build the source distribution."> + + + + + @@ -186,9 +205,12 @@ - - + + + + diff --git a/dist/plugin.properties b/dist/plugin.properties index ae40c851..e7858f0a 100644 --- a/dist/plugin.properties +++ b/dist/plugin.properties @@ -27,3 +27,5 @@ maven.dist.bin.assembly.dir=${maven.dist.assembly.dir}/bin/${maven.final.name} maven.dist.src.assembly.dir=${maven.dist.assembly.dir}/src/${maven.final.name} maven.dist.dir=${maven.build.dir}/distributions maven.dist.bin.artifact=${maven.final.name}.jar +maven.dist.crlf.filter=**/*.txt +maven.dist.lf.filter= diff --git a/dist/xdocs/properties.xml b/dist/xdocs/properties.xml index 496be2d9..869b553e 100644 --- a/dist/xdocs/properties.xml +++ b/dist/xdocs/properties.xml @@ -62,6 +62,19 @@ yes - default is ${maven.final.name}.jar. The name of the binary artifact to include in distribution, relative to target dir. + + maven.dist.crlf.filter + yes - default is "**/*.txt". + Filter specifying files to convert to CRLF (Windows style) line endings in zip distributions. + + + maven.dist.lf.filter + yes - default is no filter applied (no change to any files). + Filter specifying files to convert to LF line endings in both tar + and zip distributions. This filter is applied before the crlf + filter, so in zip archives, the crlf filter will take precendence + for files that satisfy both filters. +