costin 02/04/05 09:45:08 Modified: util build.xml Log: Add detection script for JSSE and PureTLS ( cut&paste from tomcat ). For PureTLS - I think it would be usefull to not require it in classpath, but that's who it is right now in 33. Revision Changes Path 1.4 +18 -2 jakarta-tomcat-connectors/util/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/util/build.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- build.xml 8 Jun 2001 19:54:06 -0000 1.3 +++ build.xml 5 Apr 2002 17:45:08 -0000 1.4 @@ -6,14 +6,25 @@ <property name="tomcat-util.build" value="${basedir}/build"/> - <target name="build-prepare"> + + <target name="detect"> + <available property="jsse.present" + file="${jsse.lib}/jsse.jar"/> + <!-- XXX make this file based, I don't like requiring it in the classpath --> + <available property="puretls.present" + classname="COM.claymoresystems.ptls.SSLContext"/> + </target> + + <target name="build-prepare" depends="detect"> <mkdir dir="${tomcat-util.build}"/> <mkdir dir="${tomcat-util.build}/classes"/> <mkdir dir="${tomcat-util.build}/lib"/> </target> <target name="build-main" depends="build-prepare"> - + <echo message="----- Java-utils -----" /> + <echo message="-- puretls.present = ${puretls.present}" /> + <echo message="-- jsse.present = ${jsse.present}"/> <javac srcdir="java" destdir="${tomcat-util.build}/classes" deprecation="on" @@ -21,6 +32,11 @@ optimize="off" verbose="off" excludes="**/CVS/**"> + <classpath location="${jsse.lib}/jsse.jar" /> + <classpath location="${jsse.lib}/jnet.jar" /> + <classpath location="${jsse.lib}/jcert.jar" /> + <exclude name="**/util/net/JSSE*" unless="jsse.present"/> + <exclude name="**/util/net/PureTLS*" unless="puretls.present"/> </javac> <!-- Copy static resource files -->
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>