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

From: Michael Hast (mhas..esertsky.com)
Date: Tue Jan 27 2009 - 15:59:17 EST

  • Next message: Frank Stock: "Re: last chance for stable"

    Looking though the code for FrameworkSet.java would it be possible to
    add a "dir" attribute to the frameworks element. That attribute would be
    optional and would replace getProject().getBaseDir().

    List<Node> conEntries =
    FileUtil.getClasspathEntriesOfKind(getProject().getBaseDir(), "con");

    ---
    String baseDir = getDir() != null ? getDir() : getProject().getBaseDir();
    List<Node> conEntries = FileUtil.getClasspathEntriesOfKind(baseDir, "con");
    

    Just throwing it out there.

    Michael.

    Chuck Hill wrote: > > 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. >> >

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



    This archive was generated by hypermail 2.0.0 : Tue Jan 27 2009 - 16:00:06 EST