geirm 02/02/10 01:24:51
Modified: examples/toolbox build.xml
Log:
Enhancements from Bill Burton <[EMAIL PROTECTED]> :
- compile target for tool
- demonstrate new features of DVSL task
Revision Changes Path
1.2 +32 -8 jakarta-velocity-dvsl/examples/toolbox/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-velocity-dvsl/examples/toolbox/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build.xml 18 Dec 2001 20:53:06 -0000 1.1
+++ build.xml 10 Feb 2002 09:24:51 -0000 1.2
@@ -9,10 +9,10 @@
<!-- The name of this component -->
- <property name="project.name" value="dvsl" />
+ <property name="project.name" value="velocity-dvsl" />
<!-- The current version number of this component -->
- <property name="project.version" value="0.2"/>
+ <property name="project.version" value="0.40"/>
<!-- The docs source directory -->
<property name="docs.src" value="xdocs"/>
@@ -20,6 +20,9 @@
<!-- The docs destination directory -->
<property name="docs.dest" value="docs"/>
+ <!-- The compile debug setting -->
+ <property name="compile.debug" value="true" />
+
<!-- Construct compile classpath -->
<path id="classpath">
<fileset dir="${local.repository}">
@@ -30,13 +33,23 @@
<!-- ========== Executable Targets ======================================== -->
- <target name="tooltest">
+ <target name="compile">
+
+ <javac srcdir="${basedir}"
+ destdir="${basedir}"
+ includes="*.java"
+ debug="${compile.debug}"
+ classpathref="classpath" />
+
+ </target>
+
+
+ <target name="tooltest" depends="compile">
<taskdef name="dvsl" classname="org.apache.tools.dvsl.DVSLTask">
<classpath>
<pathelement location="../../${project.name}-${project.version}.jar"/>
- <pathelement location="."/>
<path refid="classpath"/>
</classpath>
@@ -48,14 +61,25 @@
extension=".html"
style="${docs.src}/site.dvsl"
excludes="**/project.xml"
- toolbox="toolbox.props"
+ toolboxfile="toolbox.props"
includes="**/*.xml"
- />
- </target>
+ >
+ <!-- Or, could specify this as an attribute -->
+ <classpath>
+ <pathelement location="." />
+ </classpath>
-</project>
+ <!-- This overrides the same property in toolbox.props -->
+ <tool name="toolbox.string.mystring" value="Howdy partner!" />
+
+ <!-- Specify name and location of velocity log file -->
+ <velconfig name="runtime.log" value="${basedir}/dvsl.log" />
+ </dvsl>
+ </target>
+
+</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>