Skip to content
Snippets Groups Projects
Commit 45f22abb authored by rishwanth1995's avatar rishwanth1995
Browse files

added postgres-up-to-date property to build script

parent a51f3617
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<jar jarfile="${dist}/sleuthkit-${VERSION}.jar" basedir="${build}"/> <jar jarfile="${dist}/sleuthkit-${VERSION}.jar" basedir="${build}"/>
</target> </target>
<target name="dist-PostgreSQL" depends="check-build, init-ivy, compile, copyLibs-PostgreSQL" description="generate the PostgreSQL distribution"> <target name="dist-PostgreSQL" depends="check-postgresql-build, init-ivy, compile, copyLibs-PostgreSQL" unless="postgres-up-to-date" description="generate the PostgreSQL distribution">
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/sleuthkit-postgresql-${VERSION}.jar" basedir="${build}"/> <jar jarfile="${dist}/sleuthkit-postgresql-${VERSION}.jar" basedir="${build}"/>
</target> </target>
...@@ -162,6 +162,18 @@ ...@@ -162,6 +162,18 @@
</and> </and>
</condition> </condition>
</target> </target>
<target name="check-postgresql-build" depends="check-native-build">
<uptodate property="java-postgres-up-to-date" targetfile="${dist}/sleuthkit-postgresql-${VERSION}.jar">
<srcfiles dir="${src}" includes="**/*.java"/>
</uptodate>
<condition property="postgres-up-to-date">
<and>
<isset property="java-postgres-up-to-date"/>
<isset property="native-up-to-date"/>
</and>
</condition>
</target>
<target name="dist" depends="check-build" unless="up-to-date"> <target name="dist" depends="check-build" unless="up-to-date">
<antcall target="dist-SQLite"/> <antcall target="dist-SQLite"/>
...@@ -176,7 +188,7 @@ ...@@ -176,7 +188,7 @@
<jar jarfile="${dist}/sleuthkit-${VERSION}.jar" basedir="${build}"/> <jar jarfile="${dist}/sleuthkit-${VERSION}.jar" basedir="${build}"/>
</target> </target>
<target name="Debug-PostgreSQL" depends="init-ivy, compile, copyLibs-PostgreSQLDebug" description="generate the PostgreSQL debug distribution"> <target name="Debug-PostgreSQL" depends="check-postgresql-build, init-ivy, compile, copyLibs-PostgreSQLDebug" unless="postgres-up-to-date" description="generate the PostgreSQL debug distribution">
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/sleuthkit-postgresql-${VERSION}.jar" basedir="${build}"/> <jar jarfile="${dist}/sleuthkit-postgresql-${VERSION}.jar" basedir="${build}"/>
</target> </target>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment