Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#1043 - apache-ant with JUnit

Attached to Project: Arch Linux
Opened by Nicolas (unzeen) - Wednesday, 30 June 2004, 01:50 GMT
Last edited by Dale Blount (dale) - Wednesday, 30 June 2004, 13:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jason Chu (jason)
Architecture not specified
Severity Very Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

It seems (http://jxcl.sourceforge.net/tutorials/ant.html) that in order to use JUnit with Ant, junit.jar must be in the ant lib dir during build. The /usr/lib/ant-junit.jar from the arch package has no classes in it, only xls files - it needs the JUnitTask.class and a few more to work with JUnit. It is only an optional ant task, but still it would be nice to have it working after installing apache-ant, and I think most people who use ant, use JUnit too.

I have modified the PKGBUILD to build with JUnit:

pkgname=apache-ant
pkgver=1.6.1
pkgrel=2
pkgdesc="Ant is a java-based build tool."
depends=(j2sdk)
source=(http://apache.mirror.mcgill.ca/ant/source/$pkgname-$pkgver-src.tar.gz
http://belnet.dl.sourceforge.net/sourceforge/junit/junit3.8.1.zip)
md5sums=('e6276665f1c09fcdf47b8f7900b4a531' '5110326e4b7f7497dfa60ede4b626751')
url="http://ant.apache.org/"

build() {
cp $startdir/src/junit3.8.1/junit.jar $startdir/src/$pkgname-$pkgver/lib
cd $startdir/src/$pkgname-$pkgver
mkdir dist
./build.sh -Ddist.dir=dist/ dist
export ANT_HOME="$startdir/pkg/usr"
./build.sh install-lite
}
This task depends upon

Closed by  Jason Chu (jason)
Saturday, 03 July 2004, 02:01 GMT
Reason for closing:  Fixed
Comment by Jason Chu (jason) - Saturday, 03 July 2004, 02:01 GMT
Fixed in version 1.6.1-2.

Loading...