]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-62 build script now checks if jboss is installed or not at given jboss home...
authorSanjay Dalal <sanjay.dalal@berkeley.edu>
Thu, 9 Apr 2009 23:42:55 +0000 (23:42 +0000)
committerSanjay Dalal <sanjay.dalal@berkeley.edu>
Thu, 9 Apr 2009 23:42:55 +0000 (23:42 +0000)
build.xml

index 6b9a81440c3898074aa1c52527ecae9ba9094f4a..a742a956189618232a61249899b697174b3d268b 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -17,6 +17,7 @@
         <property name="jboss.server" value="${jboss.home}/server/${jboss.config}" />\r
         <property name="jboss.deploy" value="${jboss.server}/deploy" />\r
         <property name="jboss.lib" value="${jboss.server}/lib" />\r
+        <property name="nuxeo.deploy" value="${jboss.deploy}/nuxeo.ear" />\r
     </target>\r
 \r
 \r
 \r
     <target name="dist" depends="compile"\r
         description="generate the distribution" >\r
+        <fail message="JBoss is not installed or ${jboss.dir} not found">\r
+            <condition>\r
+                <not>\r
+                    <available file="${jboss.dir}" type="dir"/>\r
+                </not>\r
+            </condition>\r
+        </fail>\r
+\r
+        <fail message="Nuxeo is not deployed or ${nuxeo.deploy} not found">\r
+            <condition>\r
+                <not>\r
+                    <available file="${nuxeo.deploy}" type="dir"/>\r
+                </not>\r
+            </condition>\r
+        </fail>\r
+\r
     <!-- Create the distribution directory -->\r
         <mkdir dir="${dist}"/>\r
 \r