db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-6860) Automatic download of junit.jar broken
Date Thu, 04 Feb 2016 10:14:39 GMT

    [ https://issues.apache.org/jira/browse/DERBY-6860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15132087#comment-15132087
] 

ASF subversion and git services commented on DERBY-6860:
--------------------------------------------------------

Commit 1728431 from [~knutanders] in branch 'code/trunk'
[ https://svn.apache.org/r1728431 ]

DERBY-6860: Automatic download of junit.jar broken

Invoke the install_junit target before the setCompilerProperties
target. setCompilerProperties sets the junit property, and the
install_junit raises an error if the junit property is set and
points to a file that doesn't exist. install_junit must therefore
be invoked before the junit property is set in order to be able to
download junit.jar.

> Automatic download of junit.jar broken
> --------------------------------------
>
>                 Key: DERBY-6860
>                 URL: https://issues.apache.org/jira/browse/DERBY-6860
>             Project: Derby
>          Issue Type: Bug
>          Components: Build tools
>    Affects Versions: 10.13.0.0
>            Reporter: Knut Anders Hatlen
>
> Automatic download of junit.jar seems to be broken. If you don't already have a copy
in tools/java, "ant all" fails like this:
> {noformat}
> junit_check:
> BUILD FAILED
> /code/derby/trunk/build.xml:66: The following error occurred while executing this line:
> /code/derby/trunk/build.xml:177: junit property is set to /code/derby/trunk/tools/java/junit.jar,
but there is no junit.jar there.
> {noformat}
> The problem seems to be that junit_check refuses to continue if the junit property is
set, but does not point to an existing file. This property is set when the setCompilerProperties
target, which runs before junit_check, loads tools/ant/properties/extrapath.properties, as
extrapath.properties contains the following line:
> {noformat}
> junit=${javatools.dir}/junit.jar
> {noformat}
> Since the install_junit target depends on the check_junit target, this prevents the build
script from downloading junit.jar automatically.
> Workaround: run "ant install_junit" before "ant all"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message