[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/megapubs.com
In directory pub.open-bio.org:/tmp/cvs-serv18384/ref-impl/example-providers/megapubs.com
Modified Files:
build.xml
Log Message:
Build and deploy process mostly worked out
moby-live/S-MOBY/ref-impl/example-providers/megapubs.com build.xml,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/example-providers/megapubs.com/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/example-providers/megapubs.com/build.xml 2004/05/27 15:54:28 1.2
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/example-providers/megapubs.com/build.xml 2004/06/10 23:15:37 1.3
@@ -1,29 +1,35 @@
-<!-- Apache Ant format build file for acmepubs.com example provider -->
+<!-- Apache Ant format build file for megapubs.com server -->
-<project name="megapubs.com" 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="megapubs.com.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="megapubs.com"/>
<!-- 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