#!/usr/bin/make -f
# debian/rules for libcommons-jxpath-java (uses CDBS)

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

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

JAVA_HOME	     := /usr/lib/jvm/default-java
ANT_HOME             := /usr/share/ant
DEB_JARS             := junit jdom1 servlet-api-3.0 jsp-api-2.2 commons-beanutils common-collections3 commons-logging
DEB_ANT_BUILD_TARGET := jar javadoc
DEB_ANT_CLEAN_TARGET := clean

binary-install/libcommons-jxpath-java::
	mh_install -plibcommons-jxpath-java

JAR=debian/libcommons-jxpath-java/usr/share/java/commons-jxpath-*.jar
common-binary-post-install-indep::
	bnd wrap --properties debian/commons-jxpath.bnd --output $(JAR).tmp $(JAR)
	mv $(JAR).tmp $(JAR)

clean::
	mh_clean
