Skip to content
Snippets Groups Projects
Commit 3e5872e0 authored by Brian Carrier's avatar Brian Carrier
Browse files

Made datamodel ant targets consistent

parent eab82559
No related branches found
No related tags found
No related merge requests found
...@@ -87,9 +87,10 @@ ...@@ -87,9 +87,10 @@
<copy file="${jni.so}" tofile="${i686}/linux/libtsk_jni.so" overwrite="true"/> <copy file="${jni.so}" tofile="${i686}/linux/libtsk_jni.so" overwrite="true"/>
</target> </target>
<target name="copyLibs" depends="copyLinuxLibs,copyMacLibs" /> <target name="copyLibs-SQLite" depends="copyLinuxLibs,copyMacLibs" />
<target name="copyLibs-PostgreSQL" depends="copyLinuxLibs,copyMacLibs" />
<target name="copyLibsDebug" depends="copyLibs" /> <target name="copyLibs-SQLiteDebug" depends="copyLinuxLibs,copyMacLibs" />
<target name="copyLibs-PostgreSQLDebug" depends="copyLinuxLibs,copyMacLibs" />
<target name="copyTSKLibs" depends="copyTskLibs_so,copyTskLibs_dylib"> <target name="copyTSKLibs" depends="copyTskLibs_so,copyTskLibs_dylib">
<!-- depends targets take care of the actual copying since the file differs on OS X and Linux --> <!-- depends targets take care of the actual copying since the file differs on OS X and Linux -->
......
...@@ -40,12 +40,12 @@ ...@@ -40,12 +40,12 @@
targetfile="${amd64}/win/libtsk_jni.dll"/> targetfile="${amd64}/win/libtsk_jni.dll"/>
</target> </target>
<target name="copyLibsSQLite" description="Copy native libs to the correct folder"> <target name="copyLibs-SQLite" description="Copy native libs to the correct folder">
<property name="tsk.config" value="Release"/> <property name="tsk.config" value="Release"/>
<antcall target="copyWinTskLibsToBuildSQLite" /> <antcall target="copyWinTskLibsToBuildSQLite" />
</target> </target>
<target name="copyLibsSQLiteDebug" description="Copy native libs to the correct folder"> <target name="copyLibs-SQLiteDebug" description="Copy native libs to the correct folder">
<property name="tsk.config" value="Debug"/> <property name="tsk.config" value="Debug"/>
<antcall target="copyWinTskLibsToBuildSQLite" /> <antcall target="copyWinTskLibsToBuildSQLite" />
</target> </target>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<antcall target="copyWinTskLibsToBuild-PostgreSQL" /> <antcall target="copyWinTskLibsToBuild-PostgreSQL" />
</target> </target>
<target name="copyLibsDebug-PostgreSQL" description="Copy native libs to the correct folder, PostgreSQL build"> <target name="copyLibs-PostgreSQLDebug" description="Copy native libs to the correct folder, PostgreSQL build">
<property name="tsk.config" value="Debug_PostgreSQL"/> <property name="tsk.config" value="Debug_PostgreSQL"/>
<antcall target="copyWinTskLibsToBuild-PostgreSQL" /> <antcall target="copyWinTskLibsToBuild-PostgreSQL" />
</target> </target>
......
...@@ -126,13 +126,13 @@ ...@@ -126,13 +126,13 @@
</javac> </javac>
</target> </target>
<target name="SQLite" depends="check-build, init-ivy, compile, copyLibsSQLite" <target name="dist-SQLite" depends="check-build, init-ivy, compile, copyLibs-SQLite"
unless="up-to-date" description="generate the distribution" > unless="up-to-date" description="generate the distribution" >
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/Tsk_DataModel.jar" basedir="${build}"/> <jar jarfile="${dist}/Tsk_DataModel.jar" basedir="${build}"/>
</target> </target>
<target name="PostgreSQL" depends="check-build, init-ivy, compile, copyLibs-PostgreSQL" <target name="dist-PostgreSQL" depends="check-build, init-ivy, compile, copyLibs-PostgreSQL"
unless="up-to-date" description="generate the PostgreSQL distribution" > unless="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}/Tsk_DataModel.jar" basedir="${build}"/> <jar jarfile="${dist}/Tsk_DataModel.jar" basedir="${build}"/>
...@@ -151,20 +151,20 @@ ...@@ -151,20 +151,20 @@
</target> </target>
<target name="dist" depends="check-build" unless="up-to-date"> <target name="dist" depends="check-build" unless="up-to-date">
<antcall target="SQLite"/> <antcall target="dist-SQLite"/>
</target> </target>
<target name="Debug" depends="check-build" unless="up-to-date"> <target name="Debug" depends="check-build" unless="up-to-date">
<antcall target="Debug-SQLite"/> <antcall target="Debug-SQLite"/>
</target> </target>
<target name="Debug-SQLite" depends="check-build, init-ivy, compile, copyLibsSQLiteDebug" <target name="Debug-SQLite" depends="check-build, init-ivy, compile, copyLibs-SQLiteDebug"
unless="up-to-date" description="generate the debug distribution" > unless="up-to-date" description="generate the 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}/Tsk_DataModel.jar" basedir="${build}"/> <jar jarfile="${dist}/Tsk_DataModel.jar" basedir="${build}"/>
</target> </target>
<target name="Debug-PostgreSQL" depends="init-ivy, compile, copyLibsDebug-PostgreSQL" <target name="Debug-PostgreSQL" depends="init-ivy, compile, copyLibs-PostgreSQLDebug"
description="generate the PostgreSQL debug distribution" > 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}/Tsk_DataModel.jar" basedir="${build}"/> <jar jarfile="${dist}/Tsk_DataModel.jar" basedir="${build}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment