Make the Solr indexation frequency customizable.

This commit is contained in:
a.hausherr
2018-04-06 15:21:05 +02:00
parent 865ae6fd38
commit f0210c173a

View File

@@ -351,6 +351,12 @@ public abstract class AbstractRunMojo extends AbstractMojo {
@Parameter(property = "solr.home", defaultValue = "${project.basedir}/${alfresco.data.location}/solr")
protected String solrHome;
/**
* Solr indexation frequency. It is customizable to speed up integration tests execution.
*/
@Parameter(property = "solr.alfresco.cron", defaultValue = "0/15 * * * * ? *")
protected String solrCron;
/**
* Maven GAV properties for customized alfresco.war, share.war, activiti-app.war
* Used by the Maven Tomcat 7 Plugin
@@ -531,8 +537,11 @@ public abstract class AbstractRunMojo extends AbstractMojo {
element(name("replacement"),
element(name("token"), "alfresco.secureComms=https"),
element(name("value"), "alfresco.secureComms=none")
),
element(name("replacement"),
element(name("token"), "alfresco.cron=0/15 * * * * ? *"),
element(name("value"), "alfresco.cron=" + solrCron)
)
)
),
execEnv