Re: Building under both WO 5.3 and 5.4 under Leopard

From: Chuck Hill (chil..lobal-village.net)
Date: Fri Mar 21 2008 - 19:37:15 EDT

  • Next message: Chuck Hill: "Re: Building under both WO 5.3 and 5.4 under Leopard"

    Eclipse? Art? Is this really you? :-)

    On Mar 21, 2008, at 4:25 PM, Art Isbell wrote:
    > On Mar 21, 2008, at 1:00 PM, Art Isbell wrote:
    >> Eclipse 3.2.2
    >> WOLips 3.3.4906
    >> OS X 10.5.2
    >> WO 5.3.3
    >> No WOnder
    >
    >> Can I add an ant build to the normal incremental build process so
    >> that <project_name>.framework is always in the project's "dist"
    >> directory? If so, how? Is there a better fix for this problem?
    >
    > I decided to add an ant build to my wo53 and wo54 scripts.

    Careful, you could end up like me!

    > But that fails:
    >
    > BUILD FAILED
    > /Users/art/Developer/Workspace5.3/Employee/build.xml:47: taskdef
    > class org.objectstyle.woproject.ant.WOFramework cannot be found
    >
    > I suspect that the jar containing
    > org.objectstyle.woproject.ant.WOFramework isn't on my non-existent
    > class path. Is this the cause of this problem? If so, which jar(s)
    > needs to be in the class path to be able to successfully complete an
    > ant build from a shell prompt?

    You can find the woproject.jar file and put it in Ant's lib/
    directory. Or you can add something like woproject.path to ~/Library/
    wobuild.properties, define it and then add this to your build file:

             <typedef resource="typedef.properties" classpath="$
    {woproject.path}"/>
             <taskdef file="${cadre.wo.frameworks.path}$
    {file.separator}woproject_tasks.properties" classpath="$
    {woproject.path}"/>

    This really should be in woproject.jar as taskdef.properties (and I am
    not sure why it is not, I have never dug into it), but here are the
    definitions referenced above

    cat ~/Library/woproject_tasks.properties
    woframework=org.objectstyle.woproject.ant.WOFramework
    wocompile=org.objectstyle.woproject.ant.WOCompile
    woapplication=org.objectstyle.woproject.ant.WOApplication

    Chuck

    -- 
    

    Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects



    This archive was generated by hypermail 2.0.0 : Fri Mar 21 2008 - 19:37:59 EDT