enforce JDK 1.4 compatibility. VELOCITY-521.
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@544379 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/build/build.properties b/build/build.properties
index 9fa5943..468dd0f 100644
--- a/build/build.properties
+++ b/build/build.properties
@@ -71,7 +71,7 @@
dist.root= ${build.dir}/dist
dist.dir= ${dist.root}/${final.name}
-# required Java version for building the distribution
+# required Java version for building the distribution (with "ant release")
# should be major distribution (e.g. 1.4) will match property ${ant.java.version}
dist.required.java.version = 1.4
@@ -137,3 +137,5 @@
#
########################################################################
+javac.target=1.4
+javac.source=1.4
diff --git a/build/build.xml b/build/build.xml
index b9566f5..77ce2b3 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -252,6 +252,8 @@
destdir="${build.dest}"
encoding="UTF-8"
debug="${debug}"
+ target="${javac.target}"
+ source="${javac.source}"
deprecation="${deprecation}"
optimize="${optimize}"
classpathref="velocity.build.classpath"/>