On Thu, Oct 01, 2009 at 01:20:37PM +0200, Andreas Tille wrote: > On Thu, 1 Oct 2009, Michael Koch wrote: > > >org/apache/ivy/ant/antlib.xml is located inside ivy.jar. The problem is that > >its > >not loaded from there. Could be classpath issue. Are you sure you use the > >correct > >jar? > > No, I'm not. How can I force the correct one? > > My first try was with a simple debhelper rules file containing just > > %: > dh $@ > > Now I tried copying from ivy: > > include /usr/share/cdbs/1/class/ant.mk > include /usr/share/cdbs/1/rules/debhelper.mk > > PACKAGE := $(DEB_SOURCE_PACKAGE) > VERSION := $(DEB_UPSTREAM_VERSION) > MVN_VERSION := $(shell echo $(VERSION) | sed 's/~/-/') > JAVA_HOME := /usr/lib/jvm/java-6-openjdk > DEB_ANT_BUILD_TARGET := jar javadoc > > > But the problem remains: > > debian/rules build > test -x debian/rules > mkdir -p "." > cd . && /usr/lib/jvm/java-6-openjdk/bin/java -classpath > /usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/lib/jvm/java-6-openjdk/lib/tools.jar > -Dant.home=/usr/share/ant org.apache.tools.ant.Main -Dcompile.debug=true > -Dcompile.optimize=true jar javadoc > Buildfile: build.xml > > version: > > download-ivy: > > install-ivy: > [taskdef] Could not load definitions from resource > org/apache/ivy/ant/antlib.xml. It could not be found. > > BUILD FAILED > /home/tillea/debian-maintain/todo/mondrian_olap/mondrian-3.1.2.13008/build.xml:325: > Problem: failed to create task or type antlib:org.apache.ivy.ant:settings > > > Where can I read about forcing classpath or something like this?
With CDBS it would be a simple DEB_JARS variable. There are also plenty of examples in the archive for packages using ant and cdbs. I font know how good the ant support in dh7 already is. I know no package already using it. That doesnt mean there is none... One issue I already see in your debian/rules snipped: Why do you depend on openjdk6 and not on default-jdk? The later is the prefered if the package builds with either openjdk6 or gcj. Cheers, Michael -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org