debian swirl logo

Back to the packages list spring-build

#!/usr/bin/make -f

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

JAVA_HOME            := /usr/lib/jvm/default-java
DEB_JARS             := ivy commons-net commons-httpclient jets3t org.eclipse.osgi
DEB_ANT_BUILDFILE    := debian/build.xml

MODULES = ant aws.ant aws.ivy osgi
PRJ_ROOT = org.springframework.build
ARTIFACT_ROOT = target/artifacts/org.springframework.build

setuplinks:
		if [ ! -d spring-build ]; then \
			ln -s project-build spring-build; \
		fi;
		-for MYMOD in $(MODULES); do \
		FILE= org.springframework.build.$$MYMOD/spring-build; \
			if [ ! -d $$FILE ]; then \
				(cd org.springframework.build.$$MYMOD/; ln -s ../project-build spring-build) \
			fi; \
		done

removelinks:
		for MYMOD in $(MODULES); do \
		FILE= org.springframework.build.$$MYMOD/spring-build; \
			if [ -d $$FILE ]; then \
				rm $$FILE; \
			fi; \
		done
		-unlink spring-build

cleanbuilddir:: setuplinks
makebuilddir:: setuplinks

binary-post-install/libspring-build-java::
		for MYMOD in $(MODULES); do \
		POM= `echo debian/poms/$$MYMOD.xml`; \
		JAR= `echo $(PRJ_ROOT).$$MYMOD/$(ARTIFACT_ROOT).$$MYMOD.jar`; \
			mh_installpom -plibspring-build-java $$POM ; \
			mh_installjar -plibspring-build-java -l $$POM $$JAR ; \
		done

clean:: removelinks
		mh_clean

get-orig-source:
		sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)

Builds:

libspring-build-java
ant tasks for spring build module
spring-build-scripts
ant scripts snippets for spring build module