Re: ant: embeded frameworks not added to the classpath

From: Chuck Hill (chil..lobal-village.net)
Date: Fri Jul 31 2009 - 12:35:37 EDT

  • Next message: Ray Kiddy: "Re: ant: embeded frameworks not added to the classpath"

    On Jul 31, 2009, at 1:19 AM, Susanne Schneider wrote:

    > Hi Chuck,
    >
    > Chuck Hill schrieb:
    >> 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?
    > This is the only class in the Framework:
    ...
    >
    >> What does the classpath.txt file look like?
    >
    > This is the resulting CLSSPATH.TXT content:
    >
    > # JVM == java
    > # JVMOptions ==
    > # JDB == jdb
    > # JDBOptions ==
    > # ApplicationClass == your.app.Application
    >
    > APPROOT\Resources\Java\
    > APPROOT\Resources\Java\testapp.jar
    >
    > APPROOT/Frameworks/JavaEOAccess.framework/Resources/Java/
    > javaeoaccess.jar
    > APPROOT/Frameworks/JavaEOControl.framework/Resources/Java/
    > javaeocontrol.jar
    > APPROOT/Frameworks/JavaFoundation.framework/Resources/Java/
    > javafoundation.jar
    > APPROOT/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/
    > javajdbcadaptor.jar
    > APPROOT/Frameworks/JavaWebObjects.framework/Resources/Java/
    > javawebobjects.jar
    > APPROOT/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
    >
    >
    > The framework was build and installed in C:/Apple/5.4/Local/Library/
    > Frameworks before.
    >
    > The Eclipse project TestApp has set the Framework in the JavaBuild-
    > properties as a required project. The application works fine from
    > within Eclipse.

    Required Projects is not relevant to this. It needs to be added under
    Libraries. The Wiki does have good docs on how to do this:
    http://wiki.objectstyle.org/confluence/display/WOL/Add+a+Framework+Dependency

    Chuck

    -- 
    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 : Fri Jul 31 2009 - 12:36:43 EDT