collectionspace services\r
</description>\r
<!-- set global properties for this build -->\r
+ <property name="services.trunk" value="../.."/>\r
<property file="build.properties" />\r
<property name="src" location="src"/>\r
\r
<os family="windows" />\r
</condition>\r
\r
- <target name="setup">\r
+ <target name="install"\r
+ description="Installer: Copy artifacts for CollectionSpace Nuxeo doctypes">\r
+ <copy todir="${jboss.deploy.nuxeo.system}">\r
+ <fileset file="${services.trunk}/${dist.deploy.nuxeo.system}/*.jar"/>\r
+ </copy>\r
+ <!-- cspace\server\cspace --> \r
+ <copy todir="${jboss.server.cspace}/cspace">\r
+ <fileset dir="${services.trunk}/${dist.server.cspace}/cspace"/>\r
+ </copy>\r
+ <!-- cspace\server\cspace\deploy --> \r
+ <copy todir="${jboss.server.cspace}/deploy">\r
+ <fileset dir="${services.trunk}/${dist.server.cspace}/deploy">\r
+ <include name="*"/>\r
+ </fileset>\r
+ </copy>\r
+ <!-- cspace\server\cspace\lib --> \r
+ <copy todir="${jboss.server.cspace}/lib">\r
+ <fileset dir="${services.trunk}/${dist.server.cspace}/lib"/>\r
+ </copy> \r
+ <!-- cspace\server\cspace\nuxeo-client\lib --> \r
+ <copy todir="${jboss.server.cspace}/nuxeo-client/lib">\r
+ <fileset dir="${services.trunk}/${dist.server.cspace}/nuxeo-client/lib">\r
+ <include name="*.jar"/>\r
+ </fileset>\r
+ </copy>\r
+ <!-- cspace\server\cspace\nuxeo-client\lib (5.2GA) --> \r
+ <copy todir="${jboss.server.cspace}/nuxeo-client/lib">\r
+ <fileset dir="${services.trunk}/${dist.server.cspace}/nuxeo-client/lib/${nuxeo.release}">\r
+ <include name="*.jar"/>\r
+ </fileset>\r
+ </copy> \r
+ </target> \r
+ \r
+ <target name="config" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing CollectionSpace Service's 'config' target." />\r
+ </exec>\r
+ </target> \r
+ \r
+ <target name="predeploy">\r
<exec executable="echo">\r
- <arg value="Executing installer's 'setup' target." />\r
+ <arg value="Installer: Executing installer's 'predeploy' target." />\r
</exec>\r
\r
<exec executable="echo">\r
</classpath>\r
</sql>\r
\r
- <!-- Now, invoke the "setup" target on each of the services' install directories -->\r
- <ant antfile="services/build.xml" target="setup" inheritAll="false"/> \r
+ <!-- Now, invoke the "predeploy" target on each of the services' install directories -->\r
+ <ant antfile="services/build.xml" target="predeploy" inheritAll="false"/> \r
</target>\r
+ \r
+ <target name="deploy" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing CollectionSpace Service's 'deploy' target." />\r
+ </exec>\r
+ </target> \r
\r
- <target name="init">\r
+ <target name="postdeploy">\r
<exec executable="echo">\r
- <arg value="Executing installer's 'init' target." />\r
+ <arg value="Installer: Executing installer's 'postdeploy' target." />\r
</exec>\r
- <!-- Now, invoke the "setup" target on each of the services' install directories -->\r
- <ant antfile="services/build.xml" target="init" inheritAll="false"/> \r
+ <!-- Now, invoke the "predeploy" target on each of the services' install directories -->\r
+ <ant antfile="services/build.xml" target="postdeploy" inheritAll="false"/> \r
</target>\r
\r
</project>\r
<os family="windows" />\r
</condition>\r
\r
- <target name="setup" description="">\r
- <tstamp/>\r
+ <target name="install" description="">\r
<exec executable="echo">\r
- <arg value="Installer: Executing CollectionObject Service's 'setup' target." />\r
+ <arg value="Installer: Executing CollectionObject Service's 'install' target." />\r
</exec>\r
+ <copy todir="${jboss.deploy.nuxeo.system}">\r
+ <fileset file="nuxeo/*.jar"/>\r
+ </copy>\r
</target>\r
\r
- <target name="takedown" description="">\r
- <tstamp/>\r
+ <target name="config" description="">\r
<exec executable="echo">\r
- <arg value="Installer: Executing CollectionObject Service's 'takedown' target." />\r
+ <arg value="Installer: Executing CollectionObject Service's 'config' target." />\r
+ </exec>\r
+ </target>\r
+\r
+ <target name="predeploy" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing CollectionObject Service's 'predeploy' target." />\r
+ </exec>\r
+ </target>\r
+\r
+ <target name="deploy" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing CollectionObject Service's 'deploy' target." />\r
</exec>\r
</target>\r
\r
- <target name="init" description="">\r
+ <target name="postdeploy" description="">\r
<exec executable="echo">\r
<arg value="Installer: Executing CollectionObject Service's 'init' target." />\r
</exec> \r
<os family="windows" />\r
</condition>\r
\r
- <target name="setup">\r
+ <target name="install" description="">\r
<exec executable="echo">\r
- <arg value="Installer: Executing ID Service's 'setup' target for the ID Service." />\r
+ <arg value="Installer: Executing ID Service's 'install' target." />\r
+ </exec>\r
+ </target>\r
+\r
+ <target name="config" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing ID Service's 'config' target." />\r
+ </exec>\r
+ </target>\r
+\r
+ <target name="predeploy">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing ID Service's 'predeploy' target for the ID Service." />\r
</exec>\r
\r
<exec executable="echo">\r
</sql>\r
\r
<exec executable="echo">\r
- <arg value="Loading tables for the ID Service." />\r
+ <arg value="Installer: Loading tables for the ID Service." />\r
</exec> \r
\r
<!-- Load the tables -->\r
</sql> \r
</target>\r
\r
- <target name="init" description="">\r
+ <target name="deploy" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing ID Service's 'deploy' target." />\r
+ </exec>\r
+ </target>\r
+ \r
+ <target name="postdeploy" description="">\r
<exec executable="echo">\r
<arg value="Installer: Executing ID Service's 'init' target." />\r
</exec>\r
<description>\r
</description>\r
<!-- set global properties for this build -->\r
- <property name="services.trunk" value=".."/>\r
- <property file="${services.trunk}/build.properties" />\r
+ <property name="installer.trunk" value=".."/>\r
+ <property name="services.trunk" value="../../.."/>\r
+ <property file="${installer.trunk}/build.properties" />\r
<property name="mvn.opts" value="" />\r
<property name="src" location="src"/>\r
\r
<condition property="osfamily-windows">\r
<os family="windows" />\r
</condition>\r
+ \r
+ <target name="install"\r
+ description="Copy artifacts for CollectionSpace Nuxeo doctypes">\r
+ <copy todir="${jboss.deploy.nuxeo.system}">\r
+ <fileset file="${services.trunk}/${dist.deploy.nuxeo.system}/*.jar"/>\r
+ </copy> \r
+ </target>\r
+ \r
+ <target name="config" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing CollectionSpace Service's 'config' target." />\r
+ </exec>\r
+ </target> \r
\r
<!-- this target is called in order based on the dependencies between the services -->\r
- <target name="setup" description="">\r
+ <target name="predeploy" description="">\r
<exec executable="echo">\r
- <arg value="Installer: Executing services 'setup' target." />\r
+ <arg value="Installer: Executing services 'predeploy' target." />\r
</exec> \r
<!--\r
<ant antfile="common/build.xml" target="setup" inheritAll="false"/>\r
<ant antfile="authentication/build.xml" target="setup" inheritAll="false"/>\r
<ant antfile="relation/build.xml" target="setup" inheritAll="false"/>\r
--> \r
- <ant antfile="id/build.xml" target="setup" inheritAll="false"/>\r
- <ant antfile="collectionobject/build.xml" target="setup" inheritAll="false"/>\r
- <ant antfile="vocabulary/build.xml" target="setup" inheritAll="false"/>\r
+ <ant antfile="id/build.xml" target="predeploy" inheritAll="false"/>\r
+ <ant antfile="collectionobject/build.xml" target="predeploy" inheritAll="false"/>\r
+ <ant antfile="vocabulary/build.xml" target="predeploy" inheritAll="false"/>\r
<!-- \r
<ant antfile="intake/build.xml" target="setup" inheritAll="false"/>\r
<ant antfile="acquisition/build.xml" target="setup" inheritAll="false"/>\r
--> \r
</target>\r
\r
- <!-- this target is called in revese order of deploy targets -->\r
- <target name="takedown" description="">\r
- <ant antfile="JaxRsServiceProvider/build.xml" target="takedown" inheritAll="false"/>\r
- <ant antfile="vocabulary/build.xml" target="takedown" inheritAll="false"/>\r
- <ant antfile="acquisition/build.xml" target="takedown" inheritAll="false"/>\r
- <ant antfile="intake/build.xml" target="takedown" inheritAll="false"/>\r
- <ant antfile="collectionobject/build.xml" target="takedown" inheritAll="false"/>\r
- <ant antfile="id/build.xml" target="takedown" inheritAll="false"/>\r
- <ant antfile="relation/build.xml" target="takedown" inheritAll="false"/>\r
- <ant antfile="authentication/build.xml" target="takedown" inheritAll="false"/>\r
- <ant antfile="common/build.xml" target="takedown" inheritAll="false"/>\r
+ <target name="deploy" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing CollectionSpace Service's 'deploy' target." />\r
+ </exec>\r
</target>\r
\r
- <target name="init" description="">\r
+ <target name="postdeploy" description="">\r
<exec executable="echo">\r
- <arg value="Executing installer's services 'init' target." />\r
+ <arg value="Executing CollectionSpace Service's 'postdeploy' target." />\r
</exec> \r
<!--\r
<ant antfile="common/build.xml" target="setup" inheritAll="false"/>\r
<ant antfile="authentication/build.xml" target="setup" inheritAll="false"/>\r
<ant antfile="relation/build.xml" target="setup" inheritAll="false"/>\r
--> \r
- <ant antfile="id/build.xml" target="init" inheritAll="false"/>\r
- <ant antfile="collectionobject/build.xml" target="init" inheritAll="false"/>\r
- <ant antfile="vocabulary/build.xml" target="init" inheritAll="false"/>\r
+ <ant antfile="id/build.xml" target="postdeploy" inheritAll="false"/>\r
+ <ant antfile="collectionobject/build.xml" target="postdeploy" inheritAll="false"/>\r
+ <ant antfile="vocabulary/build.xml" target="postdeploy" inheritAll="false"/>\r
<!-- \r
<ant antfile="intake/build.xml" target="setup" inheritAll="false"/>\r
<ant antfile="acquisition/build.xml" target="setup" inheritAll="false"/>\r
</exec>\r
</target>\r
\r
-\r
<target name="install" depends="package,install-unix,install-windows"\r
description="Install" />\r
<target name="install-unix" if="osfamily-unix">\r
--- /dev/null
+\r
+<project name="vocabulary" default="package" basedir=".">\r
+ <description>\r
+ vocabulary service\r
+ </description>\r
+ <!-- set global properties for this build -->\r
+ <property name="services.trunk" value="../.."/>\r
+ <property file="${services.trunk}/build.properties" />\r
+ <property name="mvn.opts" value="" />\r
+ <property name="src" location="src"/>\r
+\r
+ <condition property="osfamily-unix">\r
+ <os family="unix" />\r
+ </condition>\r
+ <condition property="osfamily-windows">\r
+ <os family="windows" />\r
+ </condition>\r
+ \r
+ <target name="install" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing Vocabulary Service's 'install' target." />\r
+ </exec>\r
+ <!-- Copy the Nuxeo DocType jar files to the Nuxeo app server domain -->\r
+ <copy todir="${jboss.deploy.nuxeo.system}">\r
+ <fileset file="nuxeo/*.jar"/>\r
+ </copy> \r
+ </target> \r
+\r
+ <target name="config" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing Vocabulary Service's 'config' target." />\r
+ </exec>\r
+ </target>\r
+ \r
+ <target name="predeploy" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing Vocabulary Service's 'predeploy' target." />\r
+ </exec>\r
+ </target> \r
+ \r
+ <target name="deploy" description="">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing Vocabulary Service's 'deploy' target." />\r
+ </exec>\r
+ </target>\r
+ \r
+ <target name="postdeploy">\r
+ <exec executable="echo">\r
+ <arg value="Installer: Executing installer's 'postdeploy' target for the Vocabulary Service." />\r
+ </exec> \r
+ <exec executable="echo">\r
+ <arg value="Importing necessary vocabularies." />\r
+ </exec> \r
+ <java jar="./init/collectionspace-services-vocabulary-importer-jar-with-dependencies.jar"\r
+ fork="true"\r
+ failonerror="true">\r
+ <arg value="-h"/>\r
+ </java> \r
+ </target>\r
+ \r
+\r
+</project>\r