@ -154,9 +154,12 @@ MVN_LOCAL = ~/.m2/repository
# Set the default JAVA_ARGS to "" for DEBUG_LEVEL=0
J A V A _ A R G S ? =
J A V A C _ A R G S ? =
# When debugging add -Xcheck:jni to the java args
i f n e q ( $( DEBUG_LEVEL ) , 0 )
JAVA_ARGS = -ea -Xcheck:jni
JAVAC_ARGS = -Xlint:deprecation -Xlint:unchecked
e n d i f
SEARCH_REPO_URL ?= http://search.maven.org/remotecontent?filepath=
@ -178,7 +181,7 @@ javalib: java java_test javadocs
java :
$( AM_V_GEN) mkdir -p $( MAIN_CLASSES)
$( AM_V_at) javac -d $( MAIN_CLASSES) \
$( AM_V_at) javac $( JAVAC_ARGS) -d $( MAIN_CLASSES) \
$( MAIN_SRC) /org/rocksdb/util/*.java\
$( MAIN_SRC) /org/rocksdb/*.java
$( AM_V_at) @cp ../HISTORY.md ./HISTORY-CPP.md
@ -187,7 +190,7 @@ java:
sample : java
$( AM_V_GEN) mkdir -p $( SAMPLES_MAIN_CLASSES)
$( AM_V_at) javac -cp $( MAIN_CLASSES) -d $( SAMPLES_MAIN_CLASSES) $( SAMPLES_MAIN_SRC) /RocksDBSample.java
$( AM_V_at) javac $( JAVAC_ARGS) -cp $( MAIN_CLASSES) -d $( SAMPLES_MAIN_CLASSES) $( SAMPLES_MAIN_SRC) /RocksDBSample.java
$( AM_V_at) @rm -rf /tmp/rocksdbjni
$( AM_V_at) @rm -rf /tmp/rocksdbjni_not_found
java $( JAVA_ARGS) -Djava.library.path= target -cp $( MAIN_CLASSES) :$( SAMPLES_MAIN_CLASSES) RocksDBSample /tmp/rocksdbjni
@ -196,7 +199,7 @@ sample: java
column_family_sample : java
$( AM_V_GEN) mkdir -p $( SAMPLES_MAIN_CLASSES)
$( AM_V_at) javac -cp $( MAIN_CLASSES) -d $( SAMPLES_MAIN_CLASSES) $( SAMPLES_MAIN_SRC) /RocksDBColumnFamilySample.java
$( AM_V_at) javac $( JAVAC_ARGS) -cp $( MAIN_CLASSES) -d $( SAMPLES_MAIN_CLASSES) $( SAMPLES_MAIN_SRC) /RocksDBColumnFamilySample.java
$( AM_V_at) @rm -rf /tmp/rocksdbjni
java $( JAVA_ARGS) -Djava.library.path= target -cp $( MAIN_CLASSES) :$( SAMPLES_MAIN_CLASSES) RocksDBColumnFamilySample /tmp/rocksdbjni
$( AM_V_at) @rm -rf /tmp/rocksdbjni
@ -211,7 +214,7 @@ resolve_test_deps:
java_test : java resolve_test_deps
$( AM_V_GEN) mkdir -p $( TEST_CLASSES)
$( AM_V_at) javac -cp $( MAIN_CLASSES) :$( JAVA_TESTCLASSPATH) -d $( TEST_CLASSES) \
$( AM_V_at) javac $( JAVAC_ARGS) -cp $( MAIN_CLASSES) :$( JAVA_TESTCLASSPATH) -d $( TEST_CLASSES) \
$( TEST_SRC) /org/rocksdb/test/*.java\
$( TEST_SRC) /org/rocksdb/util/*.java\
$( TEST_SRC) /org/rocksdb/*.java
@ -224,4 +227,4 @@ run_test:
db_bench : java
$( AM_V_GEN) mkdir -p $( BENCHMARK_MAIN_CLASSES)
$( AM_V_at) javac -cp $( MAIN_CLASSES) -d $( BENCHMARK_MAIN_CLASSES) $( BENCHMARK_MAIN_SRC) /org/rocksdb/benchmark/*.java
$( AM_V_at) javac $( JAVAC_ARGS) -cp $( MAIN_CLASSES) -d $( BENCHMARK_MAIN_CLASSES) $( BENCHMARK_MAIN_SRC) /org/rocksdb/benchmark/*.java