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?

Thanks for your quick response

       Andreas.

--
http://fam-tille.de


--
To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to