Mike,
You can do "ant test-1_4". This is the only publicly exposed target
for 1.4 specific build (as it is used in the nightly build to check
sources compatibility).
We can probably create other 1.4-only targets, but I think that would
be redundant. Whenever you build a full distro, do it with JDK 1.5 -
the build script will do the right thing in respect to class version
compatibility.
Andrus
On Mar 7, 2006, at 11:41 PM, Mike Kienenberger wrote:
> 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 : Wed Mar 08 2006 - 03:07:17 EST