User: user57  
  Date: 02/03/01 15:26:08

  Modified:    .        build.xml
  Log:
   o add todo, will fix in others soon
  
  Revision  Changes    Path
  1.6       +47 -2     jboss-system/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-system/build.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.xml 28 Feb 2002 04:08:05 -0000      1.5
  +++ build.xml 1 Mar 2002 23:26:08 -0000       1.6
  @@ -12,7 +12,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.5 2002/02/28 04:08:05 user57 Exp $ -->
  +<!-- $Id: build.xml,v 1.6 2002/03/01 23:26:08 user57 Exp $ -->
   
   <project default="main" name="JBoss/System">
   
  @@ -151,6 +151,7 @@
       <property name="build.bin" value="${module.output}/bin"/>
       <property name="build.gen" value="${module.output}/gen"/>
       <property name="build.resources" value="${module.output}/resources"/>
  +    <property name="build.todo" value="${module.output}/todo"/>
   
       <!-- Install/Release structure -->
       <property name="install.id" value="${module.name}-${module.version}"/>
  @@ -189,6 +190,19 @@
       <property name="junit.timeout" value="240000"/> <!-- 4 minutes -->
       <property name="junit.batchtest.todir" value="${build.reports}"/>
       <property name="junit.jvm.options" value="-Ddummy"/>
  +
  +    <!-- xdoclet -->
  +    <path id="xdoclet.task.classpath">
  +      <path refid="javac.classpath"/>
  +      <pathelement location="${project.tools}/lib/xdoclet.jar"/>
  +      <pathelement location="${project.tools}/lib/ant.jar"/>
  +    </path>
  +    <property name="xdoclet.task.classpath" 
  +           refid="xdoclet.task.classpath"/>
  +
  +    <taskdef name="todo" 
  +             classname="xdoclet.doc.DocumentDocletTask"
  +             classpathref="xdoclet.task.classpath"/>
     </target>
   
   
  @@ -393,7 +407,7 @@
   
     <target name="docs"
          description="Builds all documentation."
  -       depends="docs-api"/>
  +       depends="docs-api, docs-todo"/>
   
     <!-- Javadocs is an exception, but provide a docs-api to conform. -->
     <target name="docs-api" 
  @@ -442,6 +456,37 @@
     </target>
   
     <target name="javadocs" depends="docs-javadocs"/>
  +
  +  <!-- ========= -->
  +  <!-- TODO Docs -->
  +  <!-- ========= -->
  +
  +  <target name="docs-todo-check" depends="init">
  +    <!-- if index.html is newer than the sources we are up to date -->
  +    <uptodate property="docs-todo.disable"
  +           targetfile="${build.todo}/index.html">
  +      <srcfiles dir="${source.java}" includes="**/*.java"/>
  +    </uptodate>
  +  </target>
  +
  +  <!-- Generate TODO list from @todo tags -->
  +  <target name="docs-todo" 
  +       depends="docs-todo-check" 
  +       unless="docs-todo.disable">
  +
  +    <todo sourcepath="${source.java}"
  +          destdir="${build.todo}"
  +          classpathref="xdoclet.task.classpath">
  +
  +      <fileset dir="${source.java}">
  +        <include name="**/*.java"/>
  +      </fileset>
  +
  +      <info/>
  +    </todo>
  +  </target>
  +
  +  <target name="todo" depends="docs-todo"/>
   
   
     <!-- ================================================================== -->
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to