This is the script on build.xml
, in a non maven project, on Netbeans, every time that I "Build", it is increased by 1.
<target name="-pre-compile" description="Sets the buildversion for the current build">
<propertyfile file="${src.dir}\recursos\language.properties">
<entry key="application.buildnumber" value="1" type="int" operation="+"/>
<entry key="application.builddate" value="now" type="date"/>
</propertyfile>
</target>
This is resources file that I use and I want Maven write it too: languange.properties
application.title=Software title...
#build version control
application.buildnumber=334
application.builddate=2016/09/07 15\:16
application.version=1
application.icon=/icons/icon.png
I already read about mojohaus but doesn't seems to fit what I need.
I know that I have to add a Plugin, with some Executions/Goals tags, but I don't know how to tell Maven that increase that property's value by 1.