<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">We (TorqueBox) use a .properties file copied by maven with filtering=true, substituting ${project.version}.<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-Bob</div><div><br></div><div><div><div>On Nov 1, 2011, at 12:16 PM, Carlo de Wolf wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div text="#000000" bgcolor="#FFFFFF">
`git describe --tags --always` might be a nice value.<br>
<br>
Carlo<br>
<br>
On 11/01/2011 04:34 PM, Anil Saldhana wrote:
<blockquote cite="mid:4EB0116E.1000400@redhat.com" type="cite">Hi
all,
<br>
printing something like the following:
<br>
INFO: Infinispan version: Infinispan 'Ursus' 4.2.1.FINAL
<br>
<br>
is very useful when debugging user's issues.
<br>
<br>
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.
<br>
<br>
Jesper says:
<br>
===========
<br>
(10:32:45 AM) jpederse: anilsaldhana: our Version.java is
generated as part of the build - and the version identifiers
substituted
<br>
(10:33:32 AM) jpederse: anilsaldhana:
<a class="moz-txt-link-freetext" href="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</a>
<a class="moz-txt-link-rfc2396E" href="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></a>
<br>
===========
<br>
<br>
Regards,
<br>
Anil
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
jboss-as7-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>jboss-as7-dev mailing list<br><a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/jboss-as7-dev<br></blockquote></div><br></div></body></html>