mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-10-01 14:41:57 +00:00
Merge pull request #496 from tartard/solr-cron
Make the Solr indexation frequency customizable
This commit is contained in:
@@ -381,6 +381,12 @@ public abstract class AbstractRunMojo extends AbstractMojo {
|
|||||||
@Parameter(property = "solr.home", defaultValue = "${project.basedir}/${alfresco.data.location}/solr")
|
@Parameter(property = "solr.home", defaultValue = "${project.basedir}/${alfresco.data.location}/solr")
|
||||||
protected String solrHome;
|
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
|
* 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).
|
* 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("replacement"),
|
||||||
element(name("token"), "alfresco.secureComms=https"),
|
element(name("token"), "alfresco.secureComms=https"),
|
||||||
element(name("value"), "alfresco.secureComms=none")
|
element(name("value"), "alfresco.secureComms=none")
|
||||||
|
),
|
||||||
|
element(name("replacement"),
|
||||||
|
element(name("token"), "alfresco.cron=0/15 * * * * ? *"),
|
||||||
|
element(name("value"), "alfresco.cron=" + solrCron)
|
||||||
)
|
)
|
||||||
|
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
execEnv
|
execEnv
|
||||||
|
Reference in New Issue
Block a user