|
|
Re: automatically add svn revision number on bundle export [message #495790 is a reply to message #495731] |
Fri, 06 November 2009 06:29 |
Volker Wegert Messages: 182 Registered: July 2009 |
Senior Member |
|
|
Andrew Niefer <aniefer@ca.ibm.com> writes:
> Thomas Haskes wrote:
>>
>> I would like to have eclipse autmatically add the svn revision number
>> to the bundle version when I export a Eclipse RCP Bundle/Plugin. I think
>> this could be done using the qualifier replacement but I don't know how.
>
> Other than the field in the export wizard, all you can do is in the bundle's
> build.properties file, set the property
> qualifier=rev1234
>
> Headless builds allow more flexibility here.
>
> I don't know of any good ways to keep this property in-sync with the revision
> (and perhaps also keep it out of source control).
> Thomas Haskes wrote:
>> Hi all,
>>
>> I couldn't find anything on google, which is why I ask here:
>>
>> I would like to have eclipse autmatically add the svn revision number
>> to the bundle version when I export a Eclipse RCP Bundle/Plugin. I think
>> this could be done using the qualifier replacement but I don't know how.
>>
>> The Bundle jar file should look like this after exporting
>>
>> com.company.mybundle_1.0.0.rev1234
>>
>> and not
>>
>> com.company.mybundle_1.0.0.20091105-1535
>>
>> Currently we manually add the svn revision number to the bundle using
>> the qualifier replacement, but developers often forget to do that. If
>> that bundle is shipped and has a bug, we have no chance to figure out
>> what bundle revision was shipped (the current date that is added by the
>> qualifier replacement as standard doesn't help much).
>>
>> Does anyone know if that is possible and how it is done?
Similar to CVS, just google for svn:keywords.
HTH
Volker
--
* Volker Wegert * http://www.volker-wegert.de/contact *
"You need the computing power of a Pentium, 16 MB RAM and 1 GB Harddisk to run
Win95. It took the computing power of 3 Commodore 64 to fly to the
Moon. Something is wrong here, and it wasn't the Apollo."
|
|
|
|
Powered by
FUDForum. Page generated in 0.02507 seconds