Merge pull request #496 from tartard/solr-cron

Make the Solr indexation frequency customizable
This commit is contained in:
Jose Luis Osorno
2019-01-22 10:01:15 +01:00
committed by GitHub

View File

@@ -381,6 +381,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;
/**
* Tomcat version to be used in the Maven Tomcat Plugin. If this parameter is not set, then the
* default Tomcat version will be used (it depends on the version of the Tomcat Maven Plugin).
@@ -568,8 +574,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