[MOBY-guts] biomoby commit

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


gss
Thu Jun 10 19:11:02 EDT 2004
Update of /home/repository/moby/moby-live/S-MOBY/ref-impl/core
In directory pub.open-bio.org:/tmp/cvs-serv18181/ref-impl/core

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

moby-live/S-MOBY/ref-impl/core build.xml,1.3,1.4
===================================================================
RCS file: /home/repository/moby/moby-live/S-MOBY/ref-impl/core/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/S-MOBY/ref-impl/core/build.xml	2004/05/27 15:54:44	1.3
+++ /home/repository/moby/moby-live/S-MOBY/ref-impl/core/build.xml	2004/06/10 23:11:02	1.4
@@ -3,24 +3,42 @@
 <project name="smoby-core" default="jar" basedir=".">
 
     <!-- Import shared stuff -->
-    <import file="../library.xml"/>
+    <import file="../common.xml"/>
 
-    <!-- Package the compiled source files into the main jar file -->
-    <target name="jar" depends="compile">
-        <jar destfile="${core-jar-file}" basedir="${classes-dir}"/>
-    </target>
+    <!-- Relative path for where to put stuff that gets built -->
+    <property name="build-dir" value="build"/>
     
+    <!-- Relative path for where javac should output class files -->
+    <property name="classes-dir" value="${build-dir}/classes"/>
+
     <!-- 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="core.classpath"/>
         </javac>
     </target>
     
+    <!-- Package the compiled source files into the main jar file -->
+    <target name="jar" depends="compile">
+        <jar destfile="${core-jar-file}" basedir="${classes-dir}"/>
+    </target>
+
     <!-- Deploy the jar file to the Tomcat shared library directory -->
     <target name="deploy-to-tomcat" depends="jar">
-        <copy file="${core-jar-file}" todir="${tomcat-shared-lib-dir}"/>
+        <copy file="${core-jar-file}"
+              todir="${tomcat-shared-lib-dir}"/>
+    </target>
+    
+	<!-- Remove the build directory and its contents -->
+	<target name="clean">
+		<delete dir="${build-dir}" includeEmptyDirs="true"/>
+        <delete file="${core-jar-file}"/>
+	</target>
+    
+    <!-- Un-deploy the jar file from the Tomcat shared library directory -->
+    <target name="undeploy-from-tomcat">
+        <delete file="${tomcat-shared-lib-dir}/${core-jar-file}"/>
     </target>
     
 </project>




More information about the MOBY-guts mailing list