Permalink
Switch branches/tags
release404401_rc1 release40440_rc1 release4401test_t1 release4401_t1 release4401_release_point release4401_rc4 release4401_rc3 release4401_rc2 release4401_rc1 release4044_t7 release451_t1 release433_release_point release433_rc1 release432_release_point release432_rc1 release431_release_point release431_rc3 release431_rc2 release431_rc1 release421_t3 release421_t2 release421_t1 release421_release_point release421_rc4 release421_rc3 release421_rc2 release421_rc1 release421c_release_point release421c_rc2 release421c_rc1 release421b_rc1 release421a_release_point release421a_rc2 release421a_rc1 release411_release_point release411_rc2 release411_rc1 release411a_rc1 release406_rc1 release406_pre2 release406_pre2_release_point release406_pre1 release406_pre1_release_point release406a_t5 release406a_t4 release406a_t3 release406a_t2 release406a_t1 release406a_release_point release406a_rc3 release406a_rc2 release405_release_point release405_rc1 release405d_release_point release405d_rc1 release405c_release_point release405c_rc2 release405c_rc1 release405b_release_point release405b_rc3 release405b_rc2 release405b_rc1 release405a_release_point release405a_rc1 release404_t1 release404_rc5 release404_rc4 release404_rc3 release404_rc2 release404_rc1 release403_t3 release403_t2 release403_t1 release403_release_point release403_rc9 release403_rc8 release403_rc7 release403_rc6 release403_rc5 release403_rc4 release403_rc3 release403_rc2 release403_rc1 release403presi_rc3 release403presi_rc2 release403presi_rc1 release402_rc4 release402_rc3 release402_rc2 release402_rc1 release401_rc2 release401_rc1 release401d_rc1 release401c_rc1 release401b_rc1 release401a_rc1 release45_t4 release45_t3 release45_t2 release45_t1
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
167 lines (122 sloc) 4.67 KB
# Standard Franz make rules forward to Maven.
# Client version, not AG version. This is extracted from pom.xml
override VERSION = $(shell ./version.sh)
export AGRAPH_HOST ?= $(shell echo $${AGRAPH_HOST:-localhost})
export AGRAPH_PORT ?= $(shell echo $${AGRAPH_PORT-`cat ../agraph/lisp/agraph.port 2> /dev/null || echo 10035`})
# For tutorial
example ?= all
# Common arguments used with mvn exec:java
MVN_EXEC_ARGS = -Dexec.cleanupDaemonThreads=false -Dexec.classpathScope=test
# Shortcut to run mvn exec:java
EXEC_JAVA = mvn exec:java $(MVN_EXEC_ARGS)
# Repo directory used to deploy the artifact locally, for use by the tutorials
REPO = $(abspath repo)
# Options used by release-staged and drop-staged
ifdef STAGING_ID
MVN_STAGED_OPTS=-DstagingRepository.id=$(STAGING_ID)
else
MVN_STAGED_OPTS=
endif
default: build
clean: dist-clean
mvn clean
prepush: tutorial jena-tutorial attributes-tutorial agq-tests jena-compliance-tests javadoc
mvn test -Dtests.include=test.TestSuites\$$Prepush
# Force Java to use ASCII (i.e. not UTF-8) as the default encoding.
env LC_ALL=C mvn test -Dtests.include=test.TestSuites\$$Unicode
test-bigger: test-stress test-stress-events
test-broken: FORCE
mvn test -Dtests.include=test.TestSuites\$$Broken
test-stress: FORCE
mvn test -Dtests.include=test.TestSuites\$$Prepush,test.TestSuites\$$Stress
test-stress-events: FORCE
$(EXEC_JAVA) -Dexec.mainClass=test.stress.Events -Dexec.args="--catalog java-catalog --load 2 --query 2 --time 1 --size 100000"
lubm-prolog: FORCE
mvn test-compile
$(EXEC_JAVA) -Dexec.mainClass=test.lubm.AGLubmProlog
lubm-sparql: FORCE
mvn test-compile
$(EXEC_JAVA) -Dexec.mainClass=test.lubm.AGLubmSparql -Dexample=$(example)
tutorial: local-deploy
cd tutorials/sesame && \
mvn compile -Dmaven.repo.local=$(REPO) && \
mvn exec:java -Dmaven.repo.local=$(REPO) -Dexec.args=$(example)
jena-tutorial: local-deploy
cd tutorials/jena && \
mvn compile -Dmaven.repo.local=$(REPO) && \
mvn exec:java -Dmaven.repo.local=$(REPO) -Dexec.args=$(example)
attributes-tutorial: local-deploy
cd tutorials/attributes && \
mvn compile -Dmaven.repo.local=$(REPO) && \
mvn exec:java -Dmaven.repo.local=$(REPO)
agq-tests: local-deploy
cd tutorials/agq && \
mvn compile -Dmaven.repo.local=$(REPO) && \
mvn test -Dmaven.repo.local=$(REPO)
sparql-query-tests: FORCE
mvn test -Dtests.include=test.openrdf.AGSparqlQueryTest
sparql-update-tests: FORCE
mvn test -Dtests.include=test.openrdf.AGSparqlUpdateTest,test.openrdf.AGSparqlUpdateConformanceTest
repository-connection-tests: FORCE
mvn test -Dtests.include=test.openrdf.repository.AGRepositoryConnectionTest
repository-tests: FORCE
mvn test -Dtests.include=test.openrdf.repository.AGAllRepositoryTests
jena-compliance-tests: FORCE
mvn test -Dtests.include="test.AGGraphMakerTest,\
test.AGGraphTest,\
test.AGModelTest,\
test.AGPrefixMappingTest,\
test.AGResultSetTest,\
test.AGReifierTest"
test-release: FORCE
python test-release/make-pom.py > test-release/pom.xml
cd test-release && mvn test -Dtest=test.TestSuites\$$Prepush,test.TestSuites\$$Stress
local-deploy: FORCE
mvn install -DskipTests=true -Dmaven.repo.local=$(REPO)
build: FORCE
mvn compile
javadoc: FORCE
# Note: if we do not call 'validate' explicitly, the plugin that
# computes the current year will run too late.
mkdir -p target # make sure the output directory exists...
mvn validate javadoc:javadoc | tee target/javadoc.log
@if grep -q ^"\[WARNING\]" target/javadoc.log; then \
echo "[ERROR] Javadoc warnings found,"; \
exit 1; \
fi
checkstyle: FORCE
mvn checkstyle:check
srcjar: FORCE
mvn source:jar
tags: FORCE
rm -f TAGS
find . -name '*.java' -print0 | xargs -0 etags -a
###############################################################################
## distribution building
# It is pretty hard to convince Maven to use another name.
PACKAGE_NAME = agraph-java-client-$(VERSION)
DIST_DIR=DIST
TARNAME = $(DIST_DIR)/$(PACKAGE_NAME).tar.gz
deploy: FORCE
./deploy.sh
release-staged: FORCE
mvn nexus-staging:release $(MVN_STAGED_OPTS)
drop-staged: FORCE
mvn nexus-staging:drop $(MVN_STAGED_OPTS)
list-staged: FORCE
@mvn nexus-staging:rc-list | grep franz || echo 'No staged releases found'.
dist: FORCE
mvn -DskipTests=true package
@# Note that maven creates target/$(PACKAGE_NAME)/$(PACKAGE_NAME) for some reason.
mkdir -p $(DIST_DIR)
tar -c -h -z --owner=root --group=root -f $(TARNAME) -C target/$(PACKAGE_NAME) $(PACKAGE_NAME)
publish-dist: dist
cp $(TARNAME) RELEASE-HISTORY.md /fi/ftp/pub/agraph/java-client/
prepare-release: FORCE
./unsnapshot.sh
post-release: FORCE
./increment-version.sh
git push gerrit HEAD:refs/for/master%submit
dist-clean: FORCE
rm -fr target
FORCE: