debian swirl logo

Back to the packages list libbase

#!/usr/bin/make -f
# debian/rules file for libbase-java (uses cdbs)

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

JAVA_HOME := /usr/lib/jvm/default-java
ANT_HOME := /usr/share/ant

DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar commons-logging junit ant-contrib ant-junit
DEB_ANT_BUILDFILE := build.xml
DEB_ANT_BUILD_TARGET := jar javadoc
DEB_ANT_CHECK_TARGET := test

DEB_UPSTREAM_VERSION := 1.1-SNAPSHOT
 
clean::
		if [ ! -d lib ]; then mkdir lib; fi
		rm -f test-lib/*

install/libbase-java::
		install -D -m 644 ./dist/libbase-$(DEB_UPSTREAM_VERSION).jar debian/libbase-java/usr/share/java/libbase-$(DEB_UPSTREAM_VERSION).jar
		ln -s libbase-$(DEB_UPSTREAM_VERSION).jar debian/libbase-java/usr/share/java/libbase.jar
	jh_classpath -plibbase-java --classpath= /usr/share/java/commons-logging.jar debian/libbase-java/usr/share/java/libbase-$(DEB_UPSTREAM_VERSION).jar
		jh_depends

Builds:

libbase-java
a general purpose base service library (ooo 3.1 branch)