From 5476a8d882a4d6f1a6494999a7706a87333a2be2 Mon Sep 17 00:00:00 2001
From: Brian Carrier <carrier@sleuthkit.org>
Date: Mon, 12 Feb 2018 12:57:34 -0500
Subject: [PATCH] Change build dependency order

---
 bindings/java/build.xml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/bindings/java/build.xml b/bindings/java/build.xml
index e87636101..34d9538f2 100755
--- a/bindings/java/build.xml
+++ b/bindings/java/build.xml
@@ -74,7 +74,6 @@
 			</fileset>
 			<pathelement path="${build}"/>
 		</path>
-		<echo message="hey"/>
 	</target>
 
 	<target name="set-library-path-offline" description="set the library path when the user is offline" if="offline">
@@ -126,7 +125,7 @@
 		</javac>
 	</target>
 
-	<target name="compile" depends="init, retrieve-deps" description="compile the source">
+	<target name="compile" depends="init, set-library-path, retrieve-deps" description="compile the source">
 		<!-- Compile the java code from ${src} into ${build} -->
 		<javac debug="on" srcdir="${src}" destdir="${build}" classpathref="libraries" includeantruntime="false">
 			<compilerarg value="-Xlint"/>
@@ -142,12 +141,12 @@
 		</javac>
 	</target>
 
-	<target name="dist-SQLite" depends="check-build, init-ivy,set-library-path, compile, copyLibs-SQLite" unless="up-to-date" description="generate the distribution">
+	<target name="dist-SQLite" depends="check-build, init-ivy, compile, copyLibs-SQLite" unless="up-to-date" description="generate the distribution">
 		<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
 		<jar jarfile="${dist}/sleuthkit-${VERSION}.jar" basedir="${build}"/>
 	</target>
 
-	<target name="dist-PostgreSQL" depends="check-build, init-ivy,set-library-path, compile, copyLibs-PostgreSQL" unless="up-to-date" description="generate the PostgreSQL distribution">
+	<target name="dist-PostgreSQL" depends="check-build, init-ivy, compile, copyLibs-PostgreSQL" unless="up-to-date" description="generate the PostgreSQL distribution">
 		<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
 		<jar jarfile="${dist}/sleuthkit-postgresql-${VERSION}.jar" basedir="${build}"/>
 	</target>
-- 
GitLab