Re: Where does ant look for stdFrameworks?

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Tue Apr 29 2003 - 09:48:34 EDT

  • Next message: Kaj Hejer: "Re: Where does ant look for stdFrameworks?"

    Hi Kaj,

    the output seems to be little bit incorrect. It has to be under
    $user.home/Library/wobuild.properties. I changed the output to show the
    correct location.

    You can generate the wobuild.properties:
    - Cd into the woproject folder.
    - ant -buildfile build-user-home-wobuild-properties.xml

    To include the wobuild.properties in your build.xml:

            <!-- property determination -->
            <target name="setProps">
                    <property file="build.properties"/>
                    <property
    file="${user.home}${file.separator}Library${file.separator}wobuild.prope
    rties"/>
                    <condition property="wo.properties.check.failed">
                            <not>
                                 <and>
                                           <isset property="wo.wosystemroot"/>
                                           <isset property="wo.wolocalroot"/>
                                 </and>
                         </not>
                       </condition>
                       <fail message="Could not find
    ${user.home}${file.separator}Library${file.separator}wobuild.properties.
    " if="wo.properties.check.failed"/>
                    <property name="install.dir"
    value="${wo.wolocalroot}/Library/Webobjects/Applications"/>
            </target>

    Ulrich

    Am Dienstag, 29.04.03 um 15:26 Uhr schrieb Kaj Hejer:

    > At 14:46 +0200 29-04-2003, Kaj Hejer wrote:
    >> At 14:25 +0200 29-04-2003, Kaj Hejer wrote:
    >>> Hi!
    >>>
    >>> We have a problem with a build.xml file
    >>> (http://folk.uio.no/kajh/tmp/build.xml.txt).
    >>>
    >>> All the classpathfiles (f.x.
    >>> faq.woa/Contents/UNIX/UNIXClassPath.txt) does not contains the
    >>> stdFrameworks like JavaWebObjects.framework.
    >>>
    >>> I suspect this is because ant does not find these frameworks. Where
    >>> does ant look for stdFrameworks?
    >>
    >>
    >> This seems to my my own mistake. I didn't had a wobuild.properties in
    >> my classpath. When I created one as
    >> /Users/kajh/Library/wobuild.properties the classpath files seems to
    >> be ok.
    >
    >
    > Hi!
    >
    >
    > 1)
    >
    > I tried to move the wobuild.properties to my homedirectory.
    >
    >
    > bash-2.05a$ ls ~/wobuild.properties
    > /Users/kajh/wobuild.properties
    >
    >
    > but then I got:
    >
    > eploy_app:
    > [woapplication] Installing faq in /Library/WebObjects/Applications
    > [woapplication] init -> no wobuild.properties in user home found
    > [woapplication] init -> no wobuild.properties in java system
    > properties found
    > [woapplication] init -> no wobuild.properties in environment found
    > [woapplication] init -> no wobuild.properties found
    >
    > BUILD FAILED
    > org.objectstyle.woproject.env.WOBuildPropertiesNotFoundException:
    > Could not find wobuild.properties. Run the buildfile:
    > build-user-home-wobuild-properties.xml first.
    >
    >
    >
    > Ant says: "no wobuild.properties in user home found"
    >
    > Ehhh, but I DO have a wobuild.properties in my homedirectory.
    >
    >
    > I'm using osx 10.2.5, ant 1.5.3 and java 1.4.1.
    >
    >
    >
    >
    > -Kaj :)



    This archive was generated by hypermail 2.0.0 : Tue Apr 29 2003 - 09:48:17 EDT