You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ge...@apache.org on 2002/02/10 10:24:17 UTC
cvs commit: jakarta-velocity-dvsl/examples/simple build.xml
geirm 02/02/10 01:24:17
Modified: examples/simple build.xml
Log:
Bill Burton <bi...@progress.com> - adds the compilation of the example
vel props class, and demonstrates the classpath feature (and velpropsfile)
Revision Changes Path
1.4 +29 -7 jakarta-velocity-dvsl/examples/simple/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-velocity-dvsl/examples/simple/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- build.xml 6 Feb 2002 04:45:16 -0000 1.3
+++ build.xml 10 Feb 2002 09:24:17 -0000 1.4
@@ -1,12 +1,26 @@
<project name="dvsl-simple" default="doall" basedir=".">
+<!-- ========== External Dependencies ===================================== -->
+
+ <!-- the local JJAR repository -->
+ <property name="local.repository" value="../../lib" />
+
+<!-- ========== Component Declarations ==================================== -->
+
+ <!-- The name of this component -->
+ <property name="project.name" value="velocity-dvsl" />
+
+ <!-- The current version number of this component -->
+ <property name="project.version" value="0.40"/>
+
<!-- The docs source directory -->
<property name="docs.src" value="xdocs"/>
<!-- The docs destination directory -->
<property name="docs.dest" value="docs"/>
- <property name="local.repository" value="../../lib/" />
+ <!-- The compile debug setting -->
+ <property name="compile.debug" value="true" />
<!-- Construct compile classpath -->
<path id="classpath">
@@ -17,13 +31,22 @@
<!-- ========== Executable Targets ======================================== -->
- <target name="doall">
+ <target name="compile">
+
+ <javac srcdir="${basedir}"
+ destdir="${basedir}"
+ includes="*.java"
+ debug="${compile.debug}"
+ classpathref="classpath" />
+
+ </target>
+
+ <target name="doall" depends="compile">
<taskdef name="dvsl" classname="org.apache.tools.dvsl.DVSLTask">
<classpath>
- <pathelement location="../../velocity-dvsl-0.32.jar"/>
- <pathelement location="."/>
+ <pathelement location="../../${project.name}-${project.version}.jar"/>
<path refid="classpath"/>
</classpath>
@@ -35,13 +58,12 @@
extension=".html"
style="${docs.src}/example1.dvsl"
includes="example1.xml"
+ classpath="."
velocityConfigClass="ConfigVel"
/>
+
</target>
</project>
-
-
-
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>