jlaskowski    2005/06/19 18:40:27

  Modified:    .        maven.xml
  Log:

  A step towards cutting the 1.0 release:
    o openejb:release goal to cut a release
    o polishing the sources so that javadoc is built without any errors or 
warnings
    o Add javadoc to release in openejb:release
  
  Revision  Changes    Path
  1.6       +51 -5     openejb1/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/projects/openejb/scm/openejb1/maven.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- maven.xml 25 Aug 2004 22:57:56 -0000      1.5
  +++ maven.xml 19 Jun 2005 22:40:27 -0000      1.6
  @@ -163,6 +163,10 @@
           <modules:reactor goals="default"/>
       </goal>
   
  +    <goal name="modules:sources">
  +        <modules:reactor goals="sources"/>
  +    </goal>
  +
       <goal name="modules:build">
           <modules:reactor goals="build"/>
       </goal>
  @@ -276,6 +280,13 @@
                   include="*.war"/>
           </define:tag>
   
  +        <define:tag name="sources">
  +            <aggregate:copy
  +                source="${module.root}/src/java"
  +                target="${aggregate.dir}/src"
  +                include="**/*.java"/>
  +        </define:tag>
  +
           <define:tag name="default">
               <j:if test="${scripts == null || scripts == 'true'}">
                   <aggregate:scripts/>
  @@ -378,12 +389,47 @@
                   <include name="*.cmd"/>
               </fixcrlf>
               
  -                 <replace file="${aggregate.dir}/bin/openejb.bat" 
  -                          token="@REPLACED-BY-MAVEN-XML@"
  -                          value="${pom.currentVersion}"/>
  +         <replace file="${aggregate.dir}/bin/openejb.bat" 
  +                  token="@REPLACED-BY-MAVEN-XML@"
  +                  value="${pom.currentVersion}"/>
           </u:available>
  +        <copy todir="${aggregate.dir}">
  +            <fileset dir=".">
  +                <include name="CREDITS.txt"/>
  +                <include name="LICENSE.txt"/>
  +                <include name="README.txt"/>
  +            </fileset>
  +        </copy>
  +    </goal>
  +
  +    <goal name="openejb:release"
  +        description="Cuts release">
  +        <attainGoal name="clean"/>
  +        <attainGoal name="default"/>
  +        <!-- aggregate:sources/ -->
  +        <javadoc packagenames="org.openejb.*"
  +            defaultexcludes="yes"
  +            destdir="${aggregate.dir}/docs/api"
  +            author="true"
  +            version="true"
  +            Use="false"
  +            Splitindex="yes"
  +            windowtitle="OpenEJB API Documentation"
  +            doctitle="OpenEJB API Documentation"
  +            bottom="Copyright &#169; 2005 The OpenEJB Group. All Rights 
Reserved.">
  +            <sourcepath>
  +                <pathelement location="modules/core/src/java/"/>
  +                <pathelement location="modules/webadmin/src/java/"/>
  +            </sourcepath>
  +            <classpath>
  +                <path>
  +                    <fileset dir="${aggregate.dir}/lib">
  +                        <include name="*.jar"/>
  +                    </fileset>
  +                </path>
  +            </classpath>
  +        </javadoc>
       </goal>
  -
   
       <!-- =============================== -->
       <!-- Module Output Aggregation Hooks -->
  
  
  

Reply via email to