File: build.xml

package info (click to toggle)
sleuthkit 4.11.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,388 kB
  • sloc: ansic: 143,074; cpp: 33,286; java: 32,933; sh: 4,342; xml: 2,197; makefile: 436; python: 270
file content (40 lines) | stat: -rwxr-xr-x 1,900 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
39
40
<?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>

    <target name="test-report" description="Runs the regression tests.">
        <junit fork="on" haltonfailure="yes" dir=".">
            <classpath>
                <path path="${run.test.classpath}"/>
            </classpath>
            <formatter type="plain" usefile="false" />
            <test name="org.sleuthkit.caseuco.TestSuite" />
        </junit>
    </target>
</project>