You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2004/04/12 17:43:22 UTC

cvs commit: avalon/meta/plugin copy-all.xsl maven.xml project.xml

mcconnell    2004/04/12 08:43:22

  Modified:    meta/plugin maven.xml project.xml
  Added:       meta/plugin copy-all.xsl
  Log:
  Update meta-plugin to eliminate ent reference in packaged project.xml.
  
  Revision  Changes    Path
  1.2       +19 -1     avalon/meta/plugin/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/avalon/meta/plugin/maven.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- maven.xml	10 Dec 2003 09:52:35 -0000	1.1
  +++ maven.xml	12 Apr 2004 15:43:22 -0000	1.2
  @@ -1,2 +1,20 @@
  -<project default="plugin:install">
  +<project default="plugin:install" xmlns:ant="jelly:ant">
  +
  +  <preGoal name="jar:jar">
  +    <attainGoal name="avalon:generate"/>
  +  </preGoal>
  +  
  +  <goal name="avalon:generate">
  +    <echo message="starting"/>
  +    <mkdir dir="${maven.build.dir}/classes"/>
  +    <ant:xslt in="${basedir}/project.xml" out="${maven.build.dir}/classes/project.xml"
  +      style="${basedir}/copy-all.xsl">
  +      <outputproperty name="method" value="xml" />
  +      <outputproperty name="standalone" value="yes"/>
  +      <outputproperty name="indent" value="yes"/>
  +    </ant:xslt>
  +    <echo message="done"/>
  +  </goal>
  +
   </project>
  +
  
  
  
  1.13      +0 -1      avalon/meta/plugin/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/avalon/meta/plugin/project.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- project.xml	8 Apr 2004 14:16:27 -0000	1.12
  +++ project.xml	12 Apr 2004 15:43:22 -0000	1.13
  @@ -129,7 +129,6 @@
             <include>plugin.jelly</include>
             <include>plugin.properties</include>
             <include>project.properties</include>
  -          <include>project.xml</include>
           </includes>
         </resource>
       </resources>
  
  
  
  1.1                  avalon/meta/plugin/copy-all.xsl
  
  Index: copy-all.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet version="1.0"
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                  xmlns="http://www.w3.org/1999/xhtml">
  
   <xsl:template match="@*|*|text()|processing-instruction()" priority="-1">
    <xsl:copy>
     <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
    </xsl:copy>
   </xsl:template>
  </xsl:stylesheet>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org