[MOBY-guts] biomoby commit

Gary Schlitz gss at pub.open-bio.org
Thu Jun 10 23:15:37 UTC 2004


gss
Thu Jun 10 19:15:37 EDT 2004
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/server
In directory pub.open-bio.org:/tmp/cvs-serv18384/ref-impl/server

Modified Files:
	build.xml 
Log Message:
Build and deploy process mostly worked out

moby-live/S-MOBY/ref-impl/server build.xml,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/server/build.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/server/build.xml	2004/05/27 15:54:12	1.2
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/server/build.xml	2004/06/10 23:15:37	1.3
@@ -1,29 +1,42 @@
-<!-- Apache Ant format build file for s-moby.org example provider -->
+<!-- Apache Ant format build file for s-moby.org server -->
 
-<project name="s-moby.org" default="war" basedir=".">
+<project name="s-moby.org" default="compile" basedir=".">
 
     <!-- Import shared stuff -->
     <import file="../servlet.xml"/>
 
-	<!-- The full path of the web archive file to be built -->
-    <property name="war-file" value="s-moby.org.war"/>
+    <!-- The web application name -->
+    <property name="webapp-name" value="s-moby.org"/>
 	
-	<!-- Package the compiled source files into the main jar file -->
-	<target name="war" depends="compile">
-        <jar destfile="${war-file}" basedir="${web-root}"/>
-	</target>
-	
-	<!-- Compile all the source files that go into the library -->
+    <!-- Compile all the source files that go into the library, and copy any
+         properties files (i.e. smoby.properties and log4j.properties) into
+         the classes directory -->
 	<target name="compile">
 		<mkdir dir="${classes-dir}"/>
-        <javac srcdir="${src-dir}" destdir="${classes-dir}">
+        <javac srcdir="src" destdir="${classes-dir}">
             <classpath refid="common.classpath"/>
         </javac>
+        <copy toDir="${classes-dir}">
+            <fileset dir="WebRoot">
+                <include name="*.properties"/>
+            </fileset>
+        </copy>
 	</target>
 
-    <!-- Clean the build directory and the war file -->
-    <target name="clean" depends="clean-build">
-        <delete file="${war-file}"/>
+    <!-- Deploy the application to Tomcat -->
+    <target name="deploy-to-tomcat" depends="compile">
+        <mkdir dir="${tomcat-webapps-dir}/${webapp-name}"/>
+        <copy todir="${tomcat-webapps-dir}/${webapp-name}">
+            <fileset dir="${web-root}"/>
+        </copy>
+    </target>
+	
+    <!-- Clean the build directory -->
+    <target name="clean" depends="clean-build"/>
+
+    <!-- Un-deploy the application from Tomcat -->
+    <target name="undeploy-from-tomcat">
+        <delete dir="${tomcat-webapps-dir}/${webapp-name}" includeEmptyDirs="true"/>
     </target>
 	
 </project>




More information about the MOBY-guts mailing list