added default purge configuration

merge-requests/1/head
ayyoob 8 years ago
parent fa21f8cfd6
commit 2ed4b2dfb6

@ -168,6 +168,35 @@
</replacements>
</configuration>
</execution>
<!-- Replace the purge config in the analytics-co.xml file -->
<execution>
<id>replace-for-analytics-config</id>
<phase>prepare-package</phase>
<goals>
<goal>replace</goal>
</goals>
<configuration>
<file>${basedir}/../p2-profile/analytics-profile/target/wso2carbon-core-${carbon.kernel.version}/wso2/conf/analytics/analytics-config.xml</file>
<replacements>
<replacement>
<xpath>/analytics-dataservice-configuration/analytics-data-purging/purging-enable</xpath>
<token>(false)</token>
<value>true</value>
</replacement>
<replacement>
<xpath>/analytics-dataservice-configuration/analytics-data-purging/purge-include-tables/table</xpath>
<token>(.\*)</token>
<value>IOT_PER_DEVICE_STREAM.*</value>
</replacement>
<replacement>
<xpath>/analytics-dataservice-configuration/analytics-data-purging/data-retention-days</xpath>
<token>(365)</token>
<value>31</value>
</replacement>
</replacements>
</configuration>
</execution>
</executions>
</plugin>

Loading…
Cancel
Save