[UIMA-3127] run fixcrlf if profile=apache-release and target has a dir named .../target/site/apidocs
git-svn-id: https://svn.apache.org/repos/asf/uima/build/trunk/parent-pom@1509006 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 9e99e77..a0a533c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -721,7 +721,35 @@
<id>default-cli</id>
</execution>
</executions>
- </plugin>
+ </plugin>
+
+ <!-- to fix up any generated Javadocs to have consistent line ends in html files -->
+ <!-- runs in phase after package -->
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>maybe-fix-javadoc-line-ends</id>
+ <phase>pre-integration-test</phase>
+ <goals><goal>run</goal></goals>
+ <configuration>
+ <target>
+ <taskdef name="if" classname="net.sf.antcontrib.logic.IfTask" />
+ <if>
+ <available file="${project.build.directory}/site/apidocs/"/>
+ <then>
+ <echo>Fixing line-endings for ${project.build.directory}/site/apidocs/</echo>
+ <fixcrlf srcdir="${project.build.directory}/site/apidocs/">
+ <include name="**/*.html"/>
+ </fixcrlf>
+ </then>
+ </if>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+
+ </plugin>
</plugins>
</build>