As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<target name="increment-build-number"> <property file="config/alfresco/module/alfresco/module.properties"/> <propertyfile file="config/alfresco/module/alfresco/module.properties"> <entry key="build.number" type="int" default="0" operation="+"/> <entry key="module.version" type="string" operation="=" value="${major.version}.${minor.version}.${build.number}"/> </propertyfile> </target>
<build> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <phase>generate-sources</phase> <configuration> <!– Place any ant task here. You can add anything you can add between <target> and </target> in a build.xml. –> <target name="increment-build-number"> <echo>Incrementing Build Number and Updating module.properties file.</echo> <property file="src/main/amp/module.properties" /> <propertyfile file="src/main/amp/module.properties"> <entry key="build.number" type="int" default="0" operation="+" /> <entry key="module.version" type="string" operation="=" value="${major.version}.${minor.version}.${build.number}" /> </propertyfile> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins>