mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-07-31 17:39:14 +00:00
Make the Solr indexation frequency customizable.
This commit is contained in:
@@ -351,6 +351,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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maven GAV properties for customized alfresco.war, share.war, activiti-app.war
|
* Maven GAV properties for customized alfresco.war, share.war, activiti-app.war
|
||||||
* Used by the Maven Tomcat 7 Plugin
|
* Used by the Maven Tomcat 7 Plugin
|
||||||
@@ -531,8 +537,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