Description: Build using Debian libraries
Author: Miguel Landaeta <miguel@miguel.cc>
Forwarded: no
Last-Update: 2011-05-07

diff --git a/build.xml b/build.xml
index fb28188..70447f5 100644
--- a/build.xml
+++ b/build.xml
@@ -6,15 +6,13 @@
 
     <!-- Classpath -->
     <path id="cp">
-        <fileset dir="lib">
-            <include name="**/*.jar"/>
-        </fileset>
+        <fileset dir="/" includesfile="debian/classpath-debian"/>
     </path>
 
     <target name="jflex" unless="lexer.uptodate" description="Generate Lexer class">
         <echo message="Generating HTML lexer using JFlex"/>
         <mkdir dir="build/java"/>
-        <java classpath="lib/jflex.jar" classname="JFlex.Main" fork="yes">
+        <java classpath="/usr/share/java/JFlex.jar" classname="JFlex.Main" fork="yes">
             <arg value="-d"/>
             <arg value="build/java/com/opensymphony/module/sitemesh/html/tokenizer"/>
             <arg value="src/java/com/opensymphony/module/sitemesh/html/tokenizer/lexer.flex"/>
@@ -153,11 +151,13 @@
             <lib dir="dist">
                 <include name="${name}-${version}.jar"/>
             </lib>
+            <!--
             <lib dir="lib">
                 <include name="commons-*.jar"/>
                 <include name="velocity-*.jar"/>
                 <include name="freemarker.jar"/>
                 </lib>
+            -->
             <lib dir="src/etc/tld">
                   <include name="sitemesh*.tld" />
             </lib>
