FS#6882 - Junit.jar missing from Apache ant

Attached to Project: Arch Linux
Opened by David Rosenstrauch (darose) - Wednesday, 11 April 2007, 14:06 GMT
Last edited by Jan de Groot (JGC) - Monday, 02 July 2007, 21:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Paul Mattal (paul)
Architecture All
Severity Medium
Priority Normal
Reported Version 0.8 Voodoo
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I noticed an issue with the latest build of the Arch apache ant package that is causing some of my java ant build scripts to break. Apparently in the ant v1.6.5 package, we were including junit.jar as part of the package, but now in v1.7.0 we are not.

Can we please switch it back? Having the junit.jar ship as a part of the ant package was very helpful, since then ant would pick it up automatically (as per http://ant.apache.org/manual/OptionalTasks/junit.html, since it was being placed in ANT_HOME/lib, ant would find it).

Without it present, I'm going to have to go and modify each of my Java projects now to each individually include the junit jar.


Perhaps we can do this by including a symlink in the ant package to /usr/share/java/junit/junit.jar? (Which is provided by the junit package.)

I've attached a patch to the apache ant PKGBUILD that does this. I installed it on my system and it seems to work fine.
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 02 July 2007, 21:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  Junit installs itself into /usr/share/java now, and provides a symlink in /usr/lib for ant now.
Comment by Paul Mattal (paul) - Saturday, 05 May 2007, 14:25 GMT
This seems an elegant solution, except that junit is in community and we don't want to create dependencies of extra on community.

I'll consider taking junit up to extra and doing this.

Loading...