Re: ant: embeded frameworks not added to the classpath

From: Chuck Hill (chil..lobal-village.net)
Date: Thu Jul 30 2009 - 14:51:19 EDT

  • Next message: Chuck Hill (JIRA): "[OS-JIRA] Created: (WOL-1045) WOBuildPropertiesNotFoundException needs new message"

    On Jul 30, 2009, at 6:44 AM, Susanne Schneider wrote:

    > Hello,
    >
    > after help from the wodev-list I finally get my first test application
    > in 5.4 build with Eclipse (3.5, WOLips 3.4.5872) and ant. Even the
    > usage of different WO versions (5.2 and 5.4) is possible at last by
    > using different wolips.properties files. The application builds and
    > run fine from within Eclipse.
    >
    > Now I have problem with the feature to embed custom frameworks into an
    > application ant build. To test this I have created two projects a
    > WebObjects Application "TestApp" using a WebObjects Framework
    > "TestFramework". The system and my custom frameworks will get
    > transfered to the internal framework directory in the TestApp.woa
    > and the build completes without problems. But starting of the
    > application standalone is not possible as my custom framework
    > "TestFramework" is not listed in the classpath.txt files (the system
    > frameworks are correct referenced).

    Are there any Java classes in it?

    What does the classpath.txt file look like?

    Chuck

    >
    > The woapplication task I used is:
    >
    > <target name="build.woapp" depends="compile">
    > <taskdef name="woapplication"
    > classname="org.objectstyle.woproject.ant.WOApplication"/>
    >
    > <woapplication name="${build.app.name}"
    > frameworksBaseURL="/WebObjects/${build.app.name}.woa/Frameworks"
    > destDir="${dest.dir}" customInfoPListContent="$
    > {customInfoPListContent}"
    > principalClass="${principalClass}" webXML="${webXML}"
    > webXML_CustomContent="${webXML_CustomContent}"
    > servletAdaptor="com.webobjects.jspservlet.WOServletAdaptor">
    > <classes dir="${classes.dir}">
    > <includesfile name="woproject/
    > classes.include.patternset" />
    > <excludesfile name="woproject/
    > classes.exclude.patternset" />
    > <exclude if="javaClient" name="**/client/**/*.*"/>
    > </classes>
    >
    > <wsresources dir=".">
    > <includesfile
    > name="woproject/wsresources.include.patternset" />
    > <excludesfile
    > name="woproject/wsresources.exclude.patternset" />
    > </wsresources>
    > <resources dir=".">
    > <includesfile name="woproject/
    > resources.include.patternset" />
    > <excludesfile name="woproject/
    > resources.exclude.patternset" />
    > <exclude if="javaClient" name="**/client/**/*.*"/>
    > </resources>
    >
    > <frameworks root="ProjectLocal" embed="${embed.ProjectLocal}"
    > eclipse="true" />
    > <frameworks root="External" embed="${embed.External}"
    > eclipse="true" />
    > <frameworks root="Local" embed="${embed.Local}" eclipse="true"
    > bundles="TestFramework"/>
    > <frameworks root="User" embed="${embed.User}" eclipse="true" />
    > <frameworks root="System" embed="${embed.System}"
    > eclipse="true" />
    > <frameworks root="Network" embed="${embed.Network}"
    > eclipse="true" />
    >
    > <lib dir="Libraries">
    > <include name="*.jar" />
    > </lib>
    > </woapplication>
    > </target>
    >
    > with all "embed" properties set to true. I tested an <include> but
    > that makes no difference. What do I do wrong??
    >
    > Regards,
    > Susanne
    > --
    > Susanne Schneider
    > Coordinator secuTrial Development
    >
    > iAS interActive Systems GmbH
    > Dieffenbachstraße 33 c, D-10967 Berlin
    >
    > fon +49(0)30 22 50 50 - 498
    > fax +49(0)30 22 50 50 - 451
    > mail susanne.schneide..nterActive-Systems.de
    > web http://www.interActive-Systems.de
    >
    > ----------------------------------------------------
    > Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche
    > Sitz der Gesellschaft: Berlin
    > Amtsgericht Berlin Charlottenburg, HRB 106103B
    > ----------------------------------------------------
    >
    >
    >

    -- 
    Chuck Hill             Senior Consultant / VP Development
    

    Learn WO at WOWODC'09 East in Montréal this August! http://www.wocommunity.org/wowodc09/east

    http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars



    This archive was generated by hypermail 2.0.0 : Thu Jul 30 2009 - 14:52:24 EDT