Changeset 25131
- Timestamp:
- 2012-02-22T15:24:15+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/build.xml
r25095 r25131 83 83 <!-- version properties for external packages --> 84 84 <!-- for Java versions < 1.4, we print out the message that Java is too old. 85 For Java 1.4, we use Tomcat 5.5, for Java5 and higher, we use Tomcat 6.0-->86 <condition property="tomcat.version" value="apache-tomcat-5.5.25" else="apache-tomcat- 6.0.20">85 For Java 1.4, we use Tomcat 5.5, for Java5 and higher, we use Tomcat 7.0--> 86 <condition property="tomcat.version" value="apache-tomcat-5.5.25" else="apache-tomcat-7.0.26"> 87 87 <equals arg1="1.4" arg2="${ant.java.version}"/> 88 88 </condition> 89 <condition property="tomcat.version.major" value="5" else=" 6">89 <condition property="tomcat.version.major" value="5" else="7"> 90 90 <equals arg1="1.4" arg2="${ant.java.version}"/> 91 91 </condition> … … 145 145 </and> 146 146 </condition> 147 147 148 148 <property name="os.linux" value="Linux"/> 149 149 <property name="os.mac" value="Mac OS X"/> … … 442 442 </path> 443 443 444 <!-- All elements that Tomcat 6exposes to applications -->445 <path id="tomcat 6">444 <!-- All elements that Tomcat 7 exposes to applications --> 445 <path id="tomcat7"> 446 446 <fileset dir="${catalina.home}/lib"> 447 447 <include name="*.jar"/> … … 731 731 <!-- 732 732 the next block checks if the bundled tomcat is present in the 'packages' directory, 733 and checks for the lethal combination of tomcat 6and java 1.4. Test for733 and checks for the lethal combination of tomcat 7 and java 1.4. Test for 734 734 tomcat6 is based on the presence of a file inserted by greenstone into the tomcat6 735 735 download, as there is no other surefire way to check tomcat version under java 1.4 … … 738 738 <available file="packages/tomcat"/> 739 739 </condition> 740 <condition property="packages.tomcat.istomcat 6" value="true" else="false">741 <available file="packages/tomcat/tomcat 6.txt"/>740 <condition property="packages.tomcat.istomcat7" value="true" else="false"> 741 <available file="packages/tomcat/tomcat7.txt"/> 742 742 </condition> 743 743 <if> … … 745 745 <and> 746 746 <istrue value="${packages.tomcat.ispresent}"/> 747 <istrue value="${packages.tomcat.istomcat 6}"/>747 <istrue value="${packages.tomcat.istomcat7}"/> 748 748 <equals arg1="1.4" arg2="${ant.java.version}"/> 749 749 </and> … … 955 955 956 956 <!-- this target downloads and installs Tomcat --> 957 <!-- we download tomcat (version 6for Java 1.5 and later, version 5 for Java 1.4 plus the 1.4 compatibility package). -->957 <!-- we download tomcat (version 7 for Java 1.5 and later, version 5 for Java 1.4 plus the 1.4 compatibility package). --> 958 958 <target name="prepare-tomcat" depends="init,setup-proxy" if="tomcat.islocal" 959 description="downloads the appropriate version of Tomcat (Tomcat 5 if using Java 1.4, Tomcat 6 if using Java 1.5 or higher). If you want to change which version of Java you are using between 1.4 and 1.5/6then you need to run prepare-tomcat">960 959 description="downloads the appropriate version of Tomcat (Tomcat 5 if using Java 1.4, Tomcat 7 if using Java 1.5 or higher). If you want to change which version of Java you are using between 1.4 and 1.5/7 then you need to run prepare-tomcat"> 960 <if> 961 961 <bool> 962 962 <not><available file="${packages.home}/tomcat/.flagfile"/></not> … … 987 987 <fileset dir="${packages.home}/${tomcat.version}"/> 988 988 </move> 989 989 990 <copy file="${basedir}/resources/tomcat/setclasspath.bat" 990 991 tofile="${packages.home}/tomcat/bin/setclasspath.bat" … … 993 994 tofile="${packages.home}/tomcat/bin/setclasspath.sh" 994 995 overwrite="true"/> 996 995 997 <!-- make sure we have execute permission for the .sh files --> 996 998 <chmod dir="${packages.home}/tomcat/bin" perm="ugo+rx" … … 1346 1348 description="Compile only the Greenstone core"> 1347 1349 <mkdir dir="${build.home}"/> 1350 1348 1351 <if><bool><isset property="with.jni"/></bool> 1349 1352 <javac srcdir="${src.home}"
Note:
See TracChangeset
for help on using the changeset viewer.