Re: Do we have to use wobuild.properties?

From: Kaj Hejer (kaj.heje..sit.uio.no)
Date: Sat Aug 16 2003 - 13:43:16 EDT

  • Next message: Kaj Hejer: "Re: Do we have to use wobuild.properties?"

    At 19:45 +0200 28-07-2003, Ulrich Köster wrote:
    >Hi,
    >
    >yet another properties file sounds like a bad idea. The
    >wobuild.properties declare a set of properties useful for all builds
    >with woproject. And it might be better to have one properties file
    >for all user of woproject then maintaining one for each project.
    >Let's take a look at this file:

    Hi!

    I more than agree :) that there is no need for another proerties file!

    When I try to build one of our applications wihout having any
    ~/Library/wobuild.properties file I get a
    WOBuildPropertiesNotFoundException, but the build seems to work ok. I
    guess the build works ok since we defines all the proteries needed in
    our build.xml.

    This is with woproject 1.0.4 on solaris and osx.

    Would it be better just to give some wort of warning if the
    ~/Library/wobuild.properties file is missing instead of throwing a
    WOBuildPropertiesNotFoundException and show the stacktrace?

    This would be usefull for those of us who choose to not use the
    ~/Library/wobuild.properties but instead maintain these properties in
    the build.xml file.

    I'm not sure if this should be a bug report or a feature request, but
    i think it is more polite to file this as a feature request ;-) It
    got #789834.

    I include the output from the build bellow:

    deploy_app:
    [woapplication] Installing nettlogg in
    /site/www/webobjects/5.1/Local/Library/WebObjects/Applications

    BUILD FAILED
    org.objectstyle.woproject.env.WOBuildPropertiesNotFoundException:
    Could not find wobuild.properties. Run the buildfile:
    build-user-home-wobuild-properties.xml first.
             at
    org.objectstyle.woproject.ant.WOApplication.getWOEnvironment(Unknown
    Source)
             at
    org.objectstyle.woproject.ant.WOApplication.standardSet(Unknown
    Source)
             at
    org.objectstyle.woproject.ant.WOApplication.getFrameworkSets(Unknown
    Source)
             at
    org.objectstyle.woproject.ant.WOApplication.hasEmbeddedFrameworks(Unknown
    Source)
             at org.objectstyle.woproject.ant.WOApplication.execute(Unknown Source)
             at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
             at org.apache.tools.ant.Task.perform(Task.java:319)
             at org.apache.tools.ant.Target.execute(Target.java:309)
             at org.apache.tools.ant.Target.performTasks(Target.java:336)
             at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
             at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
             at org.apache.tools.ant.Main.runBuild(Main.java:610)
             at org.apache.tools.ant.Main.start(Main.java:196)
             at org.apache.tools.ant.Main.main(Main.java:235)

    Total time: 15 seconds
    [woapplication] Copying 55 files to
    /site/www/webobjects/5.1/Local/Library/WebObjects/Applications/nettlogg.woa/Contents/Frameworks
    [woapplication] Copied 2 empty directories to
    /site/www/webobjects/5.1/Local/Library/WebObjects/Applications/nettlogg.woa/Contents/Frameworks
    [woapplication]
    /usit/saruman/web-u1/kajh/src/webobjects/nettlogg/null/Library/Frameworks
    not found.
          [copy] Copying 2 files to
    /site/www/webobjects/wohtdocs/WebObjects/nettlogg.woa/Contents/WebServerResources

    app_all:

    deploy_fw:

    fw_all:

    all:

    BUILD SUCCESSFUL
    Total time: 17 seconds

    -Kaj :)



    This archive was generated by hypermail 2.0.0 : Sat Aug 16 2003 - 13:35:23 EDT