db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-6468) Add a version number to derbyTesting.jar
Date Tue, 25 Mar 2014 16:24:41 GMT

     [ https://issues.apache.org/jira/browse/DERBY-6468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Myrna van Lunteren updated DERBY-6468:
--------------------------------------

    Attachment: DERBY-6468_1.diff

Attaching a patch which tries to do this.
It also modifies sysinfo, so we can see the change.

When the package org.apache.derbyTesting (actually, the class org.apache.derbyTesting.junit.BaseTestCase)
is not on the classpath, it prints nothing:

:
:
Found support for locale: [zh_CN]
         version: 10.11.0.0 alpha - (1579303M)
Found support for locale: [zh_TW]
         version: 10.11.0.0 alpha - (1579303M)
------------------------------------------------------

When it has the package in the classes directory, it does this:
:
:
Found support for locale: [zh_CN]
         version: 10.11.0.0 alpha - (1579303M)
Found support for locale: [zh_TW]
         version: 10.11.0.0 alpha - (1579303M)
------------------------------------------------------
org.apache.derbyTesting.*:
         [C:\derby\trunk\classes]
         version: 10.11.0.0 alpha - (1579303M)
------------------------------------------------------

When it has the package in derbyTesting.jar it looks like this:
Found support for locale: [zh_CN]
         version: 10.11.0.0 alpha - (1579303M)
Found support for locale: [zh_TW]
         version: 10.11.0.0 alpha - (1579303M)
------------------------------------------------------
org.apache.derbyTesting.*:
         [C:\derby\trunk\jars\sane\derbyTesting.jar]
         version: 10.11.0.0 alpha - (1579303M)
------------------------------------------------------


Alas, there is still something wrong, because:
- you only see this after the buildjars target has been called
- it doesn't work if you only have jars in the classpath (haha. either need to add a manifest
file to derbyTesting.jar or add the properties file in, maybe).
And I still need to check what this does with the sysinfo test.

So posting to see if this is what we're after, not ready for commit...

> Add a version number to derbyTesting.jar
> ----------------------------------------
>
>                 Key: DERBY-6468
>                 URL: https://issues.apache.org/jira/browse/DERBY-6468
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Rick Hillegas
>         Attachments: DERBY-6468_1.diff
>
>
> The product jars carry version stamps in property files stored in the org/apache/derby/info
directory. It would be good for the test jar to carry a version stamp too. This can be useful
in verifying that the tests are at the right revision level tor the product being tested.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message