<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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>
</body>
</html>