#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

JAVA_HOME  := /usr/lib/jvm/default-java
DEB_JARS   := commons-collections3 commons-pool junit geronimo-jta_1.1_spec

PACKAGE=commons-dbcp

DEB_ANT_CLEAN_TARGET := clean
DEB_ANT_BUILD_TARGET := build
#DEB_ANT_CHECK_TARGET := test

# Per Debian Java Policy, install a versioned JAR and an unversioned symlink
binary-post-install/lib$(PACKAGE)-java::
	mh_installpoms -plib$(PACKAGE)-java
	mh_installjar -plib$(PACKAGE)-java -l pom.xml dist/$(PACKAGE).jar

clean::
	-rm -rf debian/tmp
	-rm -fr doc/api

get-orig-source:
	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
