This is an automated email from the ASF dual-hosted git repository.

rec pushed a commit to branch 
refactoring/UIMA-6460-Move-tycho-and-auto-staging-to-parent-pom
in repository https://gitbox.apache.org/repos/asf/uima-parent-pom.git

commit a7f00a0b4036b73ecd08cf426283f486353e13a9
Author: Richard Eckart de Castilho <r...@apache.org>
AuthorDate: Thu May 19 21:21:38 2022 +0200

    [UIMA-6460] Move tycho and auto-staging to parent pom
    
    - Need to ensure that staged files have consistent line endings, otherwise 
we cannot commit them to svn
---
 pom.xml | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index b69ec54..897283b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -659,6 +659,28 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-antrun-plugin</artifactId>
         <executions>
+          <execution>
+            <id>fix-text-file-line-endings</id>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <phase>compile</phase>
+            <configuration>
+              <target>
+                <taskdef name="if" classname="net.sf.antcontrib.logic.IfTask" 
/>
+                <if>
+                  <available file="${project.build.outputDirectory}" />
+                  <then>
+                    <fixcrlf srcdir="${project.build.outputDirectory}">
+                      <include name="**/META-INF/DEPENDENCIES" />
+                      <include name="**/META-INF/LICENSE" />
+                      <include name="**/META-INF/NOTICE" />
+                    </fixcrlf>
+                  </then>
+                </if>
+              </target>
+            </configuration>
+          </execution>
           <execution>
             <id>dup-meta-jar-cleanup</id>
             <goals>
@@ -672,7 +694,7 @@
               </target>
             </configuration>
           </execution>
-        </executions>
+                 </executions>
       </plugin>
 
       <plugin>

Reply via email to