You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by md...@apache.org on 2004/04/07 21:17:20 UTC
cvs commit: jakarta-commons/commons-build/maven prep.xsl commonGoals.ent
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org