11-26-2014 06:52 AM
<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>
12-08-2014 12:41 AM
12-10-2014 06:55 AM
<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>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.