incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 9897 - incubator/depot/trunk/update
Date Wed, 07 Apr 2004 03:25:35 GMT
Author: nickchalko
Date: Tue Apr  6 20:25:34 2004
New Revision: 9897

Modified:
   incubator/depot/trunk/update/build.xml
Log:
Format

Modified: incubator/depot/trunk/update/build.xml
==============================================================================
--- incubator/depot/trunk/update/build.xml	(original)
+++ incubator/depot/trunk/update/build.xml	Tue Apr  6 20:25:34 2004
@@ -12,232 +12,234 @@
 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=".">
-	<description> 
+-->
+<project name="depot-update" default="gump" basedir=".">
+    <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>
-
-	<!--
+	</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" 
+	-->
+    <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 
+			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" 
+			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 
+			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 
+			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 
+			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>
-
-	<!--
+			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}" 
+	-->
+    <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>
-
-	
-	
-	<!--
+			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}" 
+	-->
+    <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>
-
-
-
-	<!--
+			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}"/>
-		<!--
+	-->
+    <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>
-
-	<!--
+-->
+    </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>
-
-
-
-	<!--
+	-->
+    <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>
-
-	
-	<!--
+	-->
+    <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>
-
-	<!--
+	-->
+    <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>
-	
+	-->
+    <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>

Mime
View raw message