thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanghyeon Seo" <sanx...@gmail.com>
Subject build.xml fix
Date Mon, 04 Aug 2008 08:20:23 GMT
Hi, I tried to build, test, and install Thrift from SVN, and I got
compile errors from javac. Specifically, generics are used but the
source language version is unspecified.

Apache Ant Manual recommends that "Note that the default value (of
source attribute) depends on the JVM that is running Ant. We highly
recommend to always specify this attribute".
http://ant.apache.org/manual/CoreTasks/javac.html

$ javac -version
Eclipse Java Compiler v_774_R33x, 3.3.1, Copyright IBM Corp 2000,
2007. All rights reserved.

A fix follows.

Index: lib/java/build.xml
===================================================================
--- lib/java/build.xml	(revision 682285)
+++ lib/java/build.xml	(working copy)
@@ -12,7 +12,7 @@
   </target>

   <target name="compile" depends="init">
-    <javac srcdir="${src}" destdir="${build}" />
+    <javac srcdir="${src}" destdir="${build}" source="1.5" />
   </target>

   <target name="dist" depends="compile">

-- 
Seo Sanghyeon

Mime
View raw message