Your message dated Thu, 02 Mar 2006 22:38:53 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Bug#354878: ant-optional: Cannot use "scp" target
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: ant-optional
Version: 1.6.5-5
Severity: normal
Despite having ant-optional and libjsch-java installed, I still get
an error message for the "scp" task. Am I missing something here or is
this a bug in the ant installation?
$ ant
Buildfile: build.xml
all:
BUILD FAILED
/home/calvin/temp/test/build.xml:5: Could not create task or type of
type: scp.
Ant could not find the task or a class this task relies upon.
[...]
Here is the build.xml file:
<?xml version="1.0" encoding="UTF-8" ?>
<project name="test" default="all" basedir=".">
<target name="all">
<scp file="t.t" todir="sub" failonerror="true" />
</target>
</project>
Regards,
Bastian
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (900, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-ap-lnx-bastiank7
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages ant-optional depends on:
ii ant 1.6.5-5 Java based build tool like make
ii gij-4.0 [java1-runtime] 4.0.2-9 The GNU Java bytecode
interpreter
ii kaffe 2:1.1.6.91-2 A JVM to run Java bytecode
ii kaffe-pthreads [kaffe] 2:1.1.6.91-2 A POSIX threads enabled
version of
ant-optional recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi Bastian,
Bastian Kleineidam wrote:
> Arnaud Vandyck schrieb:
>
>>>Did you put the libjsch-java in the classpath?
>
> I don't have any $CLASSPATH set in my environment. However I found out
> the scp target works after putting a symlink in the ant library directory:
> /usr/share/ant/lib/jsch.jar -> ../../java/jsch.jar
> I suggest adding this link to the ant-optional package, then no
> CLASSPATH adjustment is needed.
No, as this will produce dangling symlinks as ant-optional does not depend
only suggest the packages needed as libraries.
The README.Debian in the ant package explains how to add additional libraries.
Either by adding the links to /usr/share/ant/lib yourself (as you did) or
via the -libs options (which is also usable by normal users).
As its now clear that this was only a classpath issue I close this bug.
Thanks,
Wolfgang
--- End Message ---
_______________________________________________
pkg-java-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers