User: user57  
  Date: 02/02/27 23:35:34

  Modified:    tasks    build.xml
  Log:
   o less verbose init
  
  Revision  Changes    Path
  1.4       +62 -45    buildmagic/tasks/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/buildmagic/tasks/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml 28 Feb 2002 06:47:41 -0000      1.3
  +++ build.xml 28 Feb 2002 07:35:34 -0000      1.4
  @@ -12,7 +12,7 @@
   <!--                                                                        -->
   <!-- ====================================================================== -->
   
  -<!-- $Id: build.xml,v 1.3 2002/02/28 06:47:41 user57 Exp $ -->
  +<!-- $Id: build.xml,v 1.4 2002/02/28 07:35:34 user57 Exp $ -->
   
   <project default="main" name="Buildmagic/Tasks">
   
  @@ -39,7 +39,7 @@
        | Other targets should depend on 'init' or things will mysteriously fail.
      -->
   
  -  <target name="init" unless="init.disable" depends="_buildmagic:init">
  +  <target name="init" depends="_buildmagic:init">
     </target>
   
   
  @@ -108,6 +108,12 @@
   
       </libraryset>
   
  +    <!-- The combined thirdparty classpath -->
  +    <path id="thirdparty.classpath">
  +      <path refid="library.classpath"/>
  +      <path refid="dependentmodule.classpath"/>
  +    </path>
  +
   
       <!-- ===== -->
       <!-- Tasks -->
  @@ -124,19 +130,9 @@
       <property name="build.lib" value="${module.output}/lib"/>
       <property name="build.api" value="${module.output}/api"/>
       <property name="build.etc" value="${module.output}/etc"/>
  +    <property name="build.todo" value="${module.output}/todo"/>
       <property name="build.resources" value="${module.output}/resources"/>
   
  -    <!-- Install/Release structure -->
  -    <property name="install.id" value="${module.name}-${module.version}"/>
  -    <property name="release.id" value="${install.id}"/>
  -    <property name="install.root" value="${module.output}/${install.id}"/>
  -
  -    <!-- The combined thirdparty classpath -->
  -    <path id="thirdparty.classpath">
  -      <path refid="library.classpath"/>
  -      <path refid="dependentmodule.classpath"/>
  -    </path>
  -
       <!-- This module is compatible w/Java 1.2 -->
       <property name="javac.target" value="1.2"/>
   
  @@ -166,6 +162,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>
   
   
  @@ -273,7 +282,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" 
  @@ -306,7 +315,6 @@
                classpathref="javadoc.classpath"
                windowtitle="${javadoc.windowtitle}"
             splitindex="${javadoc.splitindex}"
  -             doctitle="${javadoc.doctitle}"
                author="${javadoc.author}"
                version="${javadoc.version}"
                public="${javadoc.public}"
  @@ -315,40 +323,46 @@
                private="${javadoc.private}"
                use="${javadoc.use}"
             verbose="${javadoc.verbose}"> 
  -       <!--
  -       <link href="http://java.sun.com/j2se/1.3/docs/api/"/>
  -       -->
  +      <doctitle><![CDATA[<h1>${module.title} API Documentation</h1>]]></doctitle>
  +      <bottom><![CDATA[<i><div align="center"><font size="-1">Copyright &#169; 2002 
JBoss Group, LLC. All Rights Reserved.</font></div></i>]]></bottom>
  +      <!--
  +      <link href="http://java.sun.com/j2se/1.3/docs/api/"/>
  +      -->
       </javadoc>
     </target>
   
     <target name="javadocs" depends="docs-javadocs"/>
   
  +  <!-- ========= -->
  +  <!-- TODO Docs -->
  +  <!-- ========= -->
   
  -  <!-- ================================================================== -->
  -  <!-- Install & Release                                                  -->
  -  <!-- ================================================================== -->
  -
  -  <target name="install" 
  -       description="Install the structure for a release."
  -       depends="all, _buildmagic:install:default"/>
  -
  -  <target name="release" depends="install"/>
  +  <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>
   
  -  <target name="release-zip" 
  -       description="Builds a ZIP distribution."
  -       depends="release, _buildmagic:release:zip"/>
  +  <!-- 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">
   
  -  <target name="release-tar" 
  -       description="Builds a TAR distribution."
  -       depends="release, _buildmagic:release:tar"/>
  +      <fileset dir="${source.java}">
  +        <include name="**/*.java"/>
  +      </fileset>
   
  -  <target name="release-tgz" 
  -       description="Builds a TAR-GZ distribution."
  -       depends="release, _buildmagic:release:tgz"/>
  +      <info/>
  +    </todo>
  +  </target>
   
  -  <target name="release-all"
  -       description="Builds a distribution for each archive type."
  -       depends="release-zip, release-tgz"/>
  +  <target name="todo" depends="docs-todo"/>
   
   
     <!-- ================================================================== -->
  @@ -356,15 +370,18 @@
     <!-- ================================================================== -->
   
     <!-- Clean up all build output -->
  -  <target name="clean" 
  -       description="Cleans up most generated files."
  -       depends="_buildmagic:clean">
  +  <target name="clean" description="Cleans up most generated files.">
  +    <call target="_buildmagic:clean">
  +      <property name="configure.disable" value="true"/>
  +    </call>
     </target>
   
     <!-- Clean up all generated files -->
  -  <target name="clobber" 
  -       description="Cleans up all generated files."
  -       depends="_buildmagic:clobber, clean">
  +  <target name="clobber" description="Cleans up all generated files.">
  +    <call target="_buildmagic:clobber">
  +      <property name="configure.disable" value="true"/>
  +    </call>
  +    <call target="clean"/>
     </target>
   
   
  
  
  

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

Reply via email to