[
https://issues.apache.org/jira/browse/DERBY-5200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13032361#comment-13032361
]
Knut Anders Hatlen commented on DERBY-5200:
-------------------------------------------
Perhaps init is a bit too early? That target is also invoked if you build the
product only, not just when you build the tests. If you have for example a
packaging script that runs something like "ant buildsource buildjars", this
doesn't currently require junit.jar, but now it will start trying to download
junit.jar automatically, and will fail if it's running in an environment
without connectivity. I think it would be good to limit the downloading to the
case where junit.jar is needed and doesn't already exist.
> [patch] embellish build.xml to automatically install junit.jar in the correct
> directory if it doesn't exist.
> ------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-5200
> URL: https://issues.apache.org/jira/browse/DERBY-5200
> Project: Derby
> Issue Type: Improvement
> Components: Build tools
> Affects Versions: 10.7.1.1
> Reporter: Dave Brosius
> Priority: Trivial
> Fix For: 10.8.1.3
>
> Attachments: auto_download_junit.diff, auto_download_junit.diff
>
>
> if tools/java/junit.jar doesn't exist, automatically install it from the
> central maven repository (location overrideable in local.properties) when
> running junit.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira