geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: incubator-geronimo/modules/maven-xmlbeans-plugin maven.xml
Date Tue, 07 Sep 2004 02:35:14 GMT
dain        2004/09/06 19:35:13

  Modified:    .        maven.xml
               etc      maven.xml
               modules/maven-plugin maven.xml
               modules/maven-xmlbeans-plugin maven.xml
  Log:
  Added java-src target to generate a jar containing only the java sources
  (normal and generated) used in the jar.  This is useful for debuggers.
  
  Revision  Changes    Path
  1.82      +7 -3      incubator-geronimo/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/maven.xml,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- maven.xml	5 Sep 2004 21:05:06 -0000	1.81
  +++ maven.xml	7 Sep 2004 02:35:13 -0000	1.82
  @@ -232,6 +232,10 @@
         <modules:reactor goals="jar:deploy"/>
     </goal>
   
  +    <goal name="modules:java-src">
  +        <modules:reactor goals="java-src"/>
  +    </goal>
  +
       <goal name="modules:clean">
           <!-- DMB: don't know why we are cleaning this way when we could invoke clean
on the submodules -->
           <attainGoal name="modules:reactor:init"/>
  @@ -298,8 +302,8 @@
           <attainGoal name="modules:eclipse"/>
       </goal>
   
  -    <goal name="blah">
  -        <modules:reactor goals="hello"/>
  +    <goal name="java-src">
  +        <attainGoal name="modules:java-src"/>
       </goal>
   
       <goal name="plugins">
  
  
  
  1.34      +26 -1     incubator-geronimo/etc/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/etc/maven.xml,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- maven.xml	3 Sep 2004 05:48:14 -0000	1.33
  +++ maven.xml	7 Sep 2004 02:35:13 -0000	1.34
  @@ -185,6 +185,31 @@
   
       </goal>
   
  +    <goal name="java-src"
  +        description="Creates an archive containing only java source.">
  +
  +        <u:available file="${basedir}/src/java">
  +            <j:set var="javaSrcBuilt" value="true"/>
  +            <ant:mkdir dir="${basedir}/target"/>
  +            <ant:jar destfile="${basedir}/target/${pom.artifactId}-${pom.currentVersion}-java-src.jar">
  +                <fileset dir="${basedir}/src/java"/>
  +                <u:available file="${basedir}/target/xmlbeans">
  +                    <fileset dir="${basedir}/target/xmlbeans"/>
  +                </u:available>
  +            </ant:jar>
  +        </u:available>
  +
  +        <j:if test="${javaSrcBuilt != 'true'}">
  +            <u:available file="${basedir}/target/xmlbeans">
  +                <j:set var="java-src.built" value="true"/>
  +                <ant:mkdir dir="${basedir}/target"/>
  +                <ant:jar destfile="${basedir}/target/${pom.artifactId}-${pom.currentVersion}-java-src.jar">
  +                    <fileset dir="${basedir}/target/xmlbeans"/>
  +                </ant:jar>
  +            </u:available>
  +        </j:if>
  +    </goal>
  +
       <!-- If there is no src/test directory you can
       turn off clover in that module by overriding this goal to do nothing -->
       <goal name="clover.wrapper">
  
  
  
  1.7       +9 -1      incubator-geronimo/modules/maven-plugin/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/maven-plugin/maven.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- maven.xml	28 Jul 2004 18:31:33 -0000	1.6
  +++ maven.xml	7 Sep 2004 02:35:13 -0000	1.7
  @@ -74,4 +74,12 @@
           </j:jelly>
       </goal>
   
  +    <goal name="java-src"
  +        description="Creates an archive containing only java source.">
  +
  +        <ant:mkdir dir="${basedir}/target"/>
  +        <ant:jar destfile="${basedir}/target/${pom.artifactId}-${pom.currentVersion}-java-src.jar">
  +            <fileset dir="${basedir}/src/java"/>
  +        </ant:jar>
  +    </goal>
   </project>
  
  
  
  1.8       +10 -1     incubator-geronimo/modules/maven-xmlbeans-plugin/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/maven-xmlbeans-plugin/maven.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- maven.xml	5 Apr 2004 18:11:54 -0000	1.7
  +++ maven.xml	7 Sep 2004 02:35:13 -0000	1.8
  @@ -83,4 +83,13 @@
               </delete>
           </j:jelly>
       </goal>
  +
  +    <goal name="java-src"
  +        description="Creates an archive containing only java source.">
  +
  +        <ant:mkdir dir="${basedir}/target"/>
  +        <ant:jar destfile="${basedir}/target/${pom.artifactId}-${pom.currentVersion}-java-src.jar">
  +            <fileset dir="${basedir}/src/java"/>
  +        </ant:jar>
  +    </goal>
   </project>
  
  
  

Mime
View raw message