#1 junit jar availability test broken

open
nobody
None
5
2012-07-22
2006-06-08
R.
No

The availability test in
openmdx-1.12.1/ant/etc/ant/build-library.xml
for the availability of the junit jar is broken because
it tests for
the existence of a particular file in a particular
directory; however,
the jar file may be installed elsewhere (e.g. in
$HOME/.ant/lib/) and
under a different name (e.g. junit-3.8.0.jar).

The attached patch fixes the test to check for the
availability of a
particular class instead.

Also note that assuming you can copy a file into the
ant installation
directly is broken, because that may be allowed if it
was installed
from an rpm (hence is not writable by non-root users); the
$HOME/.ant/lib/ location is a safer place for such things.

Discussion

  • Harry
    Harry
    2007-01-19

    Logged In: YES
    user_id=1001245
    Originator: NO

    Hello roadrunner2

    Thanks a lot for the patch.
    It will be incorporated in the next openMDX release.

    Dirty Harry

     


Anonymous


Cancel   Add attachments