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