[MOBY-guts] biomoby commit

Martin Senger senger at pub.open-bio.org
Thu May 19 15:57:21 UTC 2005


senger
Thu May 19 11:57:21 EDT 2005
Update of /home/repository/moby/moby-live/Java
In directory pub.open-bio.org:/tmp/cvs-serv3891

Modified Files:
	build.xml 
Log Message:


moby-live/Java build.xml,1.14,1.15
===================================================================
RCS file: /home/repository/moby/moby-live/Java/build.xml,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- /home/repository/moby/moby-live/Java/build.xml	2005/04/18 23:57:44	1.14
+++ /home/repository/moby/moby-live/Java/build.xml	2005/05/19 15:57:21	1.15
@@ -371,47 +371,102 @@
    </target>
 
    <!-- =================================================================== -->
-   <!-- Creates the API documentation                                       -->
+   <!-- Creates the API documentation:                                      -->
+   <!--
+        By default we generate APIs for all packages.
+        If you wish to exclude some packages, add their names to
+        'excludepackagenames' below (use comma-separated list, wildcard allowed).
+        Consider also to add new 'group' elements (below) for new packages.
+        -->
    <!-- =================================================================== -->
-   <target name="docs" depends="init" description="Generate API documentation.">
-      <javadoc packagenames="${documented.packages}" 
-               sourcepath="${src.main}"
-               sourcefiles="${documented.files}"
-               destdir="${javadoc.dir}"
-               classpathref="build.classpath"
-
-               windowtitle="jMoby"
-               doctitle="jMoby: BioMOBY in Java"
-               overview="${docs.dir}/API-overview.html"
-               author="true"
-               version="true"
-               use="true"
-               nodeprecatedlist="true"
-               public="true">
-         <group title="jMoby Shared Resources" 
-                packages="org.biomoby.shared"/>
-         <header><![CDATA[<font size="-1">Generated: ${TODAY_LONG}</font>]]></header>
-         <bottom><![CDATA[<font size="-1">
-                          <a href="mailto:markw at illuminae.com,senger at ebi.ac.uk">Submit a bug or feature</a><BR>
-                          Generated: ${TODAY_LONG}</font>]]></bottom>
-      </javadoc>
+   <target name="docs" depends="compile,cleanapi"
+     description="Generate API documentation.">
+
+     <javadoc
+       packagenames="*.*"
+       excludepackagenames="org.biomoby.service.generated"
+       destdir="${javadoc.dir}"
+       classpathref="build.classpath"
+       defaultexcludes="yes"
+       breakiterator="yes"
+       windowtitle="jMoby"
+       doctitle="jMoby: BioMOBY in Java"
+       author="true"
+       version="true"
+       use="true"
+       nodeprecatedlist="true"
+       public="true">
+
+       <!-- included files -->
+       <sourcepath>
+         <pathelement location="${src.main}"/>
+         <pathelement location="${src.clients}"/>
+         <pathelement location="${src.services}"/>
+       </sourcepath>
+
+       <!-- excluded files -->
+       <!-- This does not work...
+       <fileset dir="${src.services}" defaultexcludes="yes">
+         <include name="**/*.java"/>
+         <exclude name="org/biomoby/service/generated/*,org/biomoby/service/Echo*"/>
+       </fileset>
+       <fileset dir="${src.clients}" defaultexcludes="yes">
+         <include name="**/*.java"/>
+         <exclude name="Echo*"/>
+       </fileset>
+       -->
+       
+       <header><![CDATA[<font size="-1">Generated: ${TODAY_LONG}</font>]]></header>
+       <bottom><![CDATA[<font size="-1">
+       <a href="mailto:moby-dev at biomoby.org?subject=jMoby%20API">Submit a bug or feature</a><BR>
+       Generated: ${TODAY_LONG}</font>]]></bottom>
+       <group
+         title="jMoby Shared Resources" 
+         packages="org.biomoby.shared"/>
+       <group
+         title="Client components" 
+         packages="org.biomoby.client"/>
+       <group
+         title="Moby registry components" 
+         packages="org.biomoby.registry"/>
+       <group
+         title="Components for service providers" 
+         packages="org.biomoby.service"/>
+       <group
+         title="General utilities for SOAP communication" 
+         packages="embl.ebi.soap"/>
+       
+       <!-- here add additional 'group' elements if you wish -->
+       <!-- (multiple packages should be separated by ":")
+            <group title="..." packages="..."/>
+            -->
+       <!-- end of additional 'group' elements -->
+       
+     </javadoc>
    </target>
 
    <!-- ================================================================== -->
    <!-- Clean-up                                                           -->
    <!-- ================================================================== -->
-   <target name="clean" description="Remove all generated files.">
-      <delete dir="${build.dir}"/>
+   <target name="clean" depends="cleanapi"
+     description="Remove all generated files.">
+     <delete dir="${build.dir}"/>
+   </target>
+
+   <target name="cleanapi">
+     <delete quiet="true" includeEmptyDirs="true">
+       <fileset dir="${javadoc.dir}" excludes=".cvsignore*"/>
+     </delete>
    </target>
 
    <target name="cleanall" depends="clean"
            description="Remove all generated files and third-party libraries.">
-      <delete>
-         <fileset dir="${lib.dir}">
-            <include name="*.jar"/>
-            <exclude name="ant_home/*.jar"/>
-         </fileset>
-      </delete>
+     <delete>
+       <fileset dir="${lib.dir}">
+         <include name="*.jar"/>
+         <exclude name="ant_home/*.jar"/>
+       </fileset>
+     </delete>
    </target>
 
 
@@ -493,7 +548,11 @@
          </tarfileset>
       </tar>
 -->
-      <tar destfile="${destfile}.tar.gz" basedir="${build.dist}" compression="gzip"/>
+      <tar
+        destfile="${destfile}.tar.gz"
+        basedir="${build.dist}"
+        compression="gzip"
+        longfile="gnu"/>
       <zip destfile="${destfile}.zip" basedir="${build.dist}"/>
 
    </target>
@@ -541,7 +600,11 @@
       </copy>
       <chmod dir="${rdfagent.dist}" perm="ugo+rx" includes="run-RDFagent, reset" excludes="*.bat"/>
 
-      <tar destfile="${rdfdestfile}.tar.gz" basedir="${build.rdfagent}" compression="gzip"/>
+      <tar
+        destfile="${rdfdestfile}.tar.gz"
+        basedir="${build.rdfagent}"
+        longfile="gnu"
+        compression="gzip"/>
       <zip destfile="${rdfdestfile}.zip" basedir="${build.rdfagent}"/>
 
    </target>




More information about the MOBY-guts mailing list