You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by hu...@apache.org on 2003/05/17 14:32:19 UTC
cvs commit: jakarta-struts/contrib/struts-legacy build.xml
husted 2003/05/17 05:32:19
Modified: contrib/struts-legacy build.xml
Log:
Modify build.xml to support compilation under JVM 1.3 or 1.4.
Revision Changes Path
1.2 +16 -6 jakarta-struts/contrib/struts-legacy/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/struts-legacy/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build.xml 9 May 2003 10:14:42 -0000 1.1
+++ build.xml 17 May 2003 12:32:19 -0000 1.2
@@ -20,9 +20,6 @@
<property name="commons.home" location="../../../jakarta-commons"/>
<property name="commons-logging.jar" location="${commons.home}/commons-logging/dist/commons-logging.jar"/>
- <!--
- <property name="jdbc20ext.jar" value="/classes/jdbc20ext.jar"/>
- -->
<!-- ========== Local System Paths ==================================== -->
@@ -30,6 +27,12 @@
<property name="conf.home" location="src/conf"/>
<property name="dist.home" location="dist"/>
<property name="source.home" location="src/java"/>
+ <property name="source.jdk.home" location="src/jdk"/>
+
+ <!-- Must select either JDK 1.3 or 1.4 -->
+ <property name="jdk.version" value="1.3"/>
+ <!-- Define for JDK 1.3 only -->
+ <property name="jdbc20ext.jar" value="/opt/Javasoft/lib/jdbc2_0-stdext.jar"/>
<!-- ========== Java Compilation Defaults ============================= -->
<!-- These defaults may be overridden by user preferences from above -->
@@ -43,9 +46,7 @@
<path id="compile.classpath">
<pathelement location="${build.home}/classes"/>
<pathelement location="${commons-logging.jar}"/>
- <!--
<pathelement location="${jdbc20ext.jar}"/>
- -->
</path>
@@ -111,6 +112,15 @@
<target name="compile" depends="resources"
description="Compile library classes">
+ <!-- jdk specific -->
+ <javac srcdir="${source.jdk.home}/${jdk.version}"
+ destdir="${build.home}/classes"
+ debug="${compile.debug}"
+ deprecation="${compile.deprecation}"
+ optimize="${compile.optimize}">
+ <classpath refid="compile.classpath"/>
+ </javac>
+ <!-- jdk generic (1.2+) -->
<javac srcdir="${source.home}"
destdir="${build.home}/classes"
debug="${compile.debug}"
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org