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