diff --git a/ant/src/plugin-resources/templates/build.jelly b/ant/src/plugin-resources/templates/build.jelly
index 05725f84..33c61629 100644
--- a/ant/src/plugin-resources/templates/build.jelly
+++ b/ant/src/plugin-resources/templates/build.jelly
@@ -57,6 +57,12 @@
+
+
+
+
+
+
+
+
-
-
-
-
-
+
@@ -203,9 +207,11 @@
description="o Run the test cases">
+
+ depends="junit-present,compile-tests"
+ if="Junit.present">
-
-
-
+
@@ -246,6 +250,13 @@
+
+ Junit isn't present in your $${ANT_HOME}/lib directory. Tests not done.
+
+
@@ -261,9 +272,7 @@
-
-
-
+
@@ -309,7 +318,8 @@
+ description="o Generate javadoc"
+ depends="get-deps">
@@ -341,10 +351,7 @@
doctitle="${title}"
bottom="${copyright}">
-
-
-
-
+
@@ -364,6 +371,7 @@
ignoreerrors="true"
/>
+