Re: [xwiki-devs] Set the standard java.lang.Package fields in the MANIFEST

2016-04-07 Thread Sergiu Dumitriu
On 04/07/2016 03:40 AM, Thomas Mortagne wrote:
> Hi devs,
> 
> The is a very easy way to get information about a jar trough Package
> class. Unfortunately we did not configured Maven to set most of the
> standard fields that Package expect (Specification-* and
> Implementation-* fields).
> 
> Once enabled it mean you can get the version of your module (or the
> module of any class as easily) by doing
> 
> this.getClass().getPackage().getImplementationVersion().
> 
> See https://maven.apache.org/shared/maven-archiver/examples/manifest.html
> for more.
> 
> WDYT about enabling that in Maven Jar plugin ?
> 
> Here is my +1.
> 

+1.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs


Re: [xwiki-devs] Set the standard java.lang.Package fields in the MANIFEST

2016-04-07 Thread Vincent Massol

> On 07 Apr 2016, at 10:01, Vincent Massol  wrote:
> 
>> On 07 Apr 2016, at 09:40, Thomas Mortagne  wrote:
>> 
>> Hi devs,
>> 
>> The is a very easy way to get information about a jar trough Package
>> class. Unfortunately we did not configured Maven to set most of the
>> standard fields that Package expect (Specification-* and
>> Implementation-* fields).
>> 
>> Once enabled it mean you can get the version of your module (or the
>> module of any class as easily) by doing
>> 
>>   this.getClass().getPackage().getImplementationVersion().
>> 
>> See https://maven.apache.org/shared/maven-archiver/examples/manifest.html
>> for more.
>> 
>> WDYT about enabling that in Maven Jar plugin ?
>> 
>> Here is my +1.
> 
> Ok for me, I don’t see any negative aspect. I imagine that you have a use 
> case?

Ok just saw the other mail you answered :)

Thanks
-Vincent

> Thanks
> -Vincent

___
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs


Re: [xwiki-devs] Set the standard java.lang.Package fields in the MANIFEST

2016-04-07 Thread Vincent Massol
> On 07 Apr 2016, at 09:40, Thomas Mortagne  wrote:
> 
> Hi devs,
> 
> The is a very easy way to get information about a jar trough Package
> class. Unfortunately we did not configured Maven to set most of the
> standard fields that Package expect (Specification-* and
> Implementation-* fields).
> 
> Once enabled it mean you can get the version of your module (or the
> module of any class as easily) by doing
> 
>this.getClass().getPackage().getImplementationVersion().
> 
> See https://maven.apache.org/shared/maven-archiver/examples/manifest.html
> for more.
> 
> WDYT about enabling that in Maven Jar plugin ?
> 
> Here is my +1.

Ok for me, I don’t see any negative aspect. I imagine that you have a use case?

Thanks
-Vincent

___
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs


Re: [xwiki-devs] Set the standard java.lang.Package fields in the MANIFEST

2016-04-07 Thread Marius Dumitru Florea
+1

Thanks,
Marius

On Thu, Apr 7, 2016 at 10:40 AM, Thomas Mortagne 
wrote:

> Hi devs,
>
> The is a very easy way to get information about a jar trough Package
> class. Unfortunately we did not configured Maven to set most of the
> standard fields that Package expect (Specification-* and
> Implementation-* fields).
>
> Once enabled it mean you can get the version of your module (or the
> module of any class as easily) by doing
>
> this.getClass().getPackage().getImplementationVersion().
>
> See https://maven.apache.org/shared/maven-archiver/examples/manifest.html
> for more.
>
> WDYT about enabling that in Maven Jar plugin ?
>
> Here is my +1.
>
> --
> Thomas Mortagne
> ___
> devs mailing list
> devs@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
___
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs


[xwiki-devs] Set the standard java.lang.Package fields in the MANIFEST

2016-04-07 Thread Thomas Mortagne
Hi devs,

The is a very easy way to get information about a jar trough Package
class. Unfortunately we did not configured Maven to set most of the
standard fields that Package expect (Specification-* and
Implementation-* fields).

Once enabled it mean you can get the version of your module (or the
module of any class as easily) by doing

this.getClass().getPackage().getImplementationVersion().

See https://maven.apache.org/shared/maven-archiver/examples/manifest.html
for more.

WDYT about enabling that in Maven Jar plugin ?

Here is my +1.

-- 
Thomas Mortagne
___
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs