You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2013/08/05 16:32:00 UTC

svn commit: r1510500 - /uima/uimaj/trunk/uimaj-parent/pom.xml

Author: schor
Date: Mon Aug  5 14:32:00 2013
New Revision: 1510500

URL: http://svn.apache.org/r1510500
Log:
no Jira - prepare for release - base on v 6 of parent pom by moving needed update for fixing javadoc line-ends into this pom

Modified:
    uima/uimaj/trunk/uimaj-parent/pom.xml

Modified: uima/uimaj/trunk/uimaj-parent/pom.xml
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-parent/pom.xml?rev=1510500&r1=1510499&r2=1510500&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-parent/pom.xml (original)
+++ uima/uimaj/trunk/uimaj-parent/pom.xml Mon Aug  5 14:32:00 2013
@@ -143,4 +143,56 @@
   
   <build>
   </build>
+ 
+  <profiles>
+	    <!-- ************************************************** -->
+      <!--                                                    -->
+      <!--  REMOVE when parent-pom v 7 released               -->
+      <!--                                                    -->
+	    <!-- * apache-release                                 * -->
+	    <!-- *   NOTE: This profile is activated while        * --> 
+	    <!-- *    running the Maven build pipeline, usually   * -->
+	    <!-- *      clean verify (for mvn release:prepare) or * -->
+	    <!-- *      deploy (for mvn release;perform),         * -->
+	    <!-- *    but is not activated for the                * -->
+	    <!-- *    outer execution for mvn release...          * -->
+	    <!-- *    on the pom being released                   * -->
+	    <!-- ************************************************** -->
+	    <profile>
+	      <id>apache-release</id>
+	      
+	      <build>
+	        <plugins>
+	  
+	          <!-- 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>
+	    </profile>
+    </profiles> 
 </project>