idok-commit AT lists.psi.ch
Subject: Commit emails of the iDok project
List archive
- From: "Apache" <apache AT savannah.psi.ch>
- To: idok-commit AT lists.psi.ch
- Subject: [idok-commit] idok commit r77 - trunk/sites/psi
- Date: Wed, 30 Apr 2008 16:19:03 +0200
- List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
- List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>
Author: huebner AT PSI.CH
Date: Wed Apr 30 16:19:03 2008
New Revision: 77
Log:
added dmsd deployment for the install target
Modified:
trunk/sites/psi/build.xml
Modified: trunk/sites/psi/build.xml
==============================================================================
--- trunk/sites/psi/build.xml (original)
+++ trunk/sites/psi/build.xml Wed Apr 30 16:19:03 2008
@@ -13,6 +13,8 @@
description="base directory for hosting the www.idok.ch web
site" />
<property name="install.dir"
value="/afs/psi.ch/project/dms/admin/devel/opt/dms" />
+ <property name="dmsd_install.dir"
+
value="/afs/psi.ch/project/dms/admin/devel/opt/dmsd" />
<property name="deploy_qa.path"
value="${psi-idok.basedir}/scripts/admin/deploy_qa.sh" />
<property name="deploy_prod.path"
@@ -21,6 +23,27 @@
value="${psi-idok.basedir}/java/ch/psi/idok/service/common/dms.jks"
description="Location of the PSI site specific keystore
file" />
+ <!-- Library names -->
+ <property name="distlib" value="${dmsd_install.dir}/lib"/>
+ <property name="unodir" value="${distlib}"/>
+
+ <property name="jsvn" value="${distlib}/svnkit.jar"/>
+ <property name="lucene" value="${distlib}/lucene-core.jar"/>
+ <property name="pdf" value="${distlib}/PDFBox.jar"/>
+ <property name="fontbox" value="${distlib}/FontBox.jar"/>
+ <property name="bcprov" value="${distlib}/bcprov.jar"/>
+ <property name="bcmail" value="${distlib}/bcmail.jar"/>
+ <property name="uno-1" value="${unodir}/unoil.jar"/>
+ <property name="uno-2" value="${unodir}/ridl.jar"/>
+ <property name="uno-3" value="${unodir}/juh.jar"/>
+ <property name="uno-4" value="${unodir}/jurt.jar"/>
+ <property name="exif" value="${distlib}/exif.jar"/>
+ <property name="tar" value="${distlib}/tar.jar"/>
+
+ <!-- Library sets -->
+ <property name="uno-all" value="${uno-1}:${uno-2}:${uno-3}:${uno-4}"/>
+ <property name="lib-all"
value="${jsvn}:${lucene}:${pdf}:${fontbox}:${bcprov}:${bcmail}:${uno-all}:${exif}:${tar}"/>
+
<target name="compile"
depends="idok.compile"
description="compile PSI site specific source">
@@ -101,7 +124,19 @@
<arg value="-c" />
<arg value="cp --preserve=mode mailer.py
${install.dir}" />
</exec>
-
+ <echo message="Copying files..."/>
+ <copy todir="${dmsd_install.dir}" overwrite="yes"
verbose="yes">
+ <fileset
dir="${psi-idok.basedir}/scripts/admin/dmsd/dist"/>
+ </copy>
+ <replace file="${dmsd_install.dir}/dmsd"
token="DEFINE_DMSD_DIR" value="DMSD_DIR=${dmsd_install.dir}"/>
+ <replace file="${dmsd_install.dir}/dmsd.config"
token="DEFINE_CLASS_PATH" value="${lib-all}"/>
+ <chmod perm="u+x" verbose="yes">
+ <fileset dir="${dmsd_install.dir}"
casesensitive="yes">
+ <include name="*.sh"/>
+ <include name="dmsd"/>
+ </fileset>
+ </chmod>
+
<!-- Copy jars if newer than destination -->
<copy todir="${install.dir}" flatten="true">
<!-- idok jars -->
@@ -109,6 +144,7 @@
<!-- 3rd party jars -->
<fileset refid="idok.libs.runtime" />
</copy>
+ <copy file="${dist.dir}/idok.jar"
tofile="${dmsd_install.dir}/dmsd.jar"/>
<!-- Copy additional files to install dir -->
<copy todir="${install.dir}" flatten="true" overwrite="true">
- [idok-commit] idok commit r77 - trunk/sites/psi, Apache, 04/30/2008
Archive powered by MHonArc 2.6.19.