NetBSD Problem Report #29338

From www@netbsd.org  Fri Feb 11 16:29:45 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 5998C63B400; Fri, 11 Feb 2005 16:29:45 +0000 (UTC)
Message-Id: <20050211162945.5998C63B400@narn.netbsd.org>
Date: Fri, 11 Feb 2005 16:29:45 +0000 (UTC)
From: posta@roberto.gianassi.name
Reply-To: posta@roberto.gianassi.name
To: gnats-bugs@netbsd.org
Subject: No method to load an external library with apache-ant package
X-Send-Pr-Version: www-1.0

>Number:         29338
>Category:       pkg
>Synopsis:       No method to load an external library with apache-ant package
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jwise
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 11 16:30:00 +0000 2005
>Closed-Date:    Sat Sep 03 23:04:49 +0000 2005
>Last-Modified:  Sun Sep 04 08:20:01 +0000 2005
>Originator:     Roberto Gianassi
>Release:        NetBSD 2.0 on i386
>Organization:
n/a
>Environment:
NetBSD gericom 2.0 NetBSD 2.0 (MYKERNEL) #1: Tue Jan  4 14:45:24 CET 2005  root@gericom:/usr/src/sys/arch/i386/compile/MYKERNEL i386

>Description:
I'm unable to load an external library with Apache Ant 1.6.2 package
>How-To-Repeat:
Try to put a JUnit or FTP task in one build file and then build the application: it will complain that at least one library file is missing.
>Fix:
I'm not a shell programming guru, but my hack may probably give you an hint on a possible solution.
I took the original ant script file (standard installation: I'm referring to the /usr/pkg/bin/ant file) and made some modifications to suit my needs.
In particular I've changed the DIRLIBS definition to include the needed libraries ($*_HOME variables are defined before this line to reflect my installation):

# add in the dependency .jar files
DIRLIBS="${JUNIT_HOME}/junit.jar ${ANT_HOME}/lib/ant-junit.jar ${COMMONS_NET_HOME}/commons-net-1.3.0.jar ${ANT_HOME}/lib/java/ant/ant-commons-net.jar ${ANT_HOME}/lib/java/ant/ant.jar ${ANT_HOME}/lib/java/ant/ant-nodeps.jar ${ANT_HOME}/lib/java/crimson.jar"

I propose the following solution:
define a "standard" directory ($HOME/lib/java/ant may be a good choice) in which the user may put dependency library files;
scan also that directory to build the LOCALCLASSPATH.

I don't know if this is difficult to do. It doesn't seem so and it will be very helpful for an effective ant use: if a user wants to use the junit task, for example, she only needs to put the ant-junit.jar and the junit.jar in the "standard" directory and rebuild.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->jwise
Responsible-Changed-By: cube@netbsd.org
Responsible-Changed-When: Sat, 12 Feb 2005 08:51:57 +0000
Responsible-Changed-Why:
jwise is the maintainer.


From: Antoine Reilles <Antoine.Reilles@loria.fr>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/29338
Date: Sat, 9 Apr 2005 22:22:33 +0200

 Hi,

 I've posted a while ago a patch (pkg/29038) for the apache-ant package to allow
 the use of standard plugins, and installs the one in the official apache
 distribution.

 This patch also takes care that the ant script honors the selected alternative.
 (however, it can be tricky to change the java vm used once apache-ant
 installed, because it will require for the user to manyally set up JAVA_HOME).

 You can find the proposed patch in the pkg/29038 PR, or also at
 http://www.loria.fr/~reilles/divers/ant.diff

 regards, 
 antoine

State-Changed-From-To: open->closed
State-Changed-By: tonio@netbsd.org
State-Changed-When: Sat, 03 Sep 2005 23:04:49 +0000
State-Changed-Why:
Fixed by the update to 1.6.5 (see PR 30332). Thanks for the report


From: Antoine Reilles <tonio@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/29338 CVS commit: pkgsrc/devel/apache-ant
Date: Sat,  3 Sep 2005 22:59:25 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tonio
 Date:		Sat Sep  3 22:59:25 UTC 2005

 Modified Files:
 	pkgsrc/devel/apache-ant: Makefile PLIST distinfo
 Added Files:
 	pkgsrc/devel/apache-ant/patches: patch-aa

 Log Message:
 Update apache-ant to 1.6.5
 Remove the files/ant script, by patching the bin/ant script, as ant people
 worked on it.
 I'm taking maintainership for this one

 Fix PR 29038 and PR 29338, apache-ant now can use plugins
 Fix PR 30332 (update to 1.6.5)

 Approved by jwise@


 To generate a diff of this commit:
 cvs rdiff -r1.17 -r1.18 pkgsrc/devel/apache-ant/Makefile
 cvs rdiff -r1.5 -r1.6 pkgsrc/devel/apache-ant/PLIST
 cvs rdiff -r1.6 -r1.7 pkgsrc/devel/apache-ant/distinfo
 cvs rdiff -r0 -r1.1 pkgsrc/devel/apache-ant/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.