User: ko5tik
Date: 02/07/18 11:04:10
Modified: . build.xml
Log:
finished documentation and distribution assembly process
Revision Changes Path
1.17 +21 -41 xdocletgui/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/xdoclet/xdocletgui/build.xml,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -w -r1.16 -r1.17
--- build.xml 17 Jul 2002 16:15:42 -0000 1.16
+++ build.xml 18 Jul 2002 18:04:09 -0000 1.17
@@ -25,8 +25,8 @@
<property name="src.docs.dir" value="${basedir}/xdocs"/>
<property name="build.docs.dir" value="${build.dir}/docs"/>
<property name="build.javadocs.dir" value="${build.docs.dir}/api"/>
- <property name="build.todo.dir" value="${build.dir}/todo"/>
- <property name="build.todo-javadoc.dir"
value="${build.dir}/todo-javadoc"/>
+ <property name="build.todo.dir" value="${build.docs.dir}/todo"/>
+ <property name="build.todo-javadoc.dir"
value="${build.docs.dir}/todo-javadoc"/>
<property name="dist.dir" value="${basedir}/dist"/>
<property name="zip.file" value="${name.version}.zip"/>
<property name="tar.file" value="${name.version}.tar"/>
@@ -68,7 +68,15 @@
</fileset>
</path>
+ <!-- =================================================================== -->
+ <!-- define documenation task -->
+ <!-- =================================================================== -->
+ <taskdef
+ name="document"
+ classname="xdoclet.modules.doc.DocumentDocletTask"
+ classpathref="classpath"
+ />
<!-- =================================================================== -->
<!-- Prepares the source code -->
@@ -118,31 +126,14 @@
</pretty>
</target>
- <!-- =================================================================== -->
- <!-- Deletes JUnit test sources and classes. Useful for Javadoc, -->
- <!-- Doclint and packaging -->
- <!-- =================================================================== -->
- <target name="delete-tests" depends="prepare">
- <delete>
- <fileset dir="${build.java.src.dir}">
- <include name="**/*Test.*"/>
- </fileset>
- <fileset dir="${build.classes.dir}">
- <include name="**/*Test.*"/>
- </fileset>
- </delete>
- </target>
+
<!-- =================================================================== -->
<!-- Generate TODO list -->
<!-- =================================================================== -->
<target name="todo" depends="prepare">
- <taskdef
- name="document"
- classname="xdoclet.doc.DocumentDocletTask"
- />
+ <mkdir dir="${build.todo.dir}"/>
<document
- sourcepath="${java.src.dir}"
destdir="${build.todo.dir}"
>
<fileset dir="${java.src.dir}">
@@ -159,12 +150,8 @@
<!-- generate javadoc to do lists -->
<!--=========================================-->
<target name="todo-javadoc" depends="prepare">
- <taskdef
- name="document"
- classname="xdoclet.doc.DocumentDocletTask"
- />
+ <mkdir dir="${build.todo-javadoc.dir}"/>
<document
- sourcepath="${java.src.dir}"
destdir="${build.todo-javadoc.dir}"
>
<fileset dir="${java.src.dir}">
@@ -181,7 +168,7 @@
<!-- =================================================================== -->
<!-- Creates the API documentation with iDoclet -->
<!-- =================================================================== -->
- <target name="javadocs" depends="prepare,delete-tests" description="Generates
the API documentation">
+ <target name="javadocs" depends="prepare" description="Generates the API
documentation">
<mkdir dir="${build.javadocs.dir}"/>
<javadoc
packagenames="*.*"
@@ -206,15 +193,6 @@
</java>
</target>
- <!-- =================================================================== -->
- <!-- Runs JUnit Swing UI -->
- <!-- =================================================================== -->
- <target name="junit-swing" depends="compile" description="Runs the JUnit Swing
UI">
- <java classname="junit.swingui.TestRunner" fork="yes">
- <classpath refid="classpath"/>
- <jvmarg value="-Dlog4j.configuration=${log4j.properties.file}"/>
- </java>
- </target>
<!-- =================================================================== -->
@@ -260,15 +238,17 @@
<!-- =================================================================== -->
<!-- Copy sources to dist -->
<!-- =================================================================== -->
- <target name="dist" depends="jar">
+ <target name="dist" depends="jar,docs,todo,todo-javadoc,javadocs">
<copy todir="dist/${name}">
- <fileset dir="${basedir}">
- <exclude name="build/**"/>
- <exclude name="dist/**"/>
+ <fileset dir="${build.dir}">
+ <exclude name="classes/**"/>
+ <exclude name="MANIFEST.MF"/>
<exclude name="*.zip"/>
<exclude name="*.tgz"/>
</fileset>
</copy>
+ <copy file="${basedir}/run.sh" todir="dist/${name}"/>
+ <copy file="${basedir}/run.bat" todir="dist/${name}"/>
</target>
<!-- =================================================================== -->
@@ -283,7 +263,7 @@
<!-- =================================================================== -->
<target name="dist-tgz" depends="dist" description="Generates the distribution
as a .tar.gz file">
<tar tarfile="${tar.file}" basedir="${dist.dir}" includes="**"/>
- <gzip toile="${tgz.file}" src="${tar.file}"/>
+ <gzip zipfile="${tgz.file}" src="${tar.file}"/>
<delete file="${tar.file}"/>
</target>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel