summaryrefslogtreecommitdiff
path: root/src/java
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-04-29 14:50:31 -0700
committerSage Weil <sage@inktank.com>2013-04-29 14:50:41 -0700
commit29831f9662fea2877efa95b35d3bc7b187f0b0e5 (patch)
tree624e3f095cd56067493936401048ee8c4fd04819 /src/java
parent6a5be251df0e14ec66fb868ff6a6ef6e08d539c6 (diff)
downloadceph-29831f9662fea2877efa95b35d3bc7b187f0b0e5.tar.gz
Makefile: fix java build warning
This is a workaround that makes the warning go away. Not certain there isn't something we should be changing... Signed-off-by: Sage Weil <sage@inktank.com> Reviewed-by: Joe Buck <joe.buck@inktank.com>
Diffstat (limited to 'src/java')
-rw-r--r--src/java/Makefile.am11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/java/Makefile.am b/src/java/Makefile.am
index 790ce0d8656..ac7e86cf9fa 100644
--- a/src/java/Makefile.am
+++ b/src/java/Makefile.am
@@ -35,9 +35,16 @@ JAVA_H = native/com_ceph_fs_CephMount.h
# target to make automake happy
CEPH_PROXY=java/com/ceph/fs/CephMount.class
+# note: for the -source 1.5 builds, we add
+# -Xlint:-options
+# to get rid of the warning
+# warning: [options] bootstrap class path not set in conjunction with -source 1.5
+# as per
+# https://blogs.oracle.com/darcy/entry/bootclasspath_older_source
+
$(CEPH_PROXY): $(JAVA_SRC)
export CLASSPATH=java/ ; \
- $(JAVAC) -source 1.5 -target 1.5 java/com/ceph/fs/*.java
+ $(JAVAC) -source 1.5 -target 1.5 -Xlint:-options java/com/ceph/fs/*.java
$(JAVA_H): $(CEPH_PROXY)
export CLASSPATH=java/ ; \
@@ -63,7 +70,7 @@ CEPH_TEST_PROXY=test/com/ceph/fs/CephMountTest.class
$(CEPH_TEST_PROXY): $(JAVA_TEST_SRC) $(CEPH_PROXY)
export CLASSPATH=$(CLASSPATH):$(EXTRA_CLASSPATH_JAR):java/:test/ ; \
- $(JAVAC) -source 1.5 -target 1.5 test/com/ceph/fs/*.java
+ $(JAVAC) -source 1.5 -target 1.5 -Xlint:-options test/com/ceph/fs/*.java
libcephfs-test.jar: $(CEPH_TEST_PROXY)
$(JAR) cf $@ $(JAVA_TEST_CLASSES:%=-C test %) $(ESCAPED_JAVA_TEST_CLASSES:%=-C test %)