I'm running java 1.6 and ant 1.7. I added a java file file to WEB-INF/lps/server/src/org/openlaszlo/compiler/, and then did 'ant build', and it seems to think that everything in that directory gets compiled with '-source 1.4'?
On Mon, Feb 8, 2010 at 7:54 PM, P T Withington <[email protected]> wrote: > The build is only supposed to use 1.4 for buliding the parser, everything > else is supposed to build with whatever the Java is. Are you synced and up > to date with OS X? And using ant 1.7? You should be running Java 1.6 and > that should be the default. > > There is one tricky place in the build file that separates out the 1.4 > sources. That should be the only place with the explicit source setting. > > On Feb 8, 2010, at 19:45, Henry Minsky <[email protected]> wrote: > > I'm trying to add some code in the LPS server which uses "generics" , a > Java 1.5 feature. Is there a way to build the LPS sources > without "-source 1.4" ? > > > compile: > [javac] Compiling 1 source file to > /Users/hqm/openlaszlo/trunk/WEB-INF/lps/server/build > [javac] > /Users/hqm/openlaszlo/trunk/WEB-INF/lps/server/src/org/openlaszlo/compiler/Lzcsh.java:46: > generics are not supported in -source 1.4 > [javac] (use -source 5 or higher to enable generics) > [javac] targets = new HashMap<String, Target>(); > [javac] ^ > [javac] 1 error > > BUILD FAILED > /Users/hqm/openlaszlo/trunk/build.xml:606: The following error occurred > while executing this line: > /Users/hqm/openlaszlo/trunk/WEB-INF/lps/server/build.xml:302: Compile > failed; see the compiler error output for details. > > > -- > Henry Minsky > Software Architect > <[email protected]>[email protected] > > > -- Henry Minsky Software Architect [email protected]
