Add in examples to Java build.

This commit is contained in:
Alex Gorrod
2013-01-25 12:48:02 +11:00
parent 90e7314eb3
commit 697825e73b
6 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
AM_CPPFLAGS = -I$(abs_top_builddir)
JAVAEXAMPLES = $(top_srcdir)/examples/java/com/wiredtiger/examples
# TODO: How to add to existing Javadoc from main API?
# JDOCDIR = $(top_srcdir)/docs/java
# java_DATA = $(JDOCDIR)/index.html
javadir = $(datadir)/java
dist_java_JAVA = \
$(JAVAEXAMPLES)/ex_access.java
all-local: wiredtiger.jar
$(JDOCDIR)/index.html: $(dist_java_JAVA)
mkdir -p $(JDOCDIR)
javadoc -public -d $(JDOCDIR) -link http://docs.oracle.com/javase/6/docs/api $(JAVAEXAMPLES)/[A-Z]*.java
wiredtiger.jar: $(dist_java_JAVA)
(cd $(top_builddir) && \
$(JAR) -cf wiredtiger.jar com/)

View File

@@ -1,3 +1,4 @@
package com.wiredtiger.examples;
import com.wiredtiger.db.*;
public class ex_access {