public class ReleaseRepository extends java.lang.Object
The releases are used by tests, for instance by the upgrade and compatibility tests, to verify characteristics and behavior across Derby releases.
This particular repository is rather dumb - it is up to the user to keep the
repository content updated. The repository layout is based on the layout of
the SVN repository for releases at
https://svn.apache.org/repos/asf/db/db/jars. This means there will
be a directory for each release, where the directory name is the release
version. Inside this directory, all the distribution JARs can be found.
The repository location defaults to
UNIX-like systems, and to
Windows (in Java, both of these maps to the system property 'user.home').
The location can be overridden by specifying the system property
If the default location doesn't exist, and the system property
derbyTesting.oldReleasePath is unspecified, it is up to the tests
using the release repository to decide if this condition fails the test or
not. If the system property is set to a non-existing directory an exception
will be thrown when instantiating the repository.
The repository is lazily initialized, as there's no reason to incur the initialization cost when running tests that don't require the repository. The disk is inspected only when the repository is instantiated, any updates to the on-disk repository after the repository has been instantiated will not take effect.
Implementation note: This code should be runnable with J2ME, which means that it needs to be compatible with J2SE 1.4 for the time being.
|Modifier and Type||Method and Description|
Returns the list of distributions in the repository.
Returns the release repository object.
public static ReleaseRepository getInstance() throws java.io.IOException
The release repository will be built from a default directory, or
from the directory specified by the system property
public DerbyDistribution getDistributions() throws java.io.IOException