diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..1244e4d --- /dev/null +++ b/build.sh @@ -0,0 +1,46 @@ +#!/bin/bash +set -euo pipefail + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +cd $SCRIPT_DIR + +unset CXXFLAGS +unset CFLAGS +unset CXX +export LEVELDB_HOME=`cd deps/leveldb;pwd` +export SNAPPY_HOME=`cd deps/snappy;pwd` +export LEVELDBJNI_HOME="${SCRIPT_DIR}" + +echo +echo +echo "**************************" +echo "*** Building LevelDB ***" +echo "**************************" +cd "${LEVELDB_HOME}" +mkdir -p build && cd build +cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build . +cp ${LEVELDB_HOME}/build/libleveldb.a ${LEVELDB_HOME} +#TODO Fail if libleveldb.a is not found + +echo +echo +echo "*************************" +echo "*** Building Snappy ***" +echo "******I******************" +cd "${SNAPPY_HOME}" +mkdir -p build +cd build && cmake ../ && make +cp ${SNAPPY_HOME}/build/libsnappy.a ${SNAPPY_HOME} +#TODO Fail if libsnappy.a is not found + +echo +echo +echo "***************************" +echo "*** Building LevelDBJNI ***" +echo "***************************" +cd "${LEVELDBJNI_HOME}" +rm -rf leveldbjni-osx/target +export CXXFLAGS="-std=c++11" +export OSX_VERSION="11.3" +export OSX_SDKS_DIR="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs" +mvn clean install -DskipTests -P download -P osx diff --git a/changelog.md b/changelog.md old mode 100644 new mode 100755 diff --git a/deps/leveldb/build/cmake/leveldb/leveldbConfig.cmake b/deps/leveldb/build/cmake/leveldb/leveldbConfig.cmake new file mode 100755 index 0000000..a034401 --- /dev/null +++ b/deps/leveldb/build/cmake/leveldb/leveldbConfig.cmake @@ -0,0 +1,33 @@ +# Copyright 2019 The LevelDB Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. See the AUTHORS file for names of contributors. + + +####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### +####### Any changes to this file will be overwritten by the next CMake run #### +####### The input file was leveldbConfig.cmake.in ######## + +get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) + +macro(set_and_check _var _file) + set(${_var} "${_file}") + if(NOT EXISTS "${_file}") + message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") + endif() +endmacro() + +macro(check_required_components _NAME) + foreach(comp ${${_NAME}_FIND_COMPONENTS}) + if(NOT ${_NAME}_${comp}_FOUND) + if(${_NAME}_FIND_REQUIRED_${comp}) + set(${_NAME}_FOUND FALSE) + endif() + endif() + endforeach() +endmacro() + +#################################################################################### + +include("${CMAKE_CURRENT_LIST_DIR}/leveldbTargets.cmake") + +check_required_components(leveldb) diff --git a/deps/leveldb/build/cmake/leveldb/leveldbConfigVersion.cmake b/deps/leveldb/build/cmake/leveldb/leveldbConfigVersion.cmake new file mode 100755 index 0000000..bb52f90 --- /dev/null +++ b/deps/leveldb/build/cmake/leveldb/leveldbConfigVersion.cmake @@ -0,0 +1,67 @@ +# This is a basic version file for the Config-mode of find_package(). +# It is used by write_basic_package_version_file() as input file for configure_file() +# to create a version-file which can be installed along a config.cmake file. +# +# The created file sets PACKAGE_VERSION_EXACT if the current version string and +# the requested version string are exactly the same and it sets +# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version, +# but only if the requested major version is the same as the current one. +# The variable CVF_VERSION must be set before calling configure_file(). + + +set(PACKAGE_VERSION "1.23.0") + +if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + + if("1.23.0" MATCHES "^([0-9]+)\\.") + set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}") + else() + set(CVF_VERSION_MAJOR "1.23.0") + endif() + + if(PACKAGE_FIND_VERSION_RANGE) + # both endpoints of the range must have the expected major version + math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1") + if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR + OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR) + OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT))) + set(PACKAGE_VERSION_COMPATIBLE FALSE) + elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR + AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX) + OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX))) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + else() + set(PACKAGE_VERSION_COMPATIBLE FALSE) + endif() + else() + if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + else() + set(PACKAGE_VERSION_COMPATIBLE FALSE) + endif() + + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() + endif() +endif() + + +# if the installed project requested no architecture check, don't perform the check +if("FALSE") + return() +endif() + +# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: +if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") + return() +endif() + +# check that the installed version has the same 32/64bit-ness as the one which is currently searching: +if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") + math(EXPR installedBits "8 * 8") + set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") + set(PACKAGE_VERSION_UNSUITABLE TRUE) +endif() diff --git a/deps/leveldb/build/cmake/leveldb/leveldbTargets-release.cmake b/deps/leveldb/build/cmake/leveldb/leveldbTargets-release.cmake new file mode 100755 index 0000000..3c40bfc --- /dev/null +++ b/deps/leveldb/build/cmake/leveldb/leveldbTargets-release.cmake @@ -0,0 +1,19 @@ +#---------------------------------------------------------------- +# Generated CMake target import file for configuration "Release". +#---------------------------------------------------------------- + +# Commands may need to know the format version. +set(CMAKE_IMPORT_FILE_VERSION 1) + +# Import target "leveldb::leveldb" for configuration "Release" +set_property(TARGET leveldb::leveldb APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) +set_target_properties(leveldb::leveldb PROPERTIES + IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libleveldb.1.23.0.dylib" + IMPORTED_SONAME_RELEASE "@rpath/libleveldb.1.dylib" + ) + +list(APPEND _IMPORT_CHECK_TARGETS leveldb::leveldb ) +list(APPEND _IMPORT_CHECK_FILES_FOR_leveldb::leveldb "${_IMPORT_PREFIX}/lib/libleveldb.1.23.0.dylib" ) + +# Commands beyond this point should not need to know the version. +set(CMAKE_IMPORT_FILE_VERSION) diff --git a/deps/leveldb/build/cmake/leveldb/leveldbTargets.cmake b/deps/leveldb/build/cmake/leveldb/leveldbTargets.cmake new file mode 100755 index 0000000..c14d685 --- /dev/null +++ b/deps/leveldb/build/cmake/leveldb/leveldbTargets.cmake @@ -0,0 +1,101 @@ +# Generated by CMake + +if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5) + message(FATAL_ERROR "CMake >= 2.6.0 required") +endif() +cmake_policy(PUSH) +cmake_policy(VERSION 2.6...3.18) +#---------------------------------------------------------------- +# Generated CMake target import file. +#---------------------------------------------------------------- + +# Commands may need to know the format version. +set(CMAKE_IMPORT_FILE_VERSION 1) + +# Protect against multiple inclusion, which would fail when already imported targets are added once more. +set(_targetsDefined) +set(_targetsNotDefined) +set(_expectedTargets) +foreach(_expectedTarget leveldb::leveldb) + list(APPEND _expectedTargets ${_expectedTarget}) + if(NOT TARGET ${_expectedTarget}) + list(APPEND _targetsNotDefined ${_expectedTarget}) + endif() + if(TARGET ${_expectedTarget}) + list(APPEND _targetsDefined ${_expectedTarget}) + endif() +endforeach() +if("${_targetsDefined}" STREQUAL "${_expectedTargets}") + unset(_targetsDefined) + unset(_targetsNotDefined) + unset(_expectedTargets) + set(CMAKE_IMPORT_FILE_VERSION) + cmake_policy(POP) + return() +endif() +if(NOT "${_targetsDefined}" STREQUAL "") + message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n") +endif() +unset(_targetsDefined) +unset(_targetsNotDefined) +unset(_expectedTargets) + + +# Compute the installation prefix relative to this file. +get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +if(_IMPORT_PREFIX STREQUAL "/") + set(_IMPORT_PREFIX "") +endif() + +# Create imported target leveldb::leveldb +add_library(leveldb::leveldb SHARED IMPORTED) + +set_target_properties(leveldb::leveldb PROPERTIES + INTERFACE_COMPILE_DEFINITIONS "LEVELDB_SHARED_LIBRARY" + INTERFACE_COMPILE_OPTIONS "-Werror;-Wthread-safety" + INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" + INTERFACE_LINK_LIBRARIES "snappy;tcmalloc;Threads::Threads" +) + +if(CMAKE_VERSION VERSION_LESS 2.8.12) + message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.") +endif() + +# Load information for each installed configuration. +get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +file(GLOB CONFIG_FILES "${_DIR}/leveldbTargets-*.cmake") +foreach(f ${CONFIG_FILES}) + include(${f}) +endforeach() + +# Cleanup temporary variables. +set(_IMPORT_PREFIX) + +# Loop over all imported files and verify that they actually exist +foreach(target ${_IMPORT_CHECK_TARGETS} ) + foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} ) + if(NOT EXISTS "${file}" ) + message(FATAL_ERROR "The imported target \"${target}\" references the file + \"${file}\" +but this file does not exist. Possible reasons include: +* The file was deleted, renamed, or moved to another location. +* An install or uninstall procedure did not complete successfully. +* The installation package was faulty and contained + \"${CMAKE_CURRENT_LIST_FILE}\" +but not all the files it references. +") + endif() + endforeach() + unset(_IMPORT_CHECK_FILES_FOR_${target}) +endforeach() +unset(_IMPORT_CHECK_TARGETS) + +# This file does not depend on other imported targets which have +# been exported from the same project but in a separate export set. + +# Commands beyond this point should not need to know the version. +set(CMAKE_IMPORT_FILE_VERSION) +cmake_policy(POP) diff --git a/deps/leveldb/build/libleveldb.1.23.0.dylib b/deps/leveldb/build/libleveldb.1.23.0.dylib new file mode 100755 index 0000000..26ee9ba Binary files /dev/null and b/deps/leveldb/build/libleveldb.1.23.0.dylib differ diff --git a/deps/leveldb/build/libleveldb.1.dylib b/deps/leveldb/build/libleveldb.1.dylib new file mode 100755 index 0000000..26ee9ba Binary files /dev/null and b/deps/leveldb/build/libleveldb.1.dylib differ diff --git a/deps/leveldb/build/libleveldb.a b/deps/leveldb/build/libleveldb.a new file mode 100755 index 0000000..27233de Binary files /dev/null and b/deps/leveldb/build/libleveldb.a differ diff --git a/deps/leveldb/build/libleveldb.dylib b/deps/leveldb/build/libleveldb.dylib new file mode 100755 index 0000000..26ee9ba Binary files /dev/null and b/deps/leveldb/build/libleveldb.dylib differ diff --git a/deps/leveldb/libleveldb.a b/deps/leveldb/libleveldb.a new file mode 100755 index 0000000..27233de Binary files /dev/null and b/deps/leveldb/libleveldb.a differ diff --git a/deps/snappy/build/cmake/Snappy/SnappyConfig.cmake b/deps/snappy/build/cmake/Snappy/SnappyConfig.cmake new file mode 100755 index 0000000..665c0a5 --- /dev/null +++ b/deps/snappy/build/cmake/Snappy/SnappyConfig.cmake @@ -0,0 +1,57 @@ +# Copyright 2019 Google Inc. All Rights Reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following disclaimer +# in the documentation and/or other materials provided with the +# distribution. +# * Neither the name of Google Inc. nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### +####### Any changes to this file will be overwritten by the next CMake run #### +####### The input file was SnappyConfig.cmake.in ######## + +get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) + +macro(set_and_check _var _file) + set(${_var} "${_file}") + if(NOT EXISTS "${_file}") + message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") + endif() +endmacro() + +macro(check_required_components _NAME) + foreach(comp ${${_NAME}_FIND_COMPONENTS}) + if(NOT ${_NAME}_${comp}_FOUND) + if(${_NAME}_FIND_REQUIRED_${comp}) + set(${_NAME}_FOUND FALSE) + endif() + endif() + endforeach() +endmacro() + +#################################################################################### + +include("${CMAKE_CURRENT_LIST_DIR}/SnappyTargets.cmake") + +check_required_components(Snappy) diff --git a/deps/snappy/build/cmake/Snappy/SnappyConfigVersion.cmake b/deps/snappy/build/cmake/Snappy/SnappyConfigVersion.cmake new file mode 100755 index 0000000..2aab0b1 --- /dev/null +++ b/deps/snappy/build/cmake/Snappy/SnappyConfigVersion.cmake @@ -0,0 +1,67 @@ +# This is a basic version file for the Config-mode of find_package(). +# It is used by write_basic_package_version_file() as input file for configure_file() +# to create a version-file which can be installed along a config.cmake file. +# +# The created file sets PACKAGE_VERSION_EXACT if the current version string and +# the requested version string are exactly the same and it sets +# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version, +# but only if the requested major version is the same as the current one. +# The variable CVF_VERSION must be set before calling configure_file(). + + +set(PACKAGE_VERSION "1.1.9") + +if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + + if("1.1.9" MATCHES "^([0-9]+)\\.") + set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}") + else() + set(CVF_VERSION_MAJOR "1.1.9") + endif() + + if(PACKAGE_FIND_VERSION_RANGE) + # both endpoints of the range must have the expected major version + math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1") + if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR + OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR) + OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT))) + set(PACKAGE_VERSION_COMPATIBLE FALSE) + elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR + AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX) + OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX))) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + else() + set(PACKAGE_VERSION_COMPATIBLE FALSE) + endif() + else() + if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + else() + set(PACKAGE_VERSION_COMPATIBLE FALSE) + endif() + + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() + endif() +endif() + + +# if the installed project requested no architecture check, don't perform the check +if("FALSE") + return() +endif() + +# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: +if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") + return() +endif() + +# check that the installed version has the same 32/64bit-ness as the one which is currently searching: +if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") + math(EXPR installedBits "8 * 8") + set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") + set(PACKAGE_VERSION_UNSUITABLE TRUE) +endif() diff --git a/deps/snappy/build/cmake/Snappy/SnappyTargets-release.cmake b/deps/snappy/build/cmake/Snappy/SnappyTargets-release.cmake new file mode 100755 index 0000000..5ab6c4e --- /dev/null +++ b/deps/snappy/build/cmake/Snappy/SnappyTargets-release.cmake @@ -0,0 +1,19 @@ +#---------------------------------------------------------------- +# Generated CMake target import file for configuration "Release". +#---------------------------------------------------------------- + +# Commands may need to know the format version. +set(CMAKE_IMPORT_FILE_VERSION 1) + +# Import target "Snappy::snappy" for configuration "Release" +set_property(TARGET Snappy::snappy APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) +set_target_properties(Snappy::snappy PROPERTIES + IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libsnappy.1.1.9.dylib" + IMPORTED_SONAME_RELEASE "@rpath/libsnappy.1.dylib" + ) + +list(APPEND _IMPORT_CHECK_TARGETS Snappy::snappy ) +list(APPEND _IMPORT_CHECK_FILES_FOR_Snappy::snappy "${_IMPORT_PREFIX}/lib/libsnappy.1.1.9.dylib" ) + +# Commands beyond this point should not need to know the version. +set(CMAKE_IMPORT_FILE_VERSION) diff --git a/deps/snappy/build/cmake/Snappy/SnappyTargets.cmake b/deps/snappy/build/cmake/Snappy/SnappyTargets.cmake new file mode 100755 index 0000000..b67156f --- /dev/null +++ b/deps/snappy/build/cmake/Snappy/SnappyTargets.cmake @@ -0,0 +1,94 @@ +# Generated by CMake + +if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5) + message(FATAL_ERROR "CMake >= 2.6.0 required") +endif() +cmake_policy(PUSH) +cmake_policy(VERSION 2.6...3.18) +#---------------------------------------------------------------- +# Generated CMake target import file. +#---------------------------------------------------------------- + +# Commands may need to know the format version. +set(CMAKE_IMPORT_FILE_VERSION 1) + +# Protect against multiple inclusion, which would fail when already imported targets are added once more. +set(_targetsDefined) +set(_targetsNotDefined) +set(_expectedTargets) +foreach(_expectedTarget Snappy::snappy) + list(APPEND _expectedTargets ${_expectedTarget}) + if(NOT TARGET ${_expectedTarget}) + list(APPEND _targetsNotDefined ${_expectedTarget}) + endif() + if(TARGET ${_expectedTarget}) + list(APPEND _targetsDefined ${_expectedTarget}) + endif() +endforeach() +if("${_targetsDefined}" STREQUAL "${_expectedTargets}") + unset(_targetsDefined) + unset(_targetsNotDefined) + unset(_expectedTargets) + set(CMAKE_IMPORT_FILE_VERSION) + cmake_policy(POP) + return() +endif() +if(NOT "${_targetsDefined}" STREQUAL "") + message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n") +endif() +unset(_targetsDefined) +unset(_targetsNotDefined) +unset(_expectedTargets) + + +# Compute the installation prefix relative to this file. +get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +if(_IMPORT_PREFIX STREQUAL "/") + set(_IMPORT_PREFIX "") +endif() + +# Create imported target Snappy::snappy +add_library(Snappy::snappy STATIC IMPORTED) + +set_target_properties(Snappy::snappy PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" +) + +# Load information for each installed configuration. +get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +file(GLOB CONFIG_FILES "${_DIR}/SnappyTargets-*.cmake") +foreach(f ${CONFIG_FILES}) + include(${f}) +endforeach() + +# Cleanup temporary variables. +set(_IMPORT_PREFIX) + +# Loop over all imported files and verify that they actually exist +foreach(target ${_IMPORT_CHECK_TARGETS} ) + foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} ) + if(NOT EXISTS "${file}" ) + message(FATAL_ERROR "The imported target \"${target}\" references the file + \"${file}\" +but this file does not exist. Possible reasons include: +* The file was deleted, renamed, or moved to another location. +* An install or uninstall procedure did not complete successfully. +* The installation package was faulty and contained + \"${CMAKE_CURRENT_LIST_FILE}\" +but not all the files it references. +") + endif() + endforeach() + unset(_IMPORT_CHECK_FILES_FOR_${target}) +endforeach() +unset(_IMPORT_CHECK_TARGETS) + +# This file does not depend on other imported targets which have +# been exported from the same project but in a separate export set. + +# Commands beyond this point should not need to know the version. +set(CMAKE_IMPORT_FILE_VERSION) +cmake_policy(POP) diff --git a/deps/snappy/build/libsnappy.1.1.9.dylib b/deps/snappy/build/libsnappy.1.1.9.dylib new file mode 100755 index 0000000..36fe5c2 Binary files /dev/null and b/deps/snappy/build/libsnappy.1.1.9.dylib differ diff --git a/deps/snappy/build/libsnappy.1.dylib b/deps/snappy/build/libsnappy.1.dylib new file mode 100755 index 0000000..36fe5c2 Binary files /dev/null and b/deps/snappy/build/libsnappy.1.dylib differ diff --git a/deps/snappy/build/libsnappy.a b/deps/snappy/build/libsnappy.a new file mode 100755 index 0000000..26656b6 Binary files /dev/null and b/deps/snappy/build/libsnappy.a differ diff --git a/deps/snappy/build/libsnappy.dylib b/deps/snappy/build/libsnappy.dylib new file mode 100755 index 0000000..36fe5c2 Binary files /dev/null and b/deps/snappy/build/libsnappy.dylib differ diff --git a/deps/snappy/libsnappy.a b/deps/snappy/libsnappy.a new file mode 100755 index 0000000..26656b6 Binary files /dev/null and b/deps/snappy/libsnappy.a differ diff --git a/leveldb.patch b/leveldb.patch old mode 100644 new mode 100755 diff --git a/leveldbjni-all/src/main/descriptors/uber-sources.xml b/leveldbjni-all/src/main/descriptors/uber-sources.xml old mode 100644 new mode 100755 diff --git a/leveldbjni-all/src/main/java/org/fusesource/leveldbjni/All.java b/leveldbjni-all/src/main/java/org/fusesource/leveldbjni/All.java old mode 100644 new mode 100755 diff --git a/leveldbjni-freebsd64/pom.xml b/leveldbjni-freebsd64/pom.xml index 2314717..712f719 100755 --- a/leveldbjni-freebsd64/pom.xml +++ b/leveldbjni-freebsd64/pom.xml @@ -68,7 +68,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin ${hawtjni-version} diff --git a/leveldbjni-linux32/pom.xml b/leveldbjni-linux32/pom.xml index 366cf69..7418b9b 100755 --- a/leveldbjni-linux32/pom.xml +++ b/leveldbjni-linux32/pom.xml @@ -68,7 +68,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin ${hawtjni-version} diff --git a/leveldbjni-linux64-aarch64/pom.xml b/leveldbjni-linux64-aarch64/pom.xml old mode 100644 new mode 100755 index 5463447..38fb146 --- a/leveldbjni-linux64-aarch64/pom.xml +++ b/leveldbjni-linux64-aarch64/pom.xml @@ -64,7 +64,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin ${hawtjni-version} diff --git a/leveldbjni-linux64-ppc64le/pom.xml b/leveldbjni-linux64-ppc64le/pom.xml old mode 100644 new mode 100755 index e382ac4..a75c5da --- a/leveldbjni-linux64-ppc64le/pom.xml +++ b/leveldbjni-linux64-ppc64le/pom.xml @@ -64,7 +64,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin ${hawtjni-version} diff --git a/leveldbjni-linux64/pom.xml b/leveldbjni-linux64/pom.xml index e63d6f8..d1a4f2b 100755 --- a/leveldbjni-linux64/pom.xml +++ b/leveldbjni-linux64/pom.xml @@ -68,7 +68,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin ${hawtjni-version} diff --git a/leveldbjni-osx/pom.xml b/leveldbjni-osx/pom.xml index cf31b8b..6322202 100755 --- a/leveldbjni-osx/pom.xml +++ b/leveldbjni-osx/pom.xml @@ -34,13 +34,13 @@ 4.0.0 - org.fusesource.leveldbjni - leveldbjni-project + com.ltonetwork + leveldbjni.leveldbjni-project 99-master-SNAPSHOT - org.fusesource.leveldbjni - leveldbjni-osx + com.ltonetwork + leveldbjni.leveldbjni-osx 99-master-SNAPSHOT ${project.artifactId} @@ -48,18 +48,24 @@ - org.fusesource.leveldbjni - leveldbjni + com.ltonetwork + leveldbjni.leveldbjni 99-master-SNAPSHOT - org.fusesource.leveldbjni - leveldbjni + com.ltonetwork + leveldbjni.leveldbjni 99-master-SNAPSHOT test-jar test + + + org.fusesource.hawtjni + hawtjni-maven-plugin + ${hawtjni-version} + @@ -74,36 +80,37 @@ ${basedir}/target/generated-sources/hawtjni/lib - - - org.fusesource.hawtjni - maven-hawtjni-plugin - ${hawtjni-version} - - - - build - - - - - leveldbjni - false - - org.fusesource.leveldbjni - leveldbjni - ${project.version} - native-src - zip - - osx - - --with-leveldb=${env.LEVELDB_HOME} - --with-snappy=${env.SNAPPY_HOME} - --with-universal - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/leveldbjni-sunos64-amd64/pom.xml b/leveldbjni-sunos64-amd64/pom.xml index 70dc92f..831e43a 100755 --- a/leveldbjni-sunos64-amd64/pom.xml +++ b/leveldbjni-sunos64-amd64/pom.xml @@ -68,7 +68,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin ${hawtjni-version} diff --git a/leveldbjni-sunos64-sparcv9/pom.xml b/leveldbjni-sunos64-sparcv9/pom.xml index d34da40..1e0a6c9 100755 --- a/leveldbjni-sunos64-sparcv9/pom.xml +++ b/leveldbjni-sunos64-sparcv9/pom.xml @@ -68,7 +68,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin ${hawtjni-version} diff --git a/leveldbjni-win32/pom.xml b/leveldbjni-win32/pom.xml index 1defb46..5f80e31 100755 --- a/leveldbjni-win32/pom.xml +++ b/leveldbjni-win32/pom.xml @@ -68,7 +68,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin ${hawtjni-version} diff --git a/leveldbjni-win64/pom.xml b/leveldbjni-win64/pom.xml index 7f3aa6b..7a2979a 100755 --- a/leveldbjni-win64/pom.xml +++ b/leveldbjni-win64/pom.xml @@ -68,7 +68,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin ${hawtjni-version} diff --git a/leveldbjni/pom.xml b/leveldbjni/pom.xml index fed2c13..7f991a0 100755 --- a/leveldbjni/pom.xml +++ b/leveldbjni/pom.xml @@ -34,13 +34,13 @@ 4.0.0 - org.fusesource.leveldbjni - leveldbjni-project + com.ltonetwork + leveldbjni.leveldbjni-project 99-master-SNAPSHOT - org.fusesource.leveldbjni - leveldbjni + com.ltonetwork + leveldbjni.leveldbjni 99-master-SNAPSHOT jar @@ -90,7 +90,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin ${hawtjni-version} @@ -141,8 +141,8 @@ org.apache.maven.plugins maven-compiler-plugin - 1.5 - 1.5 + 1.7 + 1.7 @@ -201,7 +201,7 @@ org.fusesource.hawtjni - maven-hawtjni-plugin + hawtjni-maven-plugin [1.11,) generate diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/JniDBFactory.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/JniDBFactory.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/JniDB.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/JniDB.java old mode 100644 new mode 100755 index d912d02..4b57ffa --- a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/JniDB.java +++ b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/JniDB.java @@ -179,6 +179,14 @@ public String getProperty(String name) { return db.getProperty(name); } + public void suspendCompactions() throws InterruptedException { + throw new UnsupportedOperationException("Not implemented"); + } + + public void resumeCompactions() { + throw new UnsupportedOperationException("Not implemented"); + } + private NativeReadOptions convert(ReadOptions options) { if(options==null) { return null; @@ -210,68 +218,4 @@ public void compactRange(byte[] begin, byte[] end) throws DBException { } db.compactRange(begin, end); } - -// -// Using a fork of leveldb with db Suspend / Resume methods to avoid -// having to callback into java. -// - public void suspendCompactions() throws InterruptedException { - if( db==null ) { - throw new DBException("Closed"); - } - db.suspendCompactions(); - } - public void resumeCompactions() { - if( db==null ) { - throw new DBException("Closed"); - } - db.resumeCompactions(); - } - -// private static class Suspension { -// static long env = Util.EnvJNI.Default(); -// -// CountDownLatch suspended = new CountDownLatch(1); -// CountDownLatch resumed = new CountDownLatch(1); -// Callback callback = new Callback(this, "suspended", 1); -// -// public Suspension() { -// Util.EnvJNI.Schedule(env, callback.getAddress(), 0); -// } -// -// private long suspended(long arg) { -// suspended.countDown(); -// try { -// resumed.await(); -// } catch (InterruptedException e) { -// } finally { -// callback.dispose(); -// } -// return 0; -// } -// } -// -// int suspendCounter = 0; -// Suspension suspension = null; -// -// public void suspendCompactions() throws InterruptedException { -// Suspension s = null; -// synchronized (this) { -// suspendCounter++; -// if( suspendCounter==1 ) { -// suspension = new Suspension(); -// } -// s = suspension; -// } -// // Don't return until the compactions have suspended. -// s.suspended.await(); -// } -// -// synchronized public void resumeCompactions() { -// suspendCounter--; -// if( suspendCounter==0 ) { -// suspension.resumed.countDown(); -// suspension = null; -// } -// } } diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/JniDBIterator.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/JniDBIterator.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/JniSnapshot.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/JniSnapshot.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/JniWriteBatch.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/JniWriteBatch.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeBuffer.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeBuffer.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeCache.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeCache.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeComparator.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeComparator.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeCompressionType.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeCompressionType.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeDB.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeDB.java old mode 100644 new mode 100755 index df10c44..1e09b6d --- a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeDB.java +++ b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeDB.java @@ -31,17 +31,22 @@ */ package org.fusesource.leveldbjni.internal; -import org.fusesource.hawtjni.runtime.JniArg; -import org.fusesource.hawtjni.runtime.JniClass; -import org.fusesource.hawtjni.runtime.JniMethod; -import org.fusesource.hawtjni.runtime.Library; +import static org.fusesource.hawtjni.runtime.ArgFlag.BY_VALUE; +import static org.fusesource.hawtjni.runtime.ArgFlag.NO_OUT; +import static org.fusesource.hawtjni.runtime.ArgFlag.POINTER_ARG; +import static org.fusesource.hawtjni.runtime.ClassFlag.CPP; +import static org.fusesource.hawtjni.runtime.MethodFlag.CPP_DELETE; +import static org.fusesource.hawtjni.runtime.MethodFlag.CPP_METHOD; +import static org.fusesource.hawtjni.runtime.MethodFlag.JNI; +import static org.fusesource.hawtjni.runtime.MethodFlag.POINTER_RETURN; import java.io.File; import java.io.IOException; -import static org.fusesource.hawtjni.runtime.ArgFlag.*; -import static org.fusesource.hawtjni.runtime.ClassFlag.CPP; -import static org.fusesource.hawtjni.runtime.MethodFlag.*; +import org.fusesource.hawtjni.runtime.JniArg; +import org.fusesource.hawtjni.runtime.JniClass; +import org.fusesource.hawtjni.runtime.JniMethod; +import org.fusesource.hawtjni.runtime.Library; /** * The DB object provides the main interface to acessing LevelDB @@ -162,12 +167,6 @@ static final native void CompactRange( @JniArg(flags={NO_OUT}) NativeSlice begin, @JniArg(flags={NO_OUT}) NativeSlice end ); - - @JniMethod(flags={CPP_METHOD}) - static final native void SuspendCompactions(long self); - - @JniMethod(flags={CPP_METHOD}) - static final native void ResumeCompactions(long self); } public void delete() { @@ -225,14 +224,6 @@ public static NativeDB open(NativeOptions options, File path) throws IOException return new NativeDB(rc[0]); } - public void suspendCompactions() { - DBJNI.SuspendCompactions(self); - } - - public void resumeCompactions() { - DBJNI.ResumeCompactions(self); - } - public void put(NativeWriteOptions options, byte[] key, byte[] value) throws DBException { checkArgNotNull(options, "options"); checkArgNotNull(key, "key"); diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeIterator.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeIterator.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeLogger.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeLogger.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeObject.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeObject.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeOptions.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeOptions.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeRange.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeRange.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeReadOptions.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeReadOptions.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeSlice.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeSlice.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeSnapshot.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeSnapshot.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeStatus.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeStatus.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeStdString.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeStdString.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeWriteBatch.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeWriteBatch.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeWriteOptions.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/NativeWriteOptions.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/Util.java b/leveldbjni/src/main/java/org/fusesource/leveldbjni/internal/Util.java old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/Makefile.am b/leveldbjni/src/main/native-package/Makefile.am old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/Makefile.in b/leveldbjni/src/main/native-package/Makefile.in old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/Makefile.win b/leveldbjni/src/main/native-package/Makefile.win old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/aclocal.m4 b/leveldbjni/src/main/native-package/aclocal.m4 old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/autotools/ltmain.sh b/leveldbjni/src/main/native-package/autotools/ltmain.sh old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/license.txt b/leveldbjni/src/main/native-package/license.txt old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/m4/custom.m4 b/leveldbjni/src/main/native-package/m4/custom.m4 old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/m4/jni.m4 b/leveldbjni/src/main/native-package/m4/jni.m4 old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/m4/libtool.m4 b/leveldbjni/src/main/native-package/m4/libtool.m4 old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/m4/ltoptions.m4 b/leveldbjni/src/main/native-package/m4/ltoptions.m4 old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/m4/ltsugar.m4 b/leveldbjni/src/main/native-package/m4/ltsugar.m4 old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/m4/ltversion.m4 b/leveldbjni/src/main/native-package/m4/ltversion.m4 old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/m4/lt~obsolete.m4 b/leveldbjni/src/main/native-package/m4/lt~obsolete.m4 old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/m4/osx-universal.m4 b/leveldbjni/src/main/native-package/m4/osx-universal.m4 old mode 100644 new mode 100755 index 1b726bd..6d32975 --- a/leveldbjni/src/main/native-package/m4/osx-universal.m4 +++ b/leveldbjni/src/main/native-package/m4/osx-universal.m4 @@ -53,7 +53,7 @@ AC_DEFUN([WITH_OSX_UNIVERSAL], ],[ OSX_SDKS_DIR="" OSX_VERSION="" - for v in 10.0 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 10.10 10.11 10.12; do + for v in 10.0 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 10.10 10.11 10.12 11.13; do for location in "/Developer/SDKs" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs" ; do if test -z "${OSX_VERSION}" && test -d "${location}/MacOSX${v}.sdk" ; then OSX_SDKS_DIR="${location}" diff --git a/leveldbjni/src/main/native-package/src/buffer.c b/leveldbjni/src/main/native-package/src/buffer.c old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/native-package/src/config.h.in b/leveldbjni/src/main/native-package/src/config.h.in old mode 100644 new mode 100755 diff --git a/leveldbjni/src/main/resources/org/fusesource/leveldbjni/version.txt b/leveldbjni/src/main/resources/org/fusesource/leveldbjni/version.txt old mode 100644 new mode 100755 diff --git a/leveldbjni/src/test/java/org/fusesource/leveldbjni/test/DBTest.java b/leveldbjni/src/test/java/org/fusesource/leveldbjni/test/DBTest.java old mode 100644 new mode 100755 index b42d545..ebd6264 --- a/leveldbjni/src/test/java/org/fusesource/leveldbjni/test/DBTest.java +++ b/leveldbjni/src/test/java/org/fusesource/leveldbjni/test/DBTest.java @@ -417,16 +417,6 @@ public void testCompactRanges() throws IOException, InterruptedException, DBExce db.close(); } - @Test - public void testSuspendAndResumeCompactions() throws Exception { - Options options = new Options().createIfMissing(true); - File path = getTestDirectory(getName()); - DB db = factory.open(path, options); - db.suspendCompactions(); - db.resumeCompactions(); - db.close(); - } - public void assertEquals(byte[] arg1, byte[] arg2) { assertTrue(Arrays.equals(arg1, arg2)); } diff --git a/license.txt b/license.txt old mode 100644 new mode 100755 diff --git a/pom.xml b/pom.xml index f7b3b08..736d278 100755 --- a/pom.xml +++ b/pom.xml @@ -39,8 +39,8 @@ 1.9 - org.fusesource.leveldbjni - leveldbjni-project + com.ltonetwork + leveldbjni.leveldbjni-project 99-master-SNAPSHOT pom @@ -51,7 +51,7 @@ leveldbjni LEVELDBJNI UTF-8 - 1.11 + 1.18 0.6 @@ -89,18 +89,21 @@ - scm:git:git://github.com/fusesource/leveldbjni.git - scm:git:git@github.com:fusesource/leveldbjni.git - https://github.com/fusesource/leveldbjni + scm:git:git://github.com/ltonetwork/leveldbjni.git + scm:git:git@github.com:ltonetwork/leveldbjni.git + https://github.com/ltonetwork/leveldbjni - - website.fusesource.org - website - dav:http://fusesource.com/forge/dav/${forge-project-id}/maven/${project.version} - - + + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + @@ -110,6 +113,13 @@ http://hiramchirino.com GMT-5 + + kaloyantanev + Kaloyan Tanev + kaloyan@ltonetwork.com + LTO + https://www.ltonetwork.com/ + @@ -130,21 +140,33 @@ maven-clean-plugin 2.3 - - + org.apache.maven.plugins maven-compiler-plugin + 3.8.1 - 1.5 - 1.5 + 11 + 11 - + org.apache.maven.plugins maven-surefire-plugin - 2.4.3 + 2.22.2 + + + org.junit.platform + junit-platform-surefire-provider + 1.2.0 + + + org.junit.jupiter + junit-jupiter-engine + 5.7.2 + + true once @@ -155,7 +177,67 @@ **/*Test.java - + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + + default-deploy + deploy + + deploy + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.7 + true + + ossrh + https://s01.oss.sonatype.org/ + true + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.1 + + + attach-sources + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.0.1 + + + sign-artifacts + verify + + sign + + + ${gpg.keyname} + ${gpg.keyname} + + + + diff --git a/readme.md b/readme.md old mode 100644 new mode 100755 diff --git a/releasing.md b/releasing.md old mode 100644 new mode 100755