Added org.jboss.netty.util.Version for easier runtime version identification

This commit is contained in:
Trustin Lee 2009-08-27 03:44:57 +00:00
parent b4f0b7360d
commit aee966287d

View File

@ -317,13 +317,14 @@
<executions>
<execution>
<id>write-version</id>
<phase>compile</phase>
<phase>validate</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo message="${project.version}, r${buildNumber}" file="${project.build.directory}/version.txt" />
<echo message="// DO NOT MODIFY - WILL BE OVERWRITTEN DURING THE BUILD PROCESS${line.separator}package org.jboss.netty.util;${line.separator}/** Provides the version information of Netty. */${line.separator}public final class Version {${line.separator} /** The version identifier. */${line.separator} public static final String ID = &quot;${project.version}-r${buildNumber}&quot;;${line.separator} private Version() { super(); }${line.separator}}${line.separator}" file="${basedir}/src/main/java/org/jboss/netty/util/Version.java" />
</tasks>
</configuration>
</execution>