geirm 02/02/10 21:39:55
Modified: . build.xml
Log:
Patch from Wido Hillmann <[EMAIL PROTECTED]> to give it a
site-printable target, for printable docs
Revision Changes Path
1.12 +35 -3 jakarta-velocity-dvsl/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-velocity-dvsl/build.xml,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- build.xml 10 Feb 2002 09:22:41 -0000 1.11
+++ build.xml 11 Feb 2002 05:39:55 -0000 1.12
@@ -21,7 +21,7 @@
<property name="project.title" value=""/>
<!-- The current version number of this component -->
- <property name="project.version" value="0.40"/>
+ <property name="project.version" value="0.33"/>
<!-- The base directory for compilation targets -->
<property name="build.home" value="target"/>
@@ -41,6 +41,9 @@
<!-- The docs destination directory -->
<property name="docs.dest" value="docs"/>
+ <!-- The printdocs destination directory -->
+ <property name="docs-printable.dest" value="docs_print"/>
+
<!-- ========== Compiler Defaults ========================================= -->
@@ -53,6 +56,8 @@
<!-- Should Java compilations set the 'optimize' compiler option? -->
<property name="compile.optimize" value="true"/>
+
+
<!-- Construct compile classpath -->
<path id="classpath">
<fileset dir="${local.repository}">
@@ -62,7 +67,6 @@
-
<!-- ========== Test Execution Defaults =================================== -->
@@ -232,7 +236,7 @@
<dvsl
basedir="${docs.src}"
destdir="${docs.dest}/"
- toolboxfile="${docs.src}/toolbox.props"
+ toolbox="${docs.src}/toolbox.props"
extension=".html"
style="${source.home}/stylesheets/site.dvsl"
excludes="**/project.xml"
@@ -240,7 +244,35 @@
/>
</target>
+ <!-- Is the directory for printable docs already created?-->
+ <target name="docsprint-dir-check">
+ <available file="${docs-printable.dest}" type="file"
property="docsprint-dir.present"/>
+ </target>
+
+ <target name="docsprint-dir-create" depends="docsprint-dir-check"
unless="docsprint-dir.present">
+ <mkdir dir="${docs-printable.dest}"/>
+ </target>
+
+<target name="docs-printable" depends="docsprint-dir-create">
+ <taskdef name="dvsl" classname="org.apache.tools.dvsl.DVSLTask">
+
+ <classpath>
+ <pathelement location="${project.name}-${project.version}.jar"/>
+ <path refid="classpath"/>
+ </classpath>
+
+ </taskdef>
+ <dvsl
+ basedir="${docs.src}"
+ destdir="${docs-printable.dest}/"
+ toolbox="${docs.src}/toolbox.props"
+ extension=".html"
+ style="${source.home}/stylesheets/site_printable.dvsl"
+ excludes="**/project.xml"
+ includes="**/*.xml"
+ />
+ </target>
<!-- ================================================================== -->
<!-- T E S T -->
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>