File: build.xml

package info (click to toggle)
sleuthkit 4.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,248 kB
  • sloc: ansic: 142,208; cpp: 50,346; java: 27,140; xml: 2,419; perl: 882; python: 508; makefile: 416; sh: 184
file content (32 lines) | stat: -rwxr-xr-x 1,574 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="SleuthkitCaseUco" default="default" basedir="." >
    <description>Builds, tests, and runs the project SleuthkitCaseUco.</description>
    <import file="nbproject/build-impl.xml"/>
    <include file="../../bindings/java/build.xml" as="datamodel"/>
    
    <!-- Hook into the compilation phase of the build process to ensure compile 
         time dependencies are present -->
    <target name="-pre-compile" depends="get-ivy-dependencies, copy-sleuthkit-java-bindings-jar"
            description="Resolves ivy dependencies before compilation">
    </target>    
    
    <!-- Hook into the clean phase of the build process to ensure the lib
         folder is being cleared. -->
    <target name="-post-clean">
        <delete dir="lib" />
    </target>
      
    <!-- Copy the sleuthkit jar into lib -->
    <target name="copy-sleuthkit-java-bindings-jar">
        <!-- VERSION here is being sourced from the build.xml in DataModel, which
             is actively maintained with the current TSK version -->
        <copy file="../../bindings/java/dist/sleuthkit-${VERSION}.jar" 
              tofile="lib\sleuthkit-${VERSION}.jar"/>
    </target>
    
    <target name="get-ivy-dependencies" description="retrieve jar dependencies using ivy" depends="datamodel.init-ivy" unless="offline">
        <ivy:settings file="ivysettings.xml"/>
        <ivy:resolve/>
        <ivy:retrieve sync="true" pattern="lib/[artifact]-[revision](-[classifier]).[ext]"/>
    </target>
</project>