Building cayenne-ant

From: Mike Kienenberger (mkienen..mail.com)
Date: Tue Mar 07 2006 - 15:41:21 EST

  • Next message: Mike Kienenberger: "win-path-ref not defined on windows? only mac and linux?"

    I'm attempting to build cayenne, and update the rather sparse wiki docs.

    My primary jdk is E:\W2k\j2sdk_nb\j2sdk1.4.2, and this is the value of
    JAVA_HOME.

    I also have E:\W2k\jdk1.5.0_06 installed.

    How do I build cayenne? I don't seem to be able to find directions
    to just build the 1.4 part.
    And trying to build the 1.5 part fails.

    http://objectstyle.org/confluence/display/CAY/Compiling+Cayenne

    =======error......===================
    E:\workspace311\cayenne-ant>ant
    Buildfile: build.xml

    dist-bin:

    check-deps:

    prepare-deps:

    compile-1_4:
         [copy] Copying 1 file to
    E:\workspace311\cayenne-ant\build\cayenne-1_4\classes

    compile:
        [javac] Compiling 4 source files to
    E:\workspace311\cayenne-ant\build\cayenne-1_5\classes
        [javac] javac: invalid target release: 1.5
        [javac] Usage: javac <options> <source files>
    =======error......===================

    I've tried "ant -Dbuild.compiler=javac1.5" in hopes that it'd
    magically pick it up, but that was a pretty half-hearted attempt.

    I did get it to go by creating a "go.bat" script, but that doesn't
    seem like a recommended approach.

    ----------go.bat-----------------
    set JAVA_HOME=E:\W2k\jdk1.5.0_06
    ant -Dbuild.compiler=javac1.5
    ----------go.bat-----------------



    This archive was generated by hypermail 2.0.0 : Tue Mar 07 2006 - 15:41:23 EST