Workaround for Maven build problem in some M2 versions

This commit is contained in:
Trustin Lee 2009-08-27 04:03:26 +00:00
parent cc386efd62
commit 4c42b49ebd

View File

@ -323,7 +323,7 @@
</goals> </goals>
<configuration> <configuration>
<tasks> <tasks>
<echo message="${project.version}, r${buildNumber}" file="${project.build.directory}/version.txt" /> <echo message="${project.version}, r${buildNumber}" file="${basedir}/target/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} /** Prints out the version identifier to stdout. */${line.separator} public static void main(String[] args) { System.out.println(ID); }${line.separator} private Version() { super(); }${line.separator}}${line.separator}" file="${basedir}/src/main/java/org/jboss/netty/util/Version.java" /> <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} /** Prints out the version identifier to stdout. */${line.separator} public static void main(String[] args) { System.out.println(ID); }${line.separator} private Version() { super(); }${line.separator}}${line.separator}" file="${basedir}/src/main/java/org/jboss/netty/util/Version.java" />
</tasks> </tasks>
</configuration> </configuration>