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