geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/etc maven.xml
Date Sat, 30 Aug 2003 15:01:32 GMT
jdillon     2003/08/30 08:01:32

  Modified:    etc      maven.xml
  Log:
   o Added xdoclet:jmxdoclet as a workaround until maven supports installing
     plugins at runtime.
  
  Revision  Changes    Path
  1.11      +59 -2     incubator-geronimo/etc/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/etc/maven.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- maven.xml	25 Aug 2003 21:16:49 -0000	1.10
  +++ maven.xml	30 Aug 2003 15:01:31 -0000	1.11
  @@ -5,7 +5,8 @@
   <project default="default"
     xmlns:j="jelly:core"
     xmlns:u="jelly:util"
  -  xmlns:ant="jelly:ant">
  +  xmlns:ant="jelly:ant"
  +  xmlns:maven="jelly:maven">
     
     <!-- ================= -->
     <!-- Global Properties -->
  @@ -142,6 +143,62 @@
         
       </j:scope>
       
  +  </goal>
  +  
  +  <!-- =================== -->
  +  <!-- XDoclet Integration -->
  +  <!-- =================== -->
  +  
  +  <goal name="xdoclet:jmxdoclet">
  +    <j:jelly xmlns="jelly:ant">
  +      <echo>Generating MBean interfaces...</echo>
  +      
  +      <!-- Load the jmxdoclet task -->
  +      <taskdef name="jmxdoclet" classname="xdoclet.modules.jmx.JMXDocletTask">
  +        <classpath>
  +          <path refid="maven.dependency.classpath"/>
  +        </classpath>
  +      </taskdef>
  +      
  +      <!-- Where sources will be generated -->
  +      <j:set var="maven.xdoclet.jmx.dest" value="${maven.build.dir}/xdoclet/jmx"/>
  +      <mkdir dir="${maven.xdoclet.jmx.dest}"/>
  +      
  +      <!-- Inlcude the generated sources in the Javac compile -->
  +      <path id="maven.xdoclet.jmx.compile.src.set" location="${maven.xdoclet.jmx.dest}"/>
  +      <maven:addPath id="maven.compile.src.set" refid="maven.xdoclet.jmx.compile.src.set"/>
  +      
  +      <!-- Generate MBean interfaces -->
  +      <jmxdoclet destDir="${maven.xdoclet.jmx.dest}" verbose="false">
  +        
  +        <fileset dir="${basedir}/src/java">
  +          <include name="**/*.java"/>
  +        </fileset>
  +        
  +        <!-- Um, this is broke
  +        <j:forEach var="path" items="${pom.compileSourceRootsList}">
  +          <fileset dir="${path}">
  +            <include name="**/*.java"/>
  +            
  +            <j:forEach var="sm" items="${pom.build.sourceModifications}">
  +              <available property="classPresent" classname="${sm.className}"/>
  +              <j:if test="${classPresent != 'true'}">
  +                <j:forEach var="exclude" items="${sm.excludes}">
  +                  <exclude name="${exclude}"/>
  +                </j:forEach>
  +                <j:forEach var="include" items="${sm.includes}">
  +                  <include name="${include}"/>
  +                </j:forEach>
  +              </j:if>
  +            </j:forEach>
  +          </fileset>
  +        </j:forEach>
  +        -->
  +        
  +        <mbeaninterface templateFile="${project.root}/etc/xdoclet/template/jmx/mbean.xdt"/>
  +      </jmxdoclet>
  +      
  +    </j:jelly>
     </goal>
     
   </project>
  
  
  

Mime
View raw message