Author: ben
Date: 2007-11-07 11:48:40 -0800 (Wed, 07 Nov 2007)
New Revision: 7183
Modified:
openlaszlo/trunk/build.xml
Log:
Change 20071105-ben-M by [EMAIL PROTECTED] on 2007-11-05 10:58:31 PST
in /Users/ben/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Add a check to only build doc if it hasn't already been built
New Features: faster distro build
Bugs Fixed: LPP-3720 Refguide is being built twice on build machines.
Technical Reviewer: ptw
QA Reviewer: mkratt (pending)
Documentation:
The dist-one target in build.xml previously built the documentation twice,
which slowed down the build by >20 minutes, depending on architecture.
This fix prevents the doc from building twice in the same invocation of
ant, by setting a property doc.build.done after building the docs.
Tests:
Run ant dist-one in the nightly build. Search for docs/reference/index.html
in the output. Before this change, it appeared twice, indicating that the
docs had built twice. After this change, it only appears once, indicating
that the docs only built once.
Modified: openlaszlo/trunk/build.xml
===================================================================
--- openlaszlo/trunk/build.xml 2007-11-07 19:30:10 UTC (rev 7182)
+++ openlaszlo/trunk/build.xml 2007-11-07 19:48:40 UTC (rev 7183)
@@ -530,6 +530,7 @@
<copy todir="tools" file="${webapp-lps-home}/schema/lzx.rng" />
<copy todir="tools" file="${webapp-lps-home}/schema/lzx.xsd" />
+ <echo message="benbenben: yo! in main build file target is build, gonna
call server/ target build." />
<ant dir="${webapp-lps-home}/server" target="build" />
<copy todir="${LPS_HOME}/WEB-INF/lib"
file="${webapp-lps-home}/server/lib/${lps.jar}" />
<ant target="build-classes" />
@@ -592,11 +593,11 @@
<!--================ Target [doc] ==============-->
<target name="doc"
description="Build documentation"
- depends="init" unless="skip.doc">
+ depends="init" unless="doc.build.done">
<!-- Build the docs -->
<ant dir="docs/src" />
-
+ <property name="doc.build.done" value="true" />
</target>
<!--================ Target [test] ==============-->
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins