debian swirl logo

Back to the packages list classworlds

#!/usr/bin/make -f

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

PACKAGE              := $(DEB_SOURCE_PACKAGE)
VERSION              := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -s "s/-final//")
JAVA_HOME            := /usr/lib/jvm/default-java
DEB_JARS             := ant-trax ant-nodeps xalan2
DEB_ANT_BUILD_TARGET := package javadoc
DEB_ANT_BUILDFILE    := /usr/share/maven-ant-helper/maven-build.xml
DEB_ANT_ARGS         := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) -Dversion=$(VERSION)
API_DOCS             := build/api

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

binary-post-install/lib$(PACKAGE)-java::
		mh_installpoms -plib$(PACKAGE)-java
	mh_installjar -plib$(PACKAGE)-java -l pom.xml --usj-version= $(VERSION) build/$(PACKAGE)-$(VERSION).jar

binary-post-install/lib$(PACKAGE)-java-doc::
		dh_install -plib$(PACKAGE)-java-doc build/api usr/share/doc/lib$(PACKAGE)-java

clean::
		mh_clean

Builds:

libclassworlds-java-doc
documentation for the classworlds java library
libclassworlds-java
framework for container developers requiring manipulation of classloaders