El lun, 14-08-2006 a las 21:09 +0200, Paloma Gomez escribió:
> Hi all,
> 
> I have a problem with the build process configuration.
> 
> When I run ./build.sh I get:
> 
> [...]
> Building with Apache Ant version 1.6.5 compiled on June 2 2005 and
> Java version 1.5
> 
> [...]
> generics are not supported in -source 1.4 (try -source 1.5 to enable generics)
>     private HashMap <String,Vector<String>> list;
>                     ^
> 1 error
> BUILD FAILED


We need ten lines above from "generics...", that will say which
method/module is using HashMap <String,Vector<String>> 
(alternatively a grep on the source will find the source)

I reckon it is custom code, since I did not found anything in lenya. 

Can't you implement the code 1.4 compatible (I reckon that is quicker to
find, then why it is not compiling in 1.5)?

> /usr/local/lenya-1.4.x/src/targets/webapp-build.xml:163: The following
> error occurred while executing this line:
> /usr/local/lenya-1.4.x/src/targets/modules-build.xml:63: The following
> error occurred while executing this line:
> /usr/local/lenya-1.4.x/build/lenya/temp/modules-build.xml:37: The
> following error occurred while executing this line:
> /usr/local/lenya-1.4.x/build/lenya/temp/modules-build.xml:1818:
> Compile failed; see the compiler error output for details.
> [...]
> 
> At the beginning of the build process it says it's using Java 1.5.
> 
> I have also checked the following:
> 
> [command ]
> [EMAIL PROTECTED]:~$ echo $JAVA_HOME
> /usr/local/SUNWappserver/jdk
> [EMAIL PROTECTED]:~$ which java
> /usr/bin/java
> [EMAIL PROTECTED]:~$ ls -l /usr/bin/java
> lrwxrwxrwx  1 root root 22 2006-02-12 08:04 /usr/bin/java ->
> /etc/alternatives/java
> [EMAIL PROTECTED]:~$ ls -l /etc/alternatives/java
> lrwxrwxrwx  1 root root 37 2006-08-11 11:37 /etc/alternatives/java ->
> /usr/local/SUNWappserver/jdk/bin/java
> [EMAIL PROTECTED]:~$ java -version
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
> [/command]
> 
> I think the java set up is fine.
> 
> After digging into the build files I found that there were three of
> them which had a source option set to 1.4 and changed it to 1.5, but
> it hasn't worked either. Those files are:
> 
> compile-build.xml
> docs-build.xml
> test-build.xml
> 
> I can't figure out why it's still taking the source files as 1.4 compliant.

Did you update cocoon build files as well?

salu2

> 
> My environment:
> * OS: Ubuntu Linux
> * Lenya revision number: 422743
> 
> I haven't updated my local copy lately and I haven't tried updating it
> because I need a working copy and I have read that the trunk is
> currently broken. If my problem is that my local copy needs to be
> updated, I would like to know the number of a working tree.
> 
> Any hints would be appreciated.
> 
> Thanks,
> 
> Paloma
> 
> --
> Paloma Gomez
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to