diff --git a/build.xml b/build.xml
index 6341900e047a8cd4491f9eea0c7f2cc8adeb2b54..7a4a3a53375d6eaaf8accb4388563ea0065c5208 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..."/>