61c284
From 813085c72e9906a53bec5954bcce7305a7c320d1 Mon Sep 17 00:00:00 2001
61c284
From: Stanislav Ochotnicky <sochotnicky@redhat.com>
61c284
Date: Mon, 21 Feb 2011 17:58:39 +0100
61c284
Subject: [PATCH 3/3] Use system jars
61c284
61c284
---
61c284
 build/build.xml     |   56 +++++++++++----------------------------------------
61c284
 build/testcases.xml |    6 -----
61c284
 2 files changed, 12 insertions(+), 50 deletions(-)
61c284
61c284
diff --git a/build/build.xml b/build/build.xml
61c284
index c667553..479ef2d 100644
61c284
--- a/build/build.xml
61c284
+++ b/build/build.xml
61c284
@@ -140,28 +140,6 @@
61c284
   
61c284
   
61c284
   
61c284
-  <target name="build-prepare">
61c284
-    <ant antfile="${velocity.build.dir}/download.xml" target="build-download" />
61c284
-
61c284
-    
61c284
-    <path id="velocity.build.classpath">
61c284
-      <fileset dir="${build.lib}">
61c284
-        <include name="**/*.jar"/>
61c284
-      </fileset>
61c284
-    </path>
61c284
-
61c284
-    
61c284
-    <path id="velocity.test.classpath">
61c284
-      <fileset dir="${build.test.lib}">
61c284
-        <include name="**/*.jar"/>
61c284
-      </fileset>
61c284
-    </path>
61c284
-
61c284
-    <path id="velocity.run.classpath">
61c284
-      <path refid="velocity.build.classpath"/>
61c284
-      <pathelement location="${build.dir}/${final.name}.jar"/>
61c284
-    </path>
61c284
-  </target>
61c284
 
61c284
   
61c284
   
61c284
@@ -174,12 +152,11 @@
61c284
   <target name="prepare-jdbc" depends="check-jdbc,check-jdbc-true,check-jdbc-false"/>
61c284
   <target name="prepare-jdk14" depends="check-jdk14,check-jdk14-true,check-jdk14-false"/>
61c284
 
61c284
-  <target name="check-jdbc" depends="build-prepare">
61c284
+  <target name="check-jdbc">
61c284
     
61c284
     
61c284
     
61c284
                property="jdbc.present">
61c284
-      <classpath refid="velocity.build.classpath"/>
61c284
     </available>
61c284
   </target>
61c284
 
61c284
@@ -210,10 +187,9 @@
61c284
     </echo>
61c284
   </target>
61c284
 
61c284
-  <target name="check-jdk14" depends="build-prepare">
61c284
+  <target name="check-jdk14">
61c284
      
61c284
                property="jdk14.present">
61c284
-      <classpath refid="velocity.build.classpath"/>
61c284
     </available>
61c284
   </target>
61c284
 
61c284
@@ -248,7 +224,7 @@
61c284
   
61c284
   <target name="compile" depends="compile-src,compile-test"/>
61c284
 
61c284
-  
61c284
+  
61c284
           description="Compiles the Velocity source">
61c284
     
61c284
       destdir="${build.dest}"
61c284
@@ -257,8 +233,7 @@
61c284
       target="${javac.target}"
61c284
       source="${javac.source}"
61c284
       deprecation="${deprecation}"
61c284
-      optimize="${optimize}"
61c284
-      classpathref="velocity.build.classpath"/>
61c284
+      optimize="${optimize}"/>
61c284
 
61c284
     <copy todir="${build.dest}" filtering="yes">
61c284
       <fileset dir="${src.java.dir}">
61c284
@@ -268,7 +243,7 @@
61c284
 
61c284
   </target>
61c284
 
61c284
-  
61c284
+  
61c284
           description="Compiles the Velocity test classes">
61c284
     
61c284
       destdir="${build.test.dest}"
61c284
@@ -279,8 +254,6 @@
61c284
 
61c284
       
61c284
       <classpath>
61c284
-        <path refid="velocity.build.classpath"/>
61c284
-        <path refid="velocity.test.classpath" />
61c284
         <pathelement location="${build.dest}"/>
61c284
       </classpath>
61c284
     </javac>
61c284
@@ -561,7 +534,7 @@
61c284
   
61c284
   
61c284
   
61c284
-  
61c284
+  
61c284
           description="Compiles the Velocity Example code">
61c284
 
61c284
     <echo>
61c284
@@ -585,8 +558,7 @@
61c284
       encoding="UTF-8"
61c284
       debug="${debug}"
61c284
       deprecation="${deprecation}"
61c284
-      optimize="${optimize}"
61c284
-      classpathref="velocity.run.classpath"/>
61c284
+      optimize="${optimize}"/>
61c284
   </target>
61c284
 
61c284
   <target name="examples-clean" depends="examples-clean-anakia">
61c284
@@ -604,7 +576,7 @@
61c284
   
61c284
   
61c284
   
61c284
-  
61c284
+  
61c284
           description="Creates the Javadoc API documentation">
61c284
 
61c284
     <mkdir dir="${build.javadoc}"/>
61c284
@@ -620,8 +592,7 @@
61c284
              doctitle="${name} ${version} API"
61c284
              encoding="UTF-8"
61c284
              docencoding="UTF-8"
61c284
-             bottom="Copyright © 2000-${build.year} <a href="http://www.apache.org/">Apache Software Foundation</a>. All Rights Reserved."
61c284
-             classpathref="velocity.build.classpath">
61c284
+             bottom="Copyright © 2000-${build.year} <a href="http://www.apache.org/">Apache Software Foundation</a>. All Rights Reserved.">
61c284
 
61c284
       <link href="${javadocs.ref.jsdk}"/>
61c284
       <link href="http://www.jdom.org/docs/apidocs"/>
61c284
@@ -1024,12 +995,11 @@
61c284
   
61c284
   
61c284
 
61c284
-  
61c284
+  
61c284
           description="Generates the Velocity HTML documentation">
61c284
 
61c284
     
61c284
-             classname="org.apache.velocity.anakia.AnakiaTask"
61c284
-             classpathref="velocity.run.classpath"/>
61c284
+             classname="org.apache.velocity.anakia.AnakiaTask"/>
61c284
 
61c284
     <echo>
61c284
   #######################################################
61c284
@@ -1231,7 +1201,7 @@
61c284
   
61c284
   
61c284
   
61c284
-  
61c284
+  
61c284
           description="Run the Velocity testcases">
61c284
 
61c284
     
61c284
@@ -1264,8 +1234,6 @@
61c284
 
61c284
       
61c284
       <classpath>
61c284
-        <path refid="velocity.build.classpath" />
61c284
-        <path refid="velocity.test.classpath" />
61c284
         <pathelement path="${build.dest}"/>
61c284
         <pathelement path="${build.test.dest}"/>
61c284
       </classpath>
61c284
diff --git a/build/testcases.xml b/build/testcases.xml
61c284
index 06bb36e..f3749bc 100644
61c284
--- a/build/testcases.xml
61c284
+++ b/build/testcases.xml
61c284
@@ -36,12 +36,6 @@
61c284
 
61c284
   
61c284
   <path id="velocity.test.classpath">
61c284
-    <fileset dir="${build.lib}">
61c284
-      <include name="**/*.jar"/>
61c284
-    </fileset>
61c284
-    <fileset dir="${build.test.lib}">
61c284
-      <include name="**/*.jar"/>
61c284
-    </fileset>
61c284
     <pathelement location="${build.dest}"/>
61c284
     <pathelement location="${build.test.dest}"/>
61c284
   </path>
61c284
-- 
61c284
1.7.4
61c284