User: pazu
Date: 02/05/17 05:12:34
Modified: core Tag: MODULE_REFACTORING_BRANCH build.xml
Log:
Used <condition> to verify if XJavadoc sources are present and if we really
need to build it. If the xjavadoc.jar is newer than the sources, we don't
build XJavadoc again.
Revision Changes Path
No revision
No revision
1.1.2.12 +13 -4 xdoclet/core/Attic/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/Attic/build.xml,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -w -r1.1.2.11 -r1.1.2.12
--- build.xml 15 May 2002 18:55:33 -0000 1.1.2.11
+++ build.xml 17 May 2002 12:12:33 -0000 1.1.2.12
@@ -24,7 +24,16 @@
<!-- Init properties -->
<!-- =================================================================== -->
<target name="init">
- <available file="${xjavadoc.dir}/build.xml"
property="xjavadoc.source.present"/>
+ <condition property="xjavadoc.build.needed">
+ <and>
+ <available file="${xjavadoc.dir}/build.xml"/>
+ <not>
+ <uptodate targetfile="${xjavadoc.jar}">
+ <srcfiles dir="${xjavadoc.dir}"/>
+ </uptodate>
+ </not>
+ </and>
+ </condition>
<filterset id="xdoclet.filters">
<filter token="VERSION" value="${version}" />
@@ -47,15 +56,15 @@
</target>
- <target name="build-xjavadoc" if="xjavadoc.source.present">
+ <target name="build-xjavadoc" if="xjavadoc.build.needed">
<!-- build xjavadoc -->
- <echo message="XJavadoc sources are available. Building xjavadoc..."/>
+ <echo message="XJavadoc sources are available and newer than xjavadoc.jar.
Building xjavadoc..."/>
<ant dir="${xjavadoc.dir}" target="jar" inheritAll="false">
<property name="dist.dir" value="${dist.lib.dir}"/>
</ant>
</target>
- <target name="clean-xjavadoc" if="xjavadoc.source.present">
+ <target name="clean-xjavadoc" if="xjavadoc.build.needed">
<ant dir="${xjavadoc.dir}" target="clean" inheritAll="false"/>
</target>
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel