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/04/24 21:26:42 UTC

svn commit: rev 10242 - incubator/depot/trunk/update

Author: mmay
Date: Sat Apr 24 14:26:42 2004
New Revision: 10242

Modified:
   incubator/depot/trunk/update/build.xml
Log:
Copied from build_antlet.xml and added gump-Target

Modified: incubator/depot/trunk/update/build.xml
==============================================================================
--- incubator/depot/trunk/update/build.xml	(original)
+++ incubator/depot/trunk/update/build.xml	Sat Apr 24 14:26:42 2004
@@ -1,245 +1,56 @@
+<?xml version="1.0"?>
+<!-- $HeadURL$ -->
 <!--
-$Id$
 Copyright 2004 The Apache Software Foundation
+
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
-http://www.apache.org/licenses/LICENSE-2.0
+    http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
--->
-<project name="depot-update" default="gump" basedir=".">
+-->
+<project name="depot-update" default="all">
     <description> 
 		Depot Update is a Repository Updater 
-	</description>
-
-    <property file="personal.properties"/>
-    <property file="project.properties"/>
-
-    <!-- directory structure -->
-    <!-- src dirs -->
-    <property name="src.dir" location="src"/>
-    <property name="java.src.dir" location="src/java"/>
-
-    <!-- test src dirs -->
-    <property name="test.src.dir" location="${src.dir}/test"/>
-
-    <!-- target dirs -->
-    <property name="target.dir" location="target"/>
-    <property name="class.dir" location="${target.dir}/classes"/>
-
-    <!-- test target dirs -->
-    <property name="test.class.dir" location="${class.dir}/test"/>
-
-    <!-- distribution dir -->
-    <property name="dist.dir" location="target/dist"/>
-    <property name="dist.jar.dir" location="${dist.dir}/jars"/>
-    <property name="local.lib.dir" location="lib"/>
-    <property name="test.output.dir" location="${dist.dir}/tests/doc"/>
-
-    <property name="version.class.dir"
-              location="${basedir}/../version/target/classes"
-     />
-
-    <!-- defining dependencies -->
-
-    <path id="compile.classpath">
-        <pathelement path="${classpath}"/>
-        <fileset dir="${local.lib.dir}">
-            <include name="**/*.jar"/>
-        </fileset>
-        <pathelement location="${class.dir}"/>
-        <pathelement location="${version.class.dir}"/>
-    </path>
-
-    <!--
-		Initialization Targets	
-	-->
-    <target name="init" depends="build_banner"
-			description="Initialize directory structure">
-        <!-- Create the build directory structure used by compile -->
-        <mkdir dir="${class.dir}"/>
-
-        <mkdir dir="${dist.jar.dir}"/>
-        <mkdir dir="${test.class.dir}"/>
-    </target>
-
-    <target name="init_repository" depends="" 
-		description="fetches  dependencies out of the ibiblio-repository and put them in the local lib dir">
-        <!-- should use a local repository here (perhaps even create it?? -->
-        <mkdir dir="${local.lib.dir}"/>
-
-        <get src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.jar" 
-			dest="${local.lib.dir}/junit.jar" usetimestamp="true" 
-			verbose="true"/>
-        <get 
-			src="http://www.ibiblio.org/maven/commons-httpclient/jars/commons-httpclient-2.0-rc3.jar" 
-			dest="${local.lib.dir}/commons-httpclient.jar" usetimestamp="true" 
-			verbose="true"/>
-        <get src="http://www.ibiblio.org/maven/regexp/jars/regexp-1.3.jar" 
-			dest="${local.lib.dir}/jakarta-regexp.jar" usetimestamp="true" 
-			verbose="true"/>
-        <get 
-			src="http://www.ibiblio.org/maven/commons-vfs/jars/commons-vfs-SNAPSHOT.jar" 
-			dest="${local.lib.dir}/commons-vfs.jar" usetimestamp="true" 
-			verbose="true"/>
-        <get 
-			src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.3.jar" 
-			dest="${local.lib.dir}/commons-logging.jar" usetimestamp="true" 
-			verbose="true"/>
-        <get 
-			src="http://www.ibiblio.org/maven/ant/jars/ant-1.6.jar" 
-			dest="${local.lib.dir}/ant.jar" usetimestamp="true" 
-			verbose="true"/>
-    </target>
-
-    <!--
-		Shows basically a nice banner with some tech infos of the build, we should add some other
-		stuff here as well (like, what is update...	
-	-->
-    <target name="build_banner" unless="initialize">
-        <tstamp>
-            <format property="year" pattern="yyyy" />
-            <format property="DATE_STAMP" pattern="yyyyMMdd" timezone="GMT"/>
-        </tstamp>
-
-        <echo message="--------------------------------------------------------"/>
-        <echo message="	    ${project.name} ${version} ${DATE_STAMP} Build"/>
-        <echo message="              Copyright ${year} ${vendor}"/>
-        <echo message="--------------------------------------------------------"/>
-        <echo message="Ant              :	${ant.version}"/>
-        <echo message="Ant File	        :	${ant.file}"/>
-        <echo message="Ant Prj          :	${ant.project.name}"/>
-        <echo message="Ant Java	        :	${ant.java.version}"/>
-        <echo message="Ant Home         :	${ant.home}"/>
-        <echo message="--------------------------------------------------------"/>
-
-        <property name="initialize" value="ok"/>
-    </target>
-
-    <target name="compile" depends="init" 
-		description="compiling depot update" >
-        <javac srcdir="${java.src.dir}" destdir="${class.dir}" 
-			debug="${debug}" optimize="${optimize}" 
-			deprecation="${deprecation}">
-            <classpath refid="compile.classpath"/>
-        </javac>
-    </target>
-
-
-
-    <!--
-		Compile Test Targets - core, ant, adapter?? ...	
-	-->
-    <target name="compile_tests" depends="compile" 
-		description="compiling depot update tests"  >
-        <mkdir dir="${test.class.dir}" />
-        <javac srcdir="${test.src.dir}" destdir="${test.class.dir}" 
-			debug="${debug}" optimize="${optimize}" 
-			deprecation="${deprecation}">
-            <classpath refid="compile.classpath"/>
-        </javac>
-    </target>
-
-
-
-    <!--
-		JavaDoc Targets	
-	-->
-
-
-    <!--
-		Build jars - ant, ...
-	-->
-    <target name="make_jar" depends="compile" 
-		description="make bootstrap jars of depot udpate" >
-        <!-- Compile the java code from ${src} into ${build} -->
-        <jar destfile="${dist.jar.dir}/${project.name}-${version}.jar" 
-			basedir="${class.dir}"/>
-        <!--
-    <jar destfile="${dist.jar.dir}/update_resources.jar" basedir="${resources/core}"/>
--->
-    </target>
-
-
-    <target name="make_src_jar" depends="init" 
-		description="building a jar with all sources (everything beneath the basedir)">
-        <jar destfile="${dist.jar.dir}/${project.name}-src-${version}.jar" 
-			basedir="." excludes="target/**/*"/>
-    </target>
-
-    <!--
-		Makes test jars (is this really necessary??)	
-	-->
-    <target name="make_jar_tests" depends="" description="">
-        <jar destfile="${dist.jar.dir}/${project.name}-tests-${version}.jar" 
-			basedir="${test.class.dir}"/>
-    </target>
-
-
-
-    <!--
-		run tests (all of them, using batchtest)	
-	-->
-    <target name="test" depends="run_tests"/>
-    <target name="run_tests" depends="compile_tests" description="">
-        <mkdir dir="${test.output.dir}"/>
-        <junit printsummary="on" fork="true" dir="." showoutput="false" 
-			haltonfailure="no">
-            <classpath>
-                <path refid="compile.classpath"/>
-                <pathelement location="${test.classes.dir}"/>
-            </classpath>
-            <formatter type="xml"/>
-            <batchtest fork="yes" todir="${test.output.dir}">
-                <fileset dir="${test.src.dir}">
-                    <include name="**/*Test*.java"/>
-
-                </fileset>
-            </batchtest>
-        </junit>
-        <delete dir="transient"/>
-    </target>
-
-
-    <!--
-		Clean Up Targets	
-	-->
-    <target name="clean_test"
-			description="cleans all test data">
-        <delete dir="${test.output.dir}"/>
-    </target>
-
-    <target name="clean" description="clean up" >
-        <!-- Delete the $target} directory tree -->
-        <delete dir="${target}"/>
-    </target>
-
-    <!--
-		Facade Targets (use these in a normal build process)	
-	-->
-    <target name="build" depends="make_jar, make_jar_tests" 
-		description="makes the jars"/>
-
-
-
-
-
-    <target name="make_jar_dist" depends="build" 
-		description="makes all jars (inclusive src.jar with all sources - tarball like)">
-
-        <property name="output.jar" 
-			value="${dist.jar.dir}/${project.name}-${DSTAMP}.jar"/>
-        <copy file ="${dist.jar.dir}/${project.name}-${version}.jar" 
-			tofile="${output.jar}" verbose="true"/>
-    </target>
-
-    <target name="gump" depends="init_repository, make_jar_dist">
-    </target>
-
-</project>
\ No newline at end of file
+	</description>
+    <tstamp/>
+<typedef 
+    	resource="org/krysalis/antworks/importer/antlib.xml"  classpath="${user.home}/.antworks/lib/antworks-importer.jar"/>
+  
+    <property name="project.name" value="depot-update"/>
+    <property name="project.version" value="0.1-dev-${DSTAMP}"/>
+    
+    
+     <property name="apache.antlet.svn.www.url" value="https://svn.apache.org/repos/asf/incubator/depot/trunk/www/update"/>
+
+    
+    <!--property name="project.src.dir" value="src/java/core"/-->
+    <!-- 
+    To much work to write these again.
+    REQUIRES ant 1.6
+    
+    But this is not gump friendly need to think about it .
+    -->
+    <importer name="init-0.1" href="http://metamorphosis.krysalis.org/antlet/"/>
+    <importer name="java-0.1" href="http://metamorphosis.krysalis.org/antlet/"/>
+    <importer name="junit-0.1" href="http://metamorphosis.krysalis.org/antlet/"/>
+    <importer name="forrest-0.1" href="http://metamorphosis.krysalis.org/antlet/"/>
+    <importer name="apache-0.1" href="http://metamorphosis.krysalis.org/antlet/"/>
+    
+   
+    <path id="depot-update.classpath">
+        <fileset dir="lib">
+            <include name="*.jar"/>
+        </fileset>
+    </path>
+    
+    
+    <target name="all" depends="compile"/>
+    <target name="gump" depends="compile, dist-jar"/>
+</project>