]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-6142: Undeploy new-style Nuxeo doctype and schema JARs, along with legacy...
authorAron Roberts <aron@socrates.berkeley.edu>
Mon, 12 Aug 2013 20:22:59 +0000 (13:22 -0700)
committerAron Roberts <aron@socrates.berkeley.edu>
Mon, 12 Aug 2013 20:22:59 +0000 (13:22 -0700)
services/work/3rdparty/nuxeo-platform-cs-work/build.xml

index f80d20afad26dab061cebc15d89b9877382fbc2e..58bdadb07fe9683417c78268bcdca69cce6ae33a 100644 (file)
@@ -1,4 +1,3 @@
-
 <project name="nuxeo-platform-cs-work" default="package" basedir=".">
     <description>
         work nuxeo document type
     <property name="src" location="src"/>
     <property name="nuxeo.work.jar"
         value="org.collectionspace.services.work.3rdparty.nuxeo-${cspace.release}.jar"/>
-    <property name="nuxeo.work.jars.all"
+    <!-- JAR files used by CollectionSpace 4.0 and later -->
+    <property name="nuxeo.work.doctype.jars.all"
+        value="collectionspace.work.*doctype*.jar"/>
+    <property name="nuxeo.work.schema.jars.all"
+        value="collectionspace.work.*schema*.jar"/>
+    <!-- Legacy JAR files used by CollectionSpace 3.3 and earlier --> 
+    <property name="nuxeo.work.legacy.jars.all"
         value="org.collectionspace.services.work.3rdparty.nuxeo-*.jar"/>
 
     <condition property="osfamily-unix">
 
     <target name="deploy" depends="install"
         description="deploy work doctype in ${jee.server.nuxeo}">
+        <!-- This target is obsolete.  The Nuxeo artifacts are now created and deployed using the "csmake" tool
+        leaving this only for backwards compatibility reasons. -->  
         <copy file="${basedir}/target/${nuxeo.work.jar}"
-        todir="${jee.deploy.nuxeo.plugins}"/>
+            todir="${jee.deploy.nuxeo.plugins}"/>
     </target>
 
     <target name="undeploy"
         description="undeploy work doctype from ${jee.server.nuxeo}">
         <delete>
+            <!-- Undeploy doctype and schema artifacts -->
+            <fileset dir="${jee.deploy.nuxeo.plugins}">
+                <include name="${nuxeo.work.doctype.jars.all}"/>
+            </fileset>
+            <fileset dir="${jee.deploy.nuxeo.plugins}">
+                <include name="${nuxeo.work.schema.jars.all}"/>
+            </fileset>
+            <!-- Undeploy legacy artifacts -->
             <fileset dir="${jee.deploy.nuxeo.plugins}">
-                <include name="${nuxeo.work.jars.all}"/>
+                <include name="${nuxeo.work.legacy.jars.all}"/>
             </fileset>
-            <!-- Legacy deployment location through release 0.6 -->
+            <!-- Undeploy legacy artifacts from old deployment location through release 0.6 -->
             <fileset dir="${jee.deploy.nuxeo.system}">
-                <include name="${nuxeo.work.jars.all}"/>
+                <include name="${nuxeo.work.legacy.jars.all}"/>
             </fileset>
         </delete>
     </target>