[jboss-as7-dev] Printing project version number during AS start

Anil Saldhana Anil.Saldhana at redhat.com
Tue Nov 1 11:44:29 EDT 2011


Entire conversation:

(10:26:54 AM) anilsaldhana: what is the best way to deal with printing 
project version number when AS7 starts?
(10:27:27 AM) anilsaldhana: the reason I am asking is when we do mvn 
releases, if the Version.java does not get updated, then its pointless. :)
(10:27:50 AM) ***anilsaldhana is looking at suggestions from other projects
(10:32:45 AM) jpederse: anilsaldhana: our Version.java is generated as 
part of the build - and the version identifiers substituted
(10:33:08 AM) anilsaldhana: jpederse: I am starting a thread.
(10:33:32 AM) jpederse: anilsaldhana: 
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/Version.java.in?revision=108434&view=markup
(10:34:44 AM) anilsaldhana: jpederse: the @version is got from manifesT?
(10:35:28 AM) jpederse: anilsaldhana: from a property in the build 
environment
(10:35:53 AM) jpederse: anilsaldhana: manifests generated too
(10:35:55 AM) anilsaldhana: jpederse: IJ build env or the AS build env?
(10:36:02 AM) jpederse: anilsaldhana: this is IJ
(10:36:41 AM) jpederse: anilsaldhana: aka "JBoss IronJacamar 
1.0.6-SNAPSHOT" on my machine currently


On 11/01/2011 10:34 AM, Anil Saldhana wrote:
> Hi all,
>   printing something like the following:
> INFO: Infinispan version: Infinispan 'Ursus' 4.2.1.FINAL
>
> is very useful when debugging user's issues.
>
> I am interested in how project's do this.  I can create a Version.java 
> but if maven releases do not change the value, then it is pointless.
>
> Jesper says:
> ===========
> (10:32:45 AM) jpederse: anilsaldhana: our Version.java is generated as 
> part of the build - and the version identifiers substituted
> (10:33:32 AM) jpederse: anilsaldhana: 
> http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/Version.java.in?revision=108434&view=markup 
> <http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-jca/trunk/core/src/main/java/org/jboss/jca/Version.java.in?revision=108434&view=markup>
> ===========
>
> Regards,
> Anil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20111101/35ac8edc/attachment.html 


More information about the jboss-as7-dev mailing list