[jboss-as7-dev] Printing project version number during AS start
Bob McWhirter
bmcwhirt at redhat.com
Tue Nov 1 12:30:53 EDT 2011
We (TorqueBox) use a .properties file copied by maven with filtering=true, substituting ${project.version}.
-Bob
On Nov 1, 2011, at 12:16 PM, Carlo de Wolf wrote:
> `git describe --tags --always` might be a nice value.
>
> Carlo
>
> On 11/01/2011 04:34 PM, 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
>>
>>
>>
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20111101/7c6d5530/attachment.html
More information about the jboss-as7-dev
mailing list