Skip to content
Snippets Groups Projects
Commit 600adcf2 authored by U-BASIS\dsmyda's avatar U-BASIS\dsmyda
Browse files

Gutted maven and migrated the project over to NetBeans/Ant

parent 911accf2
No related branches found
No related tags found
No related merge requests found
Showing
with 1633 additions and 37 deletions
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
!/bindings/java/nbproject/project.properties !/bindings/java/nbproject/project.properties
# CASE-UCO build and release folder # CASE-UCO build and release folder
/case-uco/java/target/ /case-uco/java/build/
/case-uco/java/dist/
/case-uco/java/nbproject/private/
# Windows build folders # Windows build folders
/win32/Debug_NoLibs/ /win32/Debug_NoLibs/
......
<?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" depends="ensure-tsk-env-variable-set">
<property environment="env"/>
<!-- VERSION here is being sourced from the build.xml in DataModel, which
is actively maintained with the current TSK version -->
<copy file="${env.TSK_HOME}/bindings/java/dist/sleuthkit-${VERSION}.jar"
tofile="lib\sleuthkit-${VERSION}.jar"/>
</target>
<!-- Verify that the TSK_HOME env variable is set -->
<target name="ensure-tsk-env-variable-set">
<property environment="env"/>
<condition property="tsk-is-set">
<isset property="env.TSK_HOME"/>
</condition>
<fail unless="tsk-is-set" message="TSK_HOME must be set as an environment variable."/>
<echo> TSK_HOME: ${env.TSK_HOME}</echo>
</target>
<!-- Ivy related boilerplate -->
<property name="ivy.install.version" value="2.3.0-rc2"/>
<condition property="ivy.home" value="${env.IVY_HOME}">
<isset property="env.IVY_HOME"/>
</condition>
<property name="ivy.home" value="${user.home}/.ant"/>
<property name="ivy.jar.dir" value="${ivy.home}/lib"/>
<property name="ivy.jar.file" value="${ivy.jar.dir}/ivy.jar"/>
<target name="download-ivy" unless="offline">
<available file="${ivy.jar.file}" property="ivy.available"/>
<antcall target="-download-ivy"/>
</target>
<target name="-download-ivy" unless="ivy.available">
<mkdir dir="${ivy.jar.dir}"/>
<get src="https://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar" dest="${ivy.jar.file}" usetimestamp="true"/>
</target>
<target name="init-ivy" depends="download-ivy" unless="ivy.lib.path">
<path id="ivy.lib.path">
<fileset dir="${ivy.jar.dir}" includes="*.jar"/>
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>
</target>
<target name="get-ivy-dependencies" description="retrieve jar dependencies using ivy" depends="init-ivy" unless="offline">
<ivy:settings file="ivysettings.xml"/>
<ivy:resolve/>
<ivy:retrieve sync="true" pattern="lib/[artifact]-[revision](-[classifier]).[ext]"/>
</target>
</project>
<ivy-module version="2.0">
<info organisation="org.sleuthkit" module="SleuthkitCaseUco"/>
<dependencies>
<dependency org="com.google.code.gson" name="gson" rev="2.8.5"/>
</dependencies>
</ivy-module>
<ivysettings>
<settings defaultResolver="default"/>
<resolvers>
<chain name="default">
<ibiblio name="central" root="https://repo1.maven.org/maven2" m2compatible="true"/>
<ibiblio name="ibiblio" m2compatible="true"/>
</chain>
</resolvers>
</ivysettings>
Manifest-Version: 1.0
This diff is collapsed.
build.xml.data.CRC32=66643c72
build.xml.script.CRC32=613795df
build.xml.stylesheet.CRC32=8064a381@1.80.1.48
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=66643c72
nbproject/build-impl.xml.script.CRC32=2a59e454
nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.title=SleuthkitCaseUco
application.vendor=
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# Files in build.classes.dir which should be excluded from distribution jar
dist.archive.excludes=
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/sleuthkit-caseuco-1.0.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
file.reference.gson-2.8.5.jar=lib/gson-2.8.5.jar
file.reference.sleuthkit-4.9.0.jar=lib/sleuthkit-4.9.0.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.compress=false
jar.index=${jnlp.enabled}
javac.classpath=\
${file.reference.gson-2.8.5.jar}:\
${file.reference.sleuthkit-4.9.0.jar}
# Space-separated list of extra javac options
javac.compilerargs=-Xlint
javac.deprecation=false
javac.external.vm=true
javac.processorpath=\
${javac.classpath}
javac.source=1.8
javac.target=1.8
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jnlp.codebase.type=no.codebase
jnlp.descriptor=application
jnlp.enabled=false
jnlp.mixed.code=default
jnlp.offline-allowed=false
jnlp.signed=false
jnlp.signing=
jnlp.signing.alias=
jnlp.signing.keystore=
main.class=
# Optional override of default Application-Library-Allowable-Codebase attribute identifying the locations where your signed RIA is expected to be found.
manifest.custom.application.library.allowable.codebase=
# Optional override of default Caller-Allowable-Codebase attribute identifying the domains from which JavaScript code can make calls to your RIA without security prompts.
manifest.custom.caller.allowable.codebase=
# Optional override of default Codebase manifest attribute, use to prevent RIAs from being repurposed
manifest.custom.codebase=
# Optional override of default Permissions manifest attribute (supported values: sandbox, all-permissions)
manifest.custom.permissions=
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project.
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-prop.name=value:
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>SleuthkitCaseUco</name>
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots>
<root id="test.src.dir"/>
</test-roots>
</data>
</configuration>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.sleuthkit</groupId>
<artifactId>sleuthkit-caseuco</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<name>SleuthkitCaseUco</name>
<properties>
<!-- This project depends on the DataModel. Ensure you have built DataModel attempting a build. -->
<sleuthkit.version>4.9.0</sleuthkit.version>
<sleuthkit.path>${env.TSK_HOME}/bindings/java/dist/sleuthkit-${sleuthkit.version}.jar</sleuthkit.path>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>
<dependency>
<groupId>org.sleuthkit</groupId>
<artifactId>sleuthkit-postgresql</artifactId>
<version>${sleuthkit.version}</version>
<scope>system</scope>
<systemPath>${sleuthkit.path}</systemPath>
</dependency>
</dependencies>
</project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment