Commit f0210c17 authored by a.hausherr's avatar a.hausherr
Browse files

Make the Solr indexation frequency customizable.

parent 865ae6fd
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -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