From c6ee96f8e9c5c5f919d401b76e48919e9d9add90 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr>
Date: Wed, 14 Feb 2007 21:30:50 +0000
Subject: [PATCH] - added compilelint target compiling with all warnings

---
 build.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/build.xml b/build.xml
index 6341900e..7a4a3a53 100644
--- a/build.xml
+++ b/build.xml
@@ -52,7 +52,9 @@
   <!-- tested -->
   <target name="compile" depends="init">
     <echo message="Compiling..."/>
+    <property name="javacargs" value="-deprecation" />
     <javac deprecation="yes" nowarn="no" verbose="no" srcdir="src" destdir="classes">
+      <compilerarg value="${javacargs}"/>
       <classpath refid="classpath"/>
     </javac>
   </target>
@@ -66,6 +68,13 @@
     <antcall target="compile"/>
   </target>
 
+  <!-- tested -->
+  <target name="compilelint" depends="init">
+    <echo message="Setting property..."/>
+    <property name="javacargs" value="-Xlint:all" />
+    <antcall target="compileall"/>
+  </target>
+
   <!-- tested -->
   <target name="jar" depends="compile">
     <echo message="Jarchiving..."/>
-- 
GitLab