incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r777059 - in /incubator/kato/trunk/org.apache.kato.api: .settings/org.eclipse.core.resources.prefs build.xml
Date Thu, 21 May 2009 11:03:36 GMT
Author: spoole
Date: Thu May 21 11:03:36 2009
New Revision: 777059

URL: http://svn.apache.org/viewvc?rev=777059&view=rev
Log:
added back build.xml file to api project. Removed in error by earlier commit

Added:
    incubator/kato/trunk/org.apache.kato.api/build.xml   (with props)
Modified:
    incubator/kato/trunk/org.apache.kato.api/.settings/org.eclipse.core.resources.prefs

Modified: incubator/kato/trunk/org.apache.kato.api/.settings/org.eclipse.core.resources.prefs
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.api/.settings/org.eclipse.core.resources.prefs?rev=777059&r1=777058&r2=777059&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato.api/.settings/org.eclipse.core.resources.prefs (original)
+++ incubator/kato/trunk/org.apache.kato.api/.settings/org.eclipse.core.resources.prefs Thu
May 21 11:03:36 2009
@@ -1,5 +1,4 @@
-#Fri Jan 30 14:26:56 GMT 2009
-eclipse.preferences.version=1
-encoding/build.properties=ISO-8859-1
-encoding/build.xml=UTF-8
-encoding/plugin.xml=UTF-8
+#Thu May 21 12:02:18 BST 2009
+eclipse.preferences.version=1
+encoding/build.properties=ISO-8859-1
+encoding/plugin.xml=UTF-8

Added: incubator/kato/trunk/org.apache.kato.api/build.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.api/build.xml?rev=777059&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato.api/build.xml (added)
+++ incubator/kato/trunk/org.apache.kato.api/build.xml Thu May 21 11:03:36 2009
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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
+  
+  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.
+-->
+<!-- ======================================================================          
                                       
+
+	 Apache Kato API  Build script
+                           
+     Configuration properties are kept in  build.properties local to this
+     file.
+     
+     The junit dependency is fetched from the junit website                             
                
+     ====================================================================== -->
+<project name="project" default="default">
+
+	<tstamp />
+
+	<property file="build.properties" />
+
+	<!-- ================================= 
+          target: default              
+         ================================= -->
+
+	<target name="default">
+		<antcall target="fetch.dependencies"/>
+		<antcall target="clean" />
+		<antcall target="compile" />
+		<antcall target="test" />
+		<antcall target="javadoc" />
+		<antcall target="jar" />
+
+
+	</target>
+
+	
+	<!-- 
+	   fetch required dependencies 
+	   In this case junit
+	-->
+	<target name="fetch.dependencies">
+	      <mkdir dir="${dependencies}"/>
+		  <mkdir dir="${dependencies}/junit"/>
+				
+		  <get dest="${dependencies}/junit/junit.zip" src="${junit.jar.url}" usetimestamp="true"
 />
+		  <unzip dest="${dependencies}/junit"  src="${dependencies}/junit/junit.zip"/>
+	</target>
+	
+	
+	<!-- remove compiled classes, jars etc-->
+
+	<target name="clean">
+		<delete dir="${bin}" />
+		<delete dir="${output}" />
+
+	</target>
+
+	<!-- compile -->
+
+	<target name="compile">
+
+		<mkdir dir="${bin}" />
+
+		<javac srcdir="${src}" debug="on" destdir="${bin}" source="${srclevel}" target="${srclevel}"
/>
+		<javac srcdir="${testsrc}" debug="on" destdir="${bin}" source="${srclevel}" target="${srclevel}">
+			<classpath>
+				<path location="${junit.jar}" />
+			</classpath>
+
+		</javac>
+		<copy todir="${bin}/META-INF" file="META-INF/MANIFEST.MF">
+			<filterset>
+				<filter token="TITLE" value="Apache Kato API ${buildname} built ${DSTAMP}:${TSTAMP}"
/>
+				<filter token="VERSION" value="${build.number}" />
+			</filterset>
+
+		</copy>
+	</target>
+
+	<target name="test" unless="no.test">
+
+		<mkdir dir="${output}" />
+		<mkdir dir="${junit.output}" />
+
+		<junit>
+			<classpath>
+				<path location="${junit.jar}" />
+				<path location="${bin}" />
+			</classpath>
+
+			<formatter type="plain" />
+			<formatter type="xml" />
+
+			<batchtest fork="yes" todir="${junit.output}">
+				<fileset dir="${testsrc}">
+					<include name="**/*Test*.java" />
+					<exclude name="**/AllTests.java" />
+				</fileset>
+			</batchtest>
+
+		</junit>
+	</target>
+
+	<target name="jar">
+		<mkdir dir="${dist}" />
+
+		<jar jarfile="${jarfile}" filesonly="true" manifest="${bin}/META-INF/MANIFEST.MF">
+			<fileset dir="${bin}">
+				<exclude name="test**/*.class" />
+			</fileset>
+		</jar>
+		<jar jarfile="${srcjarfile}" filesonly="true">
+			<fileset dir="${src}">
+				<include name="**/*.java" />
+			</fileset>
+		</jar>
+	</target>
+
+
+
+
+	<target name="javadoc" unless="no.javadoc">
+		<mkdir dir="${javadoc.output}" />
+		<javadoc packagenames="org.apache.kato.*" verbose="false" sourcepath="${src}"  defaultexcludes="yes"
destdir="${javadoc.output}" author="true" version="true" use="true" failonerror="true" >
+			<link href="http://java.sun.com/j2se/1.5.0/docs/api/" />
+		</javadoc>
+	</target>
+
+
+</project>
\ No newline at end of file

Propchange: incubator/kato/trunk/org.apache.kato.api/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message