In data Sat, 27 Dec 2003 19:24:33 +0100
Gianluca Toso scrisse:

> Problem build tomcat 5.0.16 with IBMJava2-SDK 1.4.1 on intel.
> "ant" from src abort on src/jakarta-tomcat-connectors/util/build.xml, so I
> have tried ant from this dir:
[...]

> /usr/local/src/jakarta-tomcat-5.0.16-src/src/jakarta-tomcat-connectors/ut
> il/java/org/apache/tomcat/util/net/jsse/JSSE13SocketFactory.java:105:
> cannot resolve symbol
>     [javac] symbol  : class Sun 
>     [javac] location: package provider
>     [javac]             Security.addProvider (new
> sun.security.provider.Sun());

> It try to compile JSSE for jdk < 1.4 (JSSE13*) with jdk 1.4 too.
> I have added:
>             <exclude name="**/util/net/jsse/JSSE13*" if="jdk1.4.present"
>             />
> after:
>             <exclude name="**/util/net/jsse/JSSE14*"
>             unless="jdk1.4.present"
> />

I don't understand why, but it seems to include the support for JDK < 1.4
even if compiled with JDK 1.4.x
So I have restored build.xml and modified JSSE13SocketFactory.java in order
to work with the JDK of IBM.

One of the reasons to compile sources would have to be to be able to choose
which features to include/to exclude and to obtain optimized "binaries" for
own system? 
IMHO would be useful one first phase style autoconf or at least one
explanation on how to make this with ant and the several one
build.properties. 
What of it you say?  I'm in mistake?

-- 
Gianluca Toso

Attachment: jakarta-tomcat-5.0.16-src_ibmjdk14.patch-2.gz
Description: Binary data

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to