<target name="deploy" depends="package"\r
description="deploy nuxeo server libs to ${jee.server.cspace}">\r
<copy todir="${jee.server.cspace}/nuxeo-server">\r
- <fileset dir="${basedir}/nuxeo-server/${nuxeo.release}"/>\r
- </copy>\r
- <copy todir="${jee.server.cspace}/nuxeo-server/config" overwrite="true">\r
- <fileset dir="${basedir}/nuxeo-server/${nuxeo.release}/config"/>\r
- <filterset>\r
- <filter token="DB" value="${db}" />\r
- <filter token="DB_URL" value="jdbc:${db}://${db.host}:${db.port}/nuxeo"/>\r
- <filter token="DB_SERVER_HOSTNAME" value="${db.host}"/>\r
- <filter token="XA_DATASOURCE" value="${db.xaDataSource}" />\r
- <filter token="NUXEO_USER" value="${db.nuxeo.user}" />\r
- <filter token="NUXEO_PW" value="${db.nuxeo.user.password}" />\r
- </filterset>\r
+ <fileset dir="${basedir}/nuxeo-server/${nuxeo.release}">\r
+ <exclude name="**/config/*-repo-config.xml"/>\r
+ </fileset>\r
</copy>\r
+ <echo message="Copying Nuxeo prototype repo config file ..."/>\r
+ <copy file="${basedir}/nuxeo-server/${nuxeo.release}/config/proto-repo-config.xml"\r
+ todir="${jee.server.cspace}/cspace/services" overwrite="true"/>\r
<ant antfile="nuxeo-platform-collectionspace/build.xml" target="deploy" inheritall="false"/>\r
<ant antfile="nuxeo-platform-listener/build.xml" target="deploy" inheritall="false"/>\r
<!-- Disabled due to integration issues between ImageMagick and Ghostscript on Linux systems \r
<delete dir="${jee.server.cspace}/nuxeo-server/bundles"/>\r
<delete dir="${jee.server.cspace}/nuxeo-server/config"/>\r
<delete dir="${jee.server.cspace}/nuxeo-server/lib"/>\r
+ <delete file="${jee.server.cspace}/cspace/config/services/proto-repo-config.xml" failonerror="false"/>\r
<ant antfile="nuxeo-platform-collectionspace/build.xml" target="undeploy" inheritall="false"/>\r
<ant antfile="nuxeo-platform-listener/build.xml" target="undeploy" inheritall="false"/>\r
<ant antfile="nuxeo-platform-quote/build.xml" target="undeploy" inheritall="false"/>\r
import java.io.File;
public interface JEEServerDeployment {
+ final public static String CONFIG_DIR_NAME = "config";
final public static String CSPACE_DIR_NAME = "cspace";
- final public static String CONFIG_DIR_PATH = "config" + File.separator + "services";
+ final public static String SERVICES_DIR_NAME = "services";
+ final public static String CONFIG_DIR_PATH = CONFIG_DIR_NAME + File.separator + SERVICES_DIR_NAME;
+
+ final public static String CSPACE_SERVICES_DIR_PATH = CSPACE_DIR_NAME + File.separator + SERVICES_DIR_NAME;
final public static String TENANT_BINDINGS_FILENAME_PREFIX = "tenant-bindings";
final public static String TENANT_BINDINGS_PROTOTYPE_FILENAME = TENANT_BINDINGS_FILENAME_PREFIX + "-proto.xml";
public final static String NUXEO_CLIENT_DIR = "nuxeo-client";
public final static String NUXEO_SERVER_DIR = "nuxeo-server";
- public final static String NUXEO_CONFIG_DIR = "config";
+ public final static String NUXEO_CONFIG_DIR = CONFIG_DIR_NAME;
public final static String NUXEO_SERVER_CONFIG_DIR = NUXEO_SERVER_DIR + File.separator + NUXEO_CONFIG_DIR;
public final static String NUXEO_REPO_CONFIG_FILENAME_SUFFIX = "-repo-config.xml";
public final static String NUXEO_PROTOTYPE_CONFIG_FILENAME = "proto" + NUXEO_REPO_CONFIG_FILENAME_SUFFIX;
public String getServerRootDir() {\r
return serverRootDir;\r
}\r
+\r
+ public String getCspaceServicesConfigDir() {\r
+ return getServerRootDir() + File.separator + JEEServerDeployment.CSPACE_SERVICES_DIR_PATH;\r
+ }\r
\r
public String getNuxeoConfigDir() {\r
return getServerRootDir() + File.separator + JEEServerDeployment.NUXEO_SERVER_CONFIG_DIR;\r
\r
// Get the prototype copy of the Nuxeo repository config file.\r
File prototypeNuxeoConfigFile =\r
- new File(getNuxeoConfigDir() + File.separator + getNuxeoProtoConfigFilename());\r
+ new File(getCspaceServicesConfigDir() + File.separator + getNuxeoProtoConfigFilename());\r
// FIXME: Consider checking for the presence of existing configuration files,\r
// rather than always failing outright if the prototype file for creating\r
// new or updated files can't be located.\r