Hi!
I add a line in javac command source="1.4" in the init_build.xml compile-build.xml samples-build.xml
change the target="1.3" to target="1.4" in init_build.xml
and I build cocoon 2.1.x with java 1.5 twice.
once there will a file blocks-build.xml in build/cocoon-2.1.x/tmp
replace all target="${target.vm}" p with target="${target.vm}" source="1.4" p
and build again,it ok.
I'm wondering where the blocks-build.xml established.
Best Regards
johnson
----- Original Message ----- From: "Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 09, 2004 8:33 PM
Subject: Re: [HOW-TO] Compile Cocoon 2.1.6 using java 1.5
Supplementary info!
Because Java language in 5.0, enum is now a keyword and can no longer be used as an identifier.
So must add a line "source=1.4" below target="1.5".
more info pls see http://java.sun.com/j2se/1.5.0/compatibility.html
Best Regards
Johnson
----- Original Message ----- From: "Antonio Gallardo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 29, 2004 11:06 PM
Subject: [HOW-TO] Compile Cocoon 2.1.6 using java 1.5
Hi:
I read a lot of mails asking if cocoon 2.1.6 is compilable and runnable using java 1.5.
The short answer is yes. Unfortunately, we need to make 2 changes:
Edit the file: $COCOON_HOME/tools/targets/init-build.xml
and changes lines 156 and 182:
target="1.3" ----> target="1.5"
I hope this help.
That is all!
Best Regards,
Antonio Gallardo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]