mdiggory    2004/04/07 12:17:20

  Added:       commons-build/maven prep.xsl commonGoals.ent
  Log:
  this post goal should transform the project.xml when src distros are done and the 
commonGoals is included into the projects maven.xml
  
  Revision  Changes    Path
  1.1                  jakarta-commons/commons-build/maven/prep.xsl
  
  Index: prep.xsl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <xsl:stylesheet 
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
        >
  
        <xsl:strip-space elements="*"/>
  
        <!--This is generic template which copies the contents of elements and 
attributes -->
        <xsl:template match="@* | *">
                <xsl:copy>
                        <xsl:apply-templates select="* | @* | text()"/>
                </xsl:copy>
        </xsl:template>
        
        <!-- replace the extends -->
        <xsl:template match="extends">
                <extends>common-project.xml</extends>
        </xsl:template>
        
  </xsl:stylesheet>
  
  
  1.1                  jakarta-commons/commons-build/maven/commonGoals.ent
  
  Index: commonGoals.ent
  ===================================================================
    <!-- copy commons-build/project.xml local and change extends -->
  <postGoal name="dist:prepare-src-filesystem">
        <ant:copy tofile="${maven.dist.src.assembly.dir}/common-project.xml" 
file="../commons-build/project.xml"/>
        <ant:xslt in="${maven.dist.src.assembly.dir}/project.xml" 
out="${maven.dist.src.assembly.dir}/project.xml.tmp" 
style="../commons-build/maven/prep.xsl"/>
        <ant:move tofile="${maven.dist.src.assembly.dir}/project.xml" 
file="${maven.dist.src.assembly.dir}/project.xml.tmp"/>
  </postGoal>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to