Wrong vcs revision in properties file after commiting by teamcity
I have pom:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>copy-rpms</id>
<phase>package</phase>
<configuration>
<tasks>
<mkdir dir="${dstName}"/>
<copy todir="${dstName}"
includeemptydirs="true">
<fileset dir="target/rpm/iqbuzz-saas/RPMS/noarch"/>
</copy>
<propertyfile file="../server/src/main/resources/buildnumber.properties">
<entry key="buildnumber" type="int" operation="=" value="${build.number}"/>
<entry key="revision" type="int" operation="=" value="${build.vcs.number.INTERNAL}"/>
<entry key="minor" type="int" operation="+" value="1" default="0"/>
</propertyfile>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
And after teamcity commits buildnumber.properties file have next property:
revision=8\u00a0772
we use SVN. Why revision number is corrupted?
Please sign in to leave a comment.
I found an error.
There is pattern value for entry tag.
<entry key="revision" type="int" operation="=" value="${build.vcs.number.INTERNAL}" pattern="0"/>