[MOBY-guts] biomoby commit

Andreas Groscurth groscurt at dev.open-bio.org
Mon Jan 5 08:46:07 UTC 2009


groscurt
Mon Jan  5 03:46:07 EST 2009
Update of /home/repository/moby/moby-live/Java/xmls
In directory dev.open-bio.org:/tmp/cvs-serv23910/xmls

Modified Files:
	deployBuild.xml tomcat.xml servletsBuild.xml 
Log Message:
changed to allow deployment on tomcat AND jboss
moby-live/Java/xmls deployBuild.xml,1.6,1.7 tomcat.xml,1.2,1.3 servletsBuild.xml,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/xmls/deployBuild.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- /home/repository/moby/moby-live/Java/xmls/deployBuild.xml	2008/03/03 14:11:08	1.6
+++ /home/repository/moby/moby-live/Java/xmls/deployBuild.xml	2009/01/05 08:46:07	1.7
@@ -11,13 +11,13 @@
 
 <!--
         Deploying a service means usually two things: (a) copying
-        necessary classes to Tomcat, and (b) creating a deployment
+        necessary classes to the server, and (b) creating a deployment
         descriptor (an XML file) and calling Axis's AdminClient to
         install this deployment descriptor into Axis's configuration
         file (WEB-INF/server-config.wsdd).
 
         Also, there are two kinds of deployments: (a) to a local
-        Tomcat, and (b) to a Tomcat running of a different machine
+        server, and (b) to a server running of a different machine
         than this Ant. For the latter case, a tarred file is created
         with all necessary contents - it must be then manually moved
         to the remote machine.
@@ -31,7 +31,7 @@
 
         Targets for local deployment are:
            deploy-services
-              tomcat-populate
+              server-populate
                  -populate
               deploy-wsdd
                  -find-services
@@ -47,7 +47,7 @@
 <!-- ================================================================== -->
 <!-- Do it all (for the local deployment)...                            -->
 <!-- ================================================================== -->
-<target name="deploy-services" depends="tomcat-running,tomcat-populate,deploy-wsdd"
+<target name="deploy-services" depends="server-running,server-populate,deploy-wsdd"
   description="Deploy (given) BioMoby services.">
 </target>
 
@@ -55,7 +55,7 @@
 <!-- ================================================================== -->
 <!-- Undeploy services (given by 'service.NNN', or by 'service.list')   -->
 <!-- ================================================================== -->
-<target name="undeploy-services" depends="tomcat-running,-find-services"
+<target name="undeploy-services" depends="server-running,-find-services"
   description="Undeploy (given) BioMoby services.">
   
   <!-- undeploy each service -->
@@ -83,11 +83,11 @@
 </target>
 
 <!-- ================================================================== -->
-<!-- Populate local Tomcat with files needed for BioMoby Web Services   -->
+<!-- Populate local server with files needed for BioMoby Web Services   -->
 <!-- ================================================================== -->
-<target name="tomcat-populate" depends="tomcat-init,jars,jar-datatypes,jar-services">
+<target name="server-populate" depends="server-init,jars,jar-datatypes,jar-services">
 
-  <!-- merge jar files in ${build.lib} with the same-named jar files in Tomcat/Axis -->
+  <!-- merge jar files in ${build.lib} with the same-named jar files in servert/Axis -->
   <foreach
     inheritall="yes"
     target="-merge-jars"
@@ -95,7 +95,7 @@
     <fileset dir="${build.lib}" includes="${datatypes.jar},${skeletons.jar}"/>
   </foreach>
   
-  <!-- copy user-defined and remaining jar files to Tomcat/Axis -->
+  <!-- copy user-defined and remaining jar files to server/Axis -->
   <antcall target="-populate">
     <param name="destination.axis.lib.dir"     location="${deploy.axis.dir}/lib"/>
     <param name="destination.axis.classes.dir" location="${deploy.axis.dir}/classes"/>
@@ -104,7 +104,7 @@
 </target>
 
 <!-- ================================================================== -->
-<!-- Sub-target of tomcat-populate (called for each jar file)           -->
+<!-- Sub-target of server-populate (called for each jar file)           -->
 <!-- ================================================================== -->
 <!-- parameter: ${jarfile.name} -->
 <target name="-merge-jars">
@@ -129,14 +129,14 @@
 </target>
 
 <!-- ================================================================== -->
-<!-- Sub-target of tomcat-populate                                      -->
+<!-- Sub-target of server-populate                                      -->
 <!-- (used both for local and remote deployment)                        -->
 <!-- ================================================================== -->
 <!-- parameter: ${destination.axis.lib.dir} -->
 <!-- parameter: ${destination.axis.classes.dir} -->
 <target name="-populate" depends="initmaven">
   
-  <!-- copy user-defined jar files to Tomcat/Axis -->
+  <!-- copy user-defined jar files to server/Axis -->
   <if>
     <isset property="users.lib.dir"/>
     <then>
@@ -152,7 +152,7 @@
     </then>
   </if>
   
-  <!-- copy remaining jar files to Tomcat/Axis -->
+  <!-- copy remaining jar files to server/Axis -->
   <copy
     todir="${destination.axis.lib.dir}"
     flatten="true">
@@ -236,7 +236,7 @@
 <!--    parameter: ${wsdd.file} ... a file with a [un]deployment descr. -->
 <!--    parameter: ${deploy.task.name} ... a name given to this task    -->
 <!-- ================================================================== -->
-<target name="axis-deploy" depends="initmaven,tomcat-running">
+<target name="axis-deploy" depends="initmaven,server-running">
   
   <!-- an optional parameter: how to name this task -->
   <property name="deploy.task.name" value="Deploy"/>
@@ -247,9 +247,9 @@
     fork="true"
     failonerror="true">
     <arg value="-h"/>
-    <arg value="${tomcat.host}"/>
+    <arg value="${server.host}"/>
     <arg value="-p"/>
-    <arg value="${tomcat.port}"/>
+    <arg value="${server.port}"/>
     <arg value="-s"/>
     <arg value="${axis.admin.url}"/>
     <arg file="${wsdd.file}"/>
@@ -290,7 +290,7 @@
 <!-- ================================================================== -->
 <!-- Create a file that will be used to do a remote deployment          -->
 <!-- ================================================================== -->
-<target name="deploy-remote" depends="init,tomcat-init,-find-services,jars,jar-datatypes,jar-services"
+<target name="deploy-remote" depends="init,server-init,-find-services,jars,jar-datatypes,jar-services"
   description="Create a file helping to deploy services on a different machine">
 
   <tempfile property="build.remote.dir" destDir="${java.io.tmpdir}/mobyremotedeploy-${user.name}"/>
@@ -328,18 +328,18 @@
   </delete>
   
   <!-- add separate build.xml for deployment, and scripts to use it -->
-  <property name="cross.tomcat.home"        value="${real.catalina.home}"/>
-  <property name="cross.tomcat.port"        value="${tomcat.port}"/>
-  <property name="cross.tomcat.host"        value="${tomcat.host}"/>
+  <property name="cross.server.home"        value="${real.catalina.home}"/>
+  <property name="cross.server.port"        value="${server.port}"/>
+  <property name="cross.server.host"        value="${server.host}"/>
   <property name="cross.axis.relative.path" value="${axis.relative.path}"/>
-  <property name="cross.axis.admin.url"     value="${cross.axis.relative.path}/servlet/AxisServlet"/>
+  <property name="cross.axis.admin.url"     value="${axis.admin.url}"/>
   
   <copy file="${src.webapps}/remote.deploy.build.xml.template"
     tofile="${result.dir}/build.xml">
     <filterset>
-      <filter token="TOMCAT_HOME" value="${cross.tomcat.home}"/>
-      <filter token="TOMCAT_PORT" value="${cross.tomcat.port}"/>
-      <filter token="TOMCAT_HOST" value="${cross.tomcat.host}"/>
+      <filter token="SERVER_HOME" value="${cross.server.home}"/>
+      <filter token="SERVER_PORT" value="${cross.server.port}"/>
+      <filter token="SERVER_HOST" value="${cross.server.host}"/>
       <filter token="AXIS_RELATIVE_PATH" value="${cross.axis.relative.path}"/>
       <filter token="AXIS_ADMIN_URL" value="${cross.axis.admin.url}"/>
     </filterset>

===================================================================
RCS file: /home/repository/moby/moby-live/Java/xmls/tomcat.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/xmls/tomcat.xml	2008/03/03 14:11:08	1.2
+++ /home/repository/moby/moby-live/Java/xmls/tomcat.xml	2009/01/05 08:46:07	1.3
@@ -4,20 +4,19 @@
 
 <!-- ====================================================== -->
 <!--                                                        -->
-<!-- Targets dealing with a Tomcat server                   -->
+<!-- Targets dealing with a server                   		-->
 <!--                                                        -->
 <!-- ====================================================== -->
 
-<!-- Tomcat access -->
-<property name="tomcat.port" value="8080"/>
-<property name="tomcat.host" value="localhost"/>
+<!-- server access -->
+<property name="server.port" value="8080"/>
+<property name="server.host" value="localhost"/>
 
 <!-- ================================================================== -->
-<!-- Tomcat init sets property 'real.catalina.home' to its location     -->
+<!-- server init sets property 'real.catalina.home' to its location     -->
 <!-- ================================================================== -->
-<target name="tomcat-init">
-
-  <!-- Tomcat location -->
+<target name="server-init">
+  <!-- server location -->
   <condition property="real.catalina.home" value="${env.CATALINA_HOME}">
     <isset property="env.CATALINA_HOME"/>
   </condition>
@@ -30,37 +29,37 @@
 
   <!-- properties set from other properties that were set in conditions above -->
   <property name="deploy.axis.dir"
-    location="${real.catalina.home}/${tomcat.webapps}/${axis.relative.path}/WEB-INF"/>
+    location="${real.catalina.home}/${axis.relative.path}/WEB-INF"/>
     
-  <!-- check that we know about Tomcat -->
+  <!-- check that we know about server -->
   <fail unless="real.catalina.home">
 '
 
-    ERROR: Tomcat server not found.
+    ERROR: Server not found.
     -------------------------------
     Please set environment variable CATALINA_HOME to point to it,
     or create a file 'build.properties' and put there the line:
-    catalina.home = &lt;location of your Tomcat&gt;
+    catalina.home = &lt;location of your server&gt;
     (do not include '&lt;' and '&gt;' there),
     or start your Ant with this property on the command-line:
-    ant -Dcatalina.home=&lt;location of your Tomcat&gt; 
+    ant -Dcatalina.home=&lt;location of your server&gt; 
   </fail>
 </target>
 
-<target name="tomcat-running" depends="tomcat-init">
-  <condition property="tomcat.is.running">
-    <socket server="${tomcat.host}" port="${tomcat.port}"/>
+<target name="server-running" depends="server-init">
+  <condition property="server.is.running">
+    <socket server="${server.host}" port="${server.port}"/>
   </condition>
-  <fail unless="tomcat.is.running">
+  <fail unless="server.is.running">
 '
 
-    ERROR: Tomcat does not seem to be running.
+    ERROR: Server does not seem to be running.
     ------------------------------------------
-    I have just checked ${tomcat.host}:${tomcat.port}...
+    I have just checked ${server.host}:${server.port}...
     You may perhaps consider to start it.
     Or to set differently the following properties:
-    "tomcat.host" (current value: ${tomcat.host}), and
-    "tomcat.port" (current value: ${tomcat.port})
+    "server.host" (current value: ${server.host}), and
+    "server.port" (current value: ${server.port})
   </fail>
 </target>
 

===================================================================
RCS file: /home/repository/moby/moby-live/Java/xmls/servletsBuild.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/xmls/servletsBuild.xml	2008/03/02 12:45:27	1.2
+++ /home/repository/moby/moby-live/Java/xmls/servletsBuild.xml	2009/01/05 08:46:07	1.3
@@ -10,7 +10,7 @@
 <!-- ================================================================== -->
 <property name="deploy.war.file" value="${build.webapps}/jmoby.war"/>
 
-<target name="deploy-servlets" depends="tomcat-init,war"
+<target name="deploy-servlets" depends="server-init,war"
   description="Deploy jMoby servlets to local Tomcat.">
   <property name="deploy.webapp.dir" location="${real.catalina.home}/webapps"/>
   <delete dir="${deploy.webapp.dir}/jmoby"/>




More information about the MOBY-guts mailing list