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