You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by sp...@apache.org on 2009/05/08 09:32:18 UTC
svn commit: r772901 - in
/incubator/kato/trunk/org.apache.kato.tools.katoview: ./ build.properties
build.xml
Author: spoole
Date: Fri May 8 09:32:16 2009
New Revision: 772901
URL: http://svn.apache.org/viewvc?rev=772901&view=rev
Log:
updated katoview project with new build scripts
Added:
incubator/kato/trunk/org.apache.kato.tools.katoview/build.properties (with props)
incubator/kato/trunk/org.apache.kato.tools.katoview/build.xml (with props)
Modified:
incubator/kato/trunk/org.apache.kato.tools.katoview/ (props changed)
Propchange: incubator/kato/trunk/org.apache.kato.tools.katoview/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri May 8 09:32:16 2009
@@ -0,0 +1,3 @@
+output
+
+dependencies
Added: incubator/kato/trunk/org.apache.kato.tools.katoview/build.properties
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.tools.katoview/build.properties?rev=772901&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato.tools.katoview/build.properties (added)
+++ incubator/kato/trunk/org.apache.kato.tools.katoview/build.properties Fri May 8 09:32:16 2009
@@ -0,0 +1,25 @@
+#-------------------------------------------------------------------------------
+# 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.
+#-------------------------------------------------------------------------------
+api.dir=org.apache.kato.api/bin
+api.jar.url=http://hudson.zones.apache.org/hudson/job/kato.api-head/lastStableBuild/artifact/org.apache.kato.api/output/dist/kato.api-head.jar
+dependencies=dependencies
+output=output
+dist=${output}/dist
+javadoc.output=${output}/javadoc
+src=src
+testsrc=testsrc
+bin=bin
+srclevel=1.4
+jarfile=${dist}/katoview-head.jar
+srcjarfile=${dist}/katoview-head.src.jar
\ No newline at end of file
Propchange: incubator/kato/trunk/org.apache.kato.tools.katoview/build.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/kato/trunk/org.apache.kato.tools.katoview/build.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.tools.katoview/build.xml?rev=772901&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato.tools.katoview/build.xml (added)
+++ incubator/kato/trunk/org.apache.kato.tools.katoview/build.xml Fri May 8 09:32:16 2009
@@ -0,0 +1,113 @@
+<?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 KatoView Build script
+
+ Configuration properties are kept in build.properties local to this
+ file.
+
+ The Kato API dependency is fetched from Hudson if a local api project
+ is not found
+
+ ====================================================================== -->
+<project name="project" default="default">
+
+ <tstamp />
+
+ <property file="build.properties" />
+
+ <property name="local.api" location="../${api.dir}"/>
+ <available file="${local.api}" property="local.api.present"/>
+
+ <path id="classpath">
+ <pathelement location="${local.api}"/>
+ <fileset dir="${dependencies}">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <!-- =================================
+ target: default
+ ================================= -->
+
+ <target name="default">
+ <antcall target="fetch.dependencies"/>
+ <antcall target="clean" />
+ <antcall target="compile" />
+ <antcall target="javadoc" />
+ <antcall target="jar" />
+
+
+ </target>
+
+
+ <!--
+ fetch required dependencies
+ In this case the API if it cannot be found locally
+ -->
+ <target name="fetch.dependencies" unless="local.api.present" >
+ <mkdir dir="${dependencies}"/>
+ <get dest="${dependencies}/kato.api.jar" src="${api.jar.url}" usetimestamp="true" />
+ </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" classpathref="classpath"
+ destdir="${bin}" source="${srclevel}" target="${srclevel}" />
+
+ </target>
+
+
+ <target name="jar">
+ <mkdir dir="${dist}" />
+
+ <jar jarfile="${jarfile}" filesonly="true" >
+ <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>
Propchange: incubator/kato/trunk/org.apache.kato.tools.katoview/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain