Re: Frameworks and Jars

From: Kaj Hejer (kaj.heje..sit.uio.no)
Date: Fri Sep 27 2002 - 14:04:39 EDT

  • Next message: Ulrich Köster: "Updating projects from 0.8.8 to 0.8.9"

    At 12:45 -0400 27-09-02, Lon Baker wrote:
    >I have searched the archive to a great length but still have found no
    >answer to this issue.
    >
    >I have several frameworks in /Library/Frameworks and Jar's in
    >/Library/Java/Extensions. What is the correct was of setting up the
    >paths to properly reference these during the build process?
    >

    Hi!

    I copy and paste in some parts of our build.xml bellow:

        <property name="next_root" value="${env.NEXT_ROOT}"/>
        <condition property="next_root" value="/System">
                <and>
                    <os family="mac" />
                    <os family="unix" />
                </and>
            </condition>

            <echo message="${next_root}" />

            <property name="local_fw_root"
    value="${next_root}/Local/Library/Frameworks"/>
            <condition property= "local_fw_root" value="/Library/Frameworks">
                <and>
                    <os family="mac" />
                    <os family="unix" />
                </and>
         </condition>

        <target name="compile" depends="prepare"
                              description="compile the Java source.">
            <javac srcdir="." destdir="${build}">
                <classpath >
                    <pathelement
    location="${fw_root}/JavaFoundation.framework/Resources/Java/javafoundation.jar"/>
                    <pathelement
    location="${fw_root}/JavaEOControl.framework/Resources/Java/javaeocontrol.jar"/>
                    <pathelement
    location="${fw_root}/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar"/>
                    <pathelement
    location="${fw_root}/JavaWebObjects.framework/Resources/Java/javawebobjects.jar"/>
                    <pathelement
    location="${fw_root}/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar"/>
                    <pathelement
    location="${local_fw_root}/WOUnitTest.framework/Resources/Java/WOUnitTest.jar"/>
                    <pathelement
    location="${local_fw_root}/uiofw.framework/Resources/Java/uiofw.jar"/>
                    <pathelement
    location="${local_fw_root}/securityfw.framework/Resources/Java/securityfw.jar"/>
                    <pathelement
    location="${local_fw_root}/directoryfw.framework/Resources/Java/directoryfw.jar"/>
                    <pathelement
    location="${local_fw_root}/utilityfw.framework/Resources/Java/utilityfw.jar"/>
                    <pathelement
    location="${local_fw_root}/languagefw.framework/Resources/Java/languagefw.jar"/>
                </classpath>
            </javac>

        </target>

            <property name="wo.localroot" value="${next_root}/Local"/>
            <condition property= "wo.localroot" value="/">
                <and>
                    <os family="mac" />
                    <os family="unix" />
                </and>
            </condition>
            <echo message="${wo.localroot}" />

            <frameworks root="wo.localroot">
                    <include name="Library/Frameworks/languagefw.framework"/>
                    <include name="Library/Frameworks/uiofw.framework"/>
                    <include name="Library/Frameworks/securityfw.framework"/>
                    <include name="Library/Frameworks/directoryfw.framework"/>
                    <include name="Library/Frameworks/utilityfw.framework"/>
                    <include name="Library/Frameworks/WOUnitTest.framework"/>
            </frameworks>

    If you want, I can email you our build.xml.

    -Kaj :)



    This archive was generated by hypermail 2.0.0 : Fri Sep 27 2002 - 14:05:01 EDT