You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@depot.apache.org by mm...@apache.org on 2004/02/01 21:40:19 UTC

svn commit: rev 6427 - incubator/depot/trunk/ruper/whiteboard/mmay

Author: mmay
Date: Sun Feb  1 13:40:19 2004
New Revision: 6427

Added:
   incubator/depot/trunk/ruper/whiteboard/mmay/build.xml
Log:
To show some stuff

Added: incubator/depot/trunk/ruper/whiteboard/mmay/build.xml
==============================================================================
--- (empty file)
+++ incubator/depot/trunk/ruper/whiteboard/mmay/build.xml	Sun Feb  1 13:40:19 2004
@@ -0,0 +1,112 @@
+<!--- 
+
+
+-->
+<project name="depot-ruper" default="bootstrap" basedir=".">
+    <description>
+        Depot Ruper is a Repository Updater
+    </description>
+    
+  <!-- set global properties for this build -->
+  <property name="src.dir" location="src"/>
+  <property name="java.src.dir" location="src/java"/>
+  <property name="core.src.dir" location="src/java/core"/>
+  <property name="adapter.src.dir" location="src/java/adapter"/>
+
+  <!-- 
+  I would like to make ant a special dependency, since everbody should have this anyway
+  -->
+  <property name="ant.adapter.src.dir" location="src/java/adapter/ant"/>	    
+  
+  <property name="test.src.dir" location="${src.dir}/test"/>
+  <property name="core.test.src.dir" location="${test.src.dir}/core"/>
+  <property name="adapter.test.src.dir" location="${test.src.dir}/adapter"/>
+  <property name="ant.adapter.test.src.dir" location="${adapter.test.src.dir}/ant"/>
+  
+  <property name="target.dir" location="target"/>
+  <property name="class.dir" location="${target.dir}/classes"/>
+  <property name="core.class.dir" location="${class.dir}/core"/>
+  <property name="adapter.class.dir" location="${class.dir}/adapter"/> 
+  <property name="ant.adapter.class.dir" location="${adapter.class.dir}/ant"/> 
+  <property name="test.class.dir" location="${class.dir}/test"/>
+  <property name="core.test.class.dir" location="${test.class.dir}/core"/>
+  <property name="dist.dir" location="target/dist"/>
+  
+  <!-- core dependencies -->  
+  <path id="core.dependencies.path">
+  	<pathelement path="${classpath}"/>
+    	<fileset dir="lib">
+        	<include name="**/*.jar"/>
+      	</fileset>
+     <pathelement location="target/classes"/>
+    </path>
+
+  <target name="init">
+    <!-- Create the time stamp -->
+    <tstamp/>
+    <!-- Create the build directory structure used by compile -->
+    <mkdir dir="${core.class.dir}"/>
+    <mkdir dir="${adapter.class.dir}"/>
+    <mkdir dir="${ant.adapter.class.dir}"/>    
+    <mkdir dir="${dist.dir}"/>
+  </target>
+
+  <target name="compile_ruper" depends="init"
+        description="compiling the ruper core" >
+    <javac srcdir="${core.src.dir}" destdir="${core.class.dir}">
+    	<classpath refid="core.dependencies.path"/>
+    </javac>
+  </target>
+  
+  <target name="compile_tests_ruper" depends="compile_ruper"
+        description="compiling the ruper core" >
+    <mkdir dir="${core.test.class.dir}"/>
+        
+    <javac srcdir="${core.test.src.dir}" destdir="${core.test.class.dir}">
+    	<classpath refid="core.dependencies.path"/>
+    </javac>
+  </target>
+  
+  <target name="run_tests_ruper" depends="compile_tests_ruper">
+
+	<junit printsummary="yes" haltonfailure="yes">
+    	<classpath refid="core.dependencies.path"/>
+		<formatter type="plain"/>
+
+	</junit>
+  </target>
+  
+  <target name="make_jar_ruper" depends="init"
+        description="make bootstrap jars of ruper" >
+    <!-- Compile the java code from ${src} into ${build} -->
+    <javac srcdir="${core.class.dir}" destdir="${core.class.dir}"/>
+  </target>
+
+  <target name="compile_adapter" depends="make_jar_ruper"
+        description="compile the adapter sources of ruper " >
+    <!-- Compile the java code from ${src} into ${build} -->
+    <javac srcdir="${src}" destdir="${build}"/>
+  </target>
+
+  <target name="make_jar_adapter" depends="compile_adapter"
+        description="compile the source " >
+    <!-- Compile the java code from ${src} into ${build} -->
+    <javac srcdir="${src}" destdir="${build}"/>
+  </target>
+
+
+  <target name="dist" depends="compile_ruper"
+        description="generate the distribution" >
+    <!-- Create the distribution directory -->
+    <mkdir dir="${dist}/lib"/>
+
+    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
+    <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/>
+  </target>
+
+  <target name="clean"
+        description="clean up" >
+    <!-- Delete the ${build} and ${dist} directory trees -->
+    <delete dir="${target}"/>
+  </target>
+</project>
\ No newline at end of file