debian swirl logo

Back to the packages list apache-log4j1.2

#!/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   := $(DEB_UPSTREAM_VERSION)
JAVA_HOME := /usr/lib/jvm/default-java
ANT_HOME  := /usr/share/ant
DEB_JARS  := gnumail
DEB_ANT_BUILD_TARGET := jar javadoc
DEB_ANT_ARGS := -Dversion=$(VERSION)

clean::
		-$(RM) -r docs
		-rm -rf debian/tmp
		rm -Rf debian/liblog4j-1.2-java-doc/*
		rm -Rf debian/log4j-${VERSION}.bar
		mh_clean

common-build-indep::
		cat debian/log4j.bnd | sed s/VERSION/$(VERSION)/ > debian/.log4j-versioned.bnd
		java -jar /usr/share/java/bnd.jar wrap -properties debian/.log4j-versioned.bnd dist/lib/log4j-$(VERSION).jar
		java -jar /usr/share/java/bnd.jar wrap -properties debian/.log4j-versioned.bnd \
			-classpath /usr/share/java/gnumail.jar \
			-output log4j.jar dist/lib/log4j-$(VERSION).jar
		rm debian/.log4j-versioned.bnd dist/lib/log4j-$(VERSION).jar
		mv log4j.jar dist/lib/log4j-$(VERSION).jar
		cp pom.xml dist/lib/log4j.javadoc.pom
		jar cvf dist/lib/log4j.javadoc.jar -C docs/api/ .

install/liblog4j1.2-java::
		$(RM) dist/lib/log4j-*-sources.jar
		mh_install

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

Builds:

liblog4j1.2-java-doc
documentation for liblog4j1.2-java
liblog4j1.2-java
logging library for java