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
/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.

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]

Reply via email to