[opencms-dev] build from cvs-source fails - some libraries are not available

Manfred Pruntsch manfred.pruntsch at ifcos.com
Wed Feb 13 23:40:05 CET 2002


Hi,

I try to build a currently opencms (4.5?) based on cvs sources but it fails.
-------------- <error message> ----------------------------
C:\opencms45\opencms>ant all
Buildfile: build.xml
clean:
init:
initmsg:
BUILD FAILED
C:\opencms45\opencms\build.xml:83: null
Error: Some of the required libaries are not available.
To comile OpenCms, you need the following libaries:
../ExternalComponents/servlet.jar
../ExternalComponents/activation.jar
../ExternalComponents/mail.jar
../ExternalComponents/xerces-1_4_4.jar
../ExternalComponents/mm.mysql-2.0.4-bin.jar
../ExternalComponents/fesi.jar
../ExternalComponents/jakarta-oro-2.0.4.jar
../ExternalComponents/Tidy.jar
--------------- </error message> --------------------------

And that's right. In fact, some libraries are not available:
jakarta-oro-2.0.4.jar
xerces-1_4_4.jar (but xerxes.jar exist)
Tidy.jar (is the upper case letter correct?)

In the build.xml file provided by cvs the section <property name .... >
contain ten libraries.
----------------------------------------- <property name ....
> -------------------------
 <property name="build.inputlib.servlet"
value="${build.inputlib}/servlet.jar"/>
    <property name="build.inputlib.activation"
value="${build.inputlib}/activation.jar"/>
    <property name="build.inputlib.mail"
value="${build.inputlib}/mail.jar"/>
    <property name="build.inputlib.xerces"
value="${build.inputlib}/xerces-1_4_4.jar"/>
    <property name="build.inputlib.mysql"
value="${build.inputlib}/mm.mysql-2.0.4-bin.jar"/>
    <property name="build.inputlib.fesi"
value="${build.inputlib}/fesi.jar"/>
    <property name="build.inputlib.oracle"
value="${build.inputlib}/classes12.zip"/>
    <property name="build.inputlib.fop"
value="${build.inputlib}/fop_bin.jar"/>
    <property name="build.inputlib.oro"
value="${build.inputlib}/jakarta-oro-2.0.4.jar"/>
    <property name="build.inputlib.tidy"
value="${build.inputlib}/Tidy.jar"/>
-----------------------------------------
end -------------------------------------------

But some rows further in the same file (build.xml) the section <condition
property="libsAvailable">
looks only for eight libraries. Is it all right? What's about 'fop_bin.jar'
and 'classes12.jar'?
----------------------------------------- <condition
property="libsAvailable"> ----------
<target name="init" description="Checks if all needed libaries are
available">
        <condition property="libsAvailable">
            <and>
                <available file="${build.inputlib.servlet}"/>
                <available file="${build.inputlib.activation}"/>
                <available file="${build.inputlib.mail}"/>
                <available file="${build.inputlib.xerces}"/>
                <available file="${build.inputlib.mysql}"/>
                <available file="${build.inputlib.fesi}"/>
                <available file="${build.inputlib.oro}"/>
                <available file="${build.inputlib.tidy}"/>
            </and>
        </condition>
------------------------------------------
end --------------------------------------------

I've got the libraries for the 'ExternalComponents' directory from the 4.4.6
major zip file as described in the 'core build' document.
And the most interesting thing is: An 'ant all' over the 4.4.6 release
(without cvs files)
build the classes successfully.
My questions are:
1. Where I can get the missing libraries?
2. Is the build.xml file provided by cvs correct?
3. How I can find out the version number of opencms software after a cvs
checkout?
I hope there are somebody who can help me (the first question is the most
important...).

Best regards in advance,
Manfred






More information about the opencms-dev mailing list