<repository name="default" factory="org.nuxeo.ecm.core.storage.sql.ra.PoolingRepositoryFactory">
<pool minPoolSize="0" maxPoolSize="20" blockingTimeoutMillis="100" idleTimeoutMinutes="10"/>
<clustering enabled="false" delay="1000"/>
- <binaryStore path=""/> <!-- Default value will be repository/database name. Can be partial or full system path. Partial path is relative to Nuxeo's data dir -->
<xa-datasource>@XA_DATASOURCE@</xa-datasource> <!-- The transactional datasource for Nuxeo -->
<noDDL>false</noDDL>
<sqlInitFile>vcsconfig.sql.txt</sqlInitFile> <!-- see https://doc.nuxeo.com/display/ADMINDOC/VCS+Configuration#VCSConfiguration-DatabaseCreationOption -->
repoConfigDoc = XmlTools.setAttributeValue(repoConfigDoc, "/component", "name",
String.format("config:%s-repository", repositoryName));
- // Text substitutions within first extension point, "repository"
repoConfigDoc = XmlTools.setAttributeValue(repoConfigDoc,
- ConfigUtils.REPOSITORY_EXTENSION_POINT_XPATH + "/repository", "name",
+ ConfigUtils.CONFIGURATION_EXTENSION_POINT_XPATH + "/blobprovider", "name",
repositoryName);
+ repoConfigDoc = XmlTools.setElementValue(repoConfigDoc,
+ ConfigUtils.CONFIGURATION_EXTENSION_POINT_XPATH + "/blobprovider/property[@name='path']",
+ Tools.isBlank(binaryStorePath) ? repositoryName : binaryStorePath);
+
+ // Text substitutions within first extension point, "repository"
repoConfigDoc = XmlTools.setAttributeValue(repoConfigDoc,
ConfigUtils.REPOSITORY_EXTENSION_POINT_XPATH + "/repository", "name",
repositoryName);
- repoConfigDoc = XmlTools.setAttributeValue(repoConfigDoc,
- ConfigUtils.REPOSITORY_EXTENSION_POINT_XPATH + "/repository/binaryStore", "path",
- Tools.isBlank(binaryStorePath) ? repositoryName : binaryStorePath); // Can be either partial or full path. Partial path will be relative to Nuxeo's data directory
+// repoConfigDoc = XmlTools.setAttributeValue(repoConfigDoc,
+// ConfigUtils.REPOSITORY_EXTENSION_POINT_XPATH + "/repository/binaryStore", "path",
+// Tools.isBlank(binaryStorePath) ? repositoryName : binaryStorePath); // Can be either partial or full path. Partial path will be relative to Nuxeo's data directory
/* Create the JDBC url options if any exist */
String jdbcOptions = XmlTools.getElementValue(repoConfigDoc,
public static final String COMPONENT_EXTENSION_XPATH = "/component" + EXTENSION_XPATH;
public static final String DATASOURCE_EXTENSION_POINT_XPATH = String.format(COMPONENT_EXTENSION_XPATH, "datasources");
public static final String REPOSITORY_EXTENSION_POINT_XPATH = String.format(COMPONENT_EXTENSION_XPATH, "repository");
+ public static final String CONFIGURATION_EXTENSION_POINT_XPATH = String.format(COMPONENT_EXTENSION_XPATH, "configuration");
public static final String ELASTICSEARCH_INDEX_EXTENSION_XPATH = String.format(EXTENSION_XPATH, "elasticSearchIndex");
public static final String ELASTICSEARCH_EXTENSIONS_EXPANDER_STR = "%elasticSearchIndex_extensions%";