[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/example-providers/go.org
In directory pub.open-bio.org:/tmp/cvs-serv18384/ref-impl/example-providers/go.org

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

moby-live/S-MOBY/ref-impl/example-providers/go.org build.xml,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/example-providers/go.org/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/example-providers/go.org/build.xml	2004/05/27 16:23:59	1.1
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/example-providers/go.org/build.xml	2004/06/10 23:15:37	1.2
@@ -1,29 +1,35 @@
 <!-- Apache Ant format build file for go.org example provider -->
 
-<project name="go.org" default="war" basedir=".">
+<project name="go.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="go.org.war"/>
-	
-	<!-- Package the compiled source files into the main jar file -->
-	<target name="war" depends="compile">
-        <jar destfile="${war-file}" basedir="${web-root}"/>
-	</target>
+    <!-- The web application name -->
+    <property name="webapp-name" value="go.org"/>
 	
 	<!-- Compile all the source files that go into the library -->
 	<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>
 	</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