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