lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject tiny patch for java7 on os X
Date Wed, 26 Dec 2012 18:00:07 GMT
i installed java7 on my os X... with the following build patch
pylucene seems to work fine (tests pass etc).
I think java7 is just pickier about -source/-target both being set for
jcc. And the extensions should use the same explicit source/target (or
the build can hit classfile version problems).

Index: extensions.xml
===================================================================
--- extensions.xml	(revision 1425975)
+++ extensions.xml	(working copy)
@@ -16,7 +16,7 @@

   <target name="compile">
     <mkdir dir="${classes.dir}"/>
-    <javac srcdir="java" destdir="${classes.dir}" classpathref="classpath" />
+    <javac srcdir="java" destdir="${classes.dir}"
classpathref="classpath" source="1.5" target="1.5" />
   </target>

   <target name="jar" depends="compile">
Index: jcc/setup.py
===================================================================
--- jcc/setup.py	(revision 1425975)
+++ jcc/setup.py	(working copy)
@@ -149,7 +149,7 @@
     LFLAGS['linux2'] = LFLAGS['linux2/%s' %(machine)]

 JAVAC = {
-    'darwin': ['javac', '-target', '1.5'],
+    'darwin': ['javac', '-source', '1.5', '-target', '1.5'],
     'ipod': ['jikes', '-cp', '/usr/share/classpath/glibj.zip'],
     'linux2': ['javac'],
     'sunos5': ['javac'],




http://pastebin.com/raw.php?i=qHpMw9Na

Mime
View raw message