Re: Converting to New Build System in WOLips 3.4.x

From: Chuck Hill (chil..lobal-village.net)
Date: Tue Jan 27 2009 - 13:18:09 EST

  • Next message: Ray Kiddy (JIRA): "[OS-JIRA] Created: (WOL-963) repackage of WOSecurityManager WO 5.4.3 causes Eclipse launch exception"

    On Jan 27, 2009, at 9:57 AM, Michael Hast wrote:

    > Hi:
    >
    > As per Chucks suggestion, I want to convert the following ant code
    > to use the new build system.
    >
    > <target name="generic.project.compile"
    > depends="generic.project.environment,generic.project.prepare">
    > <wocompile srcdir="${project.dir}/${sources.dir}" destdir="$
    > {build.classes}" debug="on" optimize="off" deprecation="on" source="$
    > {compiler.source}" target="${compiler.target}">
    > <classpath>
    > <fileset dir="${project.dir}/Libraries">
    > <include name="**/*.jar" />
    > </fileset>
    > </classpath>
    > <frameworks dir="${wo.frameworks}" includesfile="$
    > {project.deployment.dir}/woframeworklist">
    > </frameworks>
    > <frameworks dir="${project.build.root.dstroot}" includesfile="$
    > {project.dir}/frameworklist">
    > </frameworks>
    > </wocompile>
    > </target>
    >
    > I am using WOPath to replace the frameworks in wocompile as follows:
    >
    > <target name="generic.project.compile" ...>
    > <wopath id="project.classpath">
    > <path>
    > <fileset dir="${project.dir}/Libraries">
    > <include name="**/*.jar" />
    > </fileset>
    > </path>
    >
    > <frameworks root="User" eclipse="true" />
    > <frameworks root="Local" eclipse="true" />
    > <frameworks root="System" eclipse="true" />
    > </wopath>
    >
    > <wocompile ...>
    > <classpath refid="project.classpath" />
    > </wocompile>
    > </target>

    That is exactly how I use it.

    > The build fails at wocompile with the following message:
    >
    > generic.xml:52 (line of wocompile)
    > Failed to process eclipse frameworks.
    >
    > I though wopath looks for frameworks as follows:
    > 1. User -> /Users/mhast/Library/Frameworks
    > 2. Local -> /Library/Frameworks
    > 3. System -> /System/Library/Frameworks
    >
    > All I am trying to do is to build JavaWOExtensions from Wonder using
    > my own build files.

    Like Mike said, run with -verbose or -verbose -debug to find out the
    real reason.

    Chuck

    >
    >
    > Michael.
    > --
    > Tel: (520) 572-9410
    > Desert Sky Software: www.desertsky.com
    > Specializing in the Development and Hosting of
    > e-Business Applications.
    >

    -- 
    Chuck Hill             Senior Consultant / VP Development
    

    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 : Tue Jan 27 2009 - 13:19:13 EST