description="Installer: Creates an installer distribution for the CollectionSpace services.">\r
<!-- copy install scripts, etc. -->\r
<copy todir="${basedir}/${dist.installer}">\r
+ <fileset file="${basedir}/build.properties"/>\r
<fileset dir="installer"/>\r
<fileset dir="${src}/main/resources/scripts"/> \r
</copy>\r
+++ /dev/null
-#cspace\r
-cspace.release=0.2\r
-cspace.services.release=cspace-services-${cspace.release}\r
-cspace.services.war=cspace-services.war\r
-domain.cspace=cspace\r
-domain.nuxeo=default\r
-\r
-#nuxeo\r
-#nuxeo.release=5.2.M4\r
-nuxeo.release=5.2.GA\r
-nuxeo.ear=nuxeo.ear\r
-nuxeo.system=${nuxeo.ear}/system\r
-\r
-#distribution\r
-dist=dist\r
-dist.cspace=${dist}/cspace\r
-dist.nuxeo=${dist}/nuxeo\r
-\r
-#dist cspace domain\r
-dist.domain.cspace=${domain.cspace}\r
-dist.server.cspace=${dist.cspace}/server/${jboss.domain.cspace}\r
-dist.deploy.cspace=${dist.server.cspace}/deploy\r
-dist.lib.cspace=${dist.server.cspace}/lib\r
-\r
-#dist nuxeo domain\r
-dist.domain.nuxeo=${domain.nuxeo}\r
-dist.server.nuxeo=${dist.nuxeo}/server/${jboss.domain.nuxeo}\r
-dist.deploy.nuxeo=${dist.server.nuxeo}/deploy\r
-dist.lib.nuxeo=${dist.server.nuxeo}/lib\r
-dist.deploy.nuxeo.system=${dist.deploy.nuxeo}/${nuxeo.system}\r
-\r
-#jboss\r
-#assumption: both nuxeo and cspace domains are using the same JBoss installation\r
-jboss.release=jboss-4.2.3.GA\r
-jboss.dir=C:/dev/${jboss.release}\r
-jboss.home=${jboss.dir}\r
-\r
-#jboss cspace domain\r
-jboss.domain.cspace=${domain.cspace}\r
-jboss.server.cspace=${jboss.home}/server/${jboss.domain.cspace}\r
-jboss.deploy.cspace=${jboss.server.cspace}/deploy\r
-jboss.lib.cspace=${jboss.server.cspace}/lib\r
-jboss.deploy.cspace.services=${jboss.server.cspace}/deploy/${cspace.services.war}\r
-\r
-#jboss nuxeo domain\r
-jboss.domain.nuxeo=${domain.nuxeo}\r
-jboss.server.nuxeo=${jboss.home}/server/${jboss.domain.nuxeo}\r
-jboss.deploy.nuxeo=${jboss.server.nuxeo}/deploy\r
-jboss.lib.nuxeo=${jboss.server.nuxeo}/lib\r
-jboss.deploy.nuxeo.system=${jboss.deploy.nuxeo}/${nuxeo.system}\r
-\r
\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
<fileset dir="${services.trunk}/${dist.server.cspace}/nuxeo-client/lib/${nuxeo.release}">\r
<include name="*.jar"/>\r
</fileset>\r
- </copy> \r
+ </copy>\r
+ <!-- Now execute the "install" target on the services -->\r
+ <ant antfile="services/build.xml" target="install" inheritAll="false"/> \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 name="config" description="" depends="install">\r
+ <!-- Now execute the "install" target on the services -->\r
+ <ant antfile="services/build.xml" target="config" inheritAll="false"/> \r
</target> \r
\r
- <target name="predeploy">\r
- <exec executable="echo">\r
- <arg value="Installer: Executing installer's 'predeploy' target." />\r
- </exec>\r
- \r
+ <target name="predeploy" depends="config">\r
<exec executable="echo">\r
- <arg value="Creating necessary databases and associated users and privileges." />\r
+ <arg value="Installer: Creating necessary databases and associated users and privileges." />\r
</exec>\r
<sql driver="com.mysql.jdbc.Driver"\r
url="jdbc:mysql://localhost:3306/cspace"\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
+ <!-- Now, invoke the "deploy" target on each of the services' install directories -->\r
+ <ant antfile="services/build.xml" target="deploy" inheritAll="false"/> \r
</target> \r
\r
<target name="postdeploy">\r
<exec executable="echo">\r
<arg value="Installer: Executing installer's 'postdeploy' target." />\r
</exec>\r
- <!-- Now, invoke the "predeploy" target on each of the services' install directories -->\r
- <ant antfile="services/build.xml" target="postdeploy" inheritAll="false"/> \r
+ <!-- Now, invoke the "postdeploy" target on each of the services' install directories -->\r
+ <ant antfile="services/build.xml" target="postdeploy" inheritAll="false"/>\r
</target>\r
\r
</project>\r
</copy>\r
</target>\r
\r
- <target name="config" description="">\r
+ <target name="config" description="" depends="install">\r
<exec executable="echo">\r
<arg value="Installer: Executing CollectionObject Service's 'config' target." />\r
</exec>\r
</target>\r
\r
- <target name="predeploy" description="">\r
+ <target name="predeploy" description="" depends="config">\r
<exec executable="echo">\r
<arg value="Installer: Executing CollectionObject Service's 'predeploy' target." />\r
</exec>\r
</exec>\r
</target>\r
\r
- <target name="config" description="">\r
+ <target name="config" description="" depends="install">\r
<exec executable="echo">\r
<arg value="Installer: Executing ID Service's 'config' target." />\r
</exec>\r
</target>\r
\r
- <target name="predeploy">\r
+ <target name="predeploy" depends="config">\r
<exec executable="echo">\r
<arg value="Installer: Executing ID Service's 'predeploy' target for the ID Service." />\r
</exec>\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
+ <exec executable="echo">\r
+ <arg value="Installer: Executing CollectionSpace Service's 'install' target." />\r
+ </exec>\r
+ <ant antfile="id/build.xml" target="install" inheritAll="false"/>\r
+ <ant antfile="collectionobject/build.xml" target="install" inheritAll="false"/>\r
+ <ant antfile="vocabulary/build.xml" target="install" inheritAll="false"/>\r
</target>\r
\r
- <target name="config" description="">\r
+ <target name="config" description="" depends="install">\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="predeploy" description="">\r
+ <target name="predeploy" description="" depends="config">\r
<exec executable="echo">\r
<arg value="Installer: Executing services 'predeploy' target." />\r
</exec> \r
<target name="dist_installer" depends="package"\r
description="distribute vocabulary service importer tool"> \r
<!-- copy install scripts, etc. -->\r
- <copy todir="${services.trunk}/${dist.installer.services}/vocabulary/init">\r
+ <copy todir="${services.trunk}/${dist.installer.services}/vocabulary/postdeploy">\r
<fileset dir="${basedir}/target">\r
<include name="*with-dependencies*.jar"/>\r
</fileset>\r
</copy> \r
</target> \r
\r
- <target name="config" description="">\r
+ <target name="config" description="" depends="install">\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
+ <target name="predeploy" description="" depends="config">\r
<exec executable="echo">\r
<arg value="Installer: Executing Vocabulary Service's 'predeploy' target." />\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
+ <java jar="./postdeploy/collectionspace-services-vocabulary-importer-jar-with-dependencies.jar"\r
fork="true"\r
failonerror="true">\r
- <arg value="-h"/>\r
</java> \r
</target>\r
\r