Author: lmandel
Date: Tue Sep 20 15:40:09 2005
New Revision: 290578

URL: http://svn.apache.org/viewcvs?rev=290578&view=rev
Log:
Added Ant build. The build currently builds

1) woden-api.jar, which contains on the Woden API

2) woden.jar, which contains the Woden API + implementation

3) woden-test.jar, which contains the Woden JUnit test suite

4) org.apache.woden.jar, which is a Woden Eclipse plugin

and runs the Woden test suite.

Currently, in order to run this build you will need to extract the java tree 
from SVN. 

Added:
    incubator/woden/java/build.properties
    incubator/woden/java/build.xml
    incubator/woden/java/eclipseplugin/
    incubator/woden/java/eclipseplugin/META-INF/
    incubator/woden/java/eclipseplugin/META-INF/MANIFEST.MF
    incubator/woden/java/eclipseplugin/plugin.properties

Added: incubator/woden/java/build.properties
URL: 
http://svn.apache.org/viewcvs/incubator/woden/java/build.properties?rev=290578&view=auto
==============================================================================
--- incubator/woden/java/build.properties (added)
+++ incubator/woden/java/build.properties Tue Sep 20 15:40:09 2005
@@ -0,0 +1,26 @@
+###########################################################################

+#

+# Copyright 2005 Apached 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 

+# 

+# 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.

+###########################################################################

+

+! Prereq information

+XmlSchemaURL = http://people.apache.org/~dims/maven/axis/jars/XmlSchema-0.9.jar

+XmlSchemaFile = XmlSchema-0.9.jar

+

+! The location of the Woden build home

+build.home = ../

+

+! The version of Woden to build

+version = 1.0.0
\ No newline at end of file

Added: incubator/woden/java/build.xml
URL: 
http://svn.apache.org/viewcvs/incubator/woden/java/build.xml?rev=290578&view=auto
==============================================================================
--- incubator/woden/java/build.xml (added)
+++ incubator/woden/java/build.xml Tue Sep 20 15:40:09 2005
@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="UTF-8"?>

+<!-- 

+  Copyright 2005 Apached 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 

+  

+  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.

+  

+  TODO:

+       - include XMLSchema from XS commons into woden api and impl jars.

+       - SVN extract and tag.

+       - Automatic upload to download server and website.

+ -->

+<project name="woden" default="build" basedir=".">

+       <property name="build.home" value="."/>

+       <property name="build.output" value="${build.home}/java/build"/>

+       <property name="version" value="1.0.0"/>

+       

+       <property name="downloads" value="${build.home}/downloads"/>

+       <property name="build.classes" value="${build.home}/classes"/>

+       <property name="build.classes.api" value="${build.home}/classesapi"/>

+       <property name="build.classes.test" value="${build.home}/classestest"/>

+       <property name="test.results" value="${build.output}/test-results"/>

+       <property name="src.home" value="${build.home}/java/src"/>

+       <property name="testsrc.home" value="${build.home}/java/test/"/>

+       <property name="eclipseplugin" 
value="${build.home}/java/eclipseplugin"/>

+       <property name="manifestfile" value="META-INF/MANIFEST.MF"/>

+       <property name="build.javadoc" value="${build.output}/Javadoc"/>

+       <!-- valid values are I for integration and R for release -->

+       <property name="buildType" value="I"/>

+       

+       <target name="build" depends="clean, init, buildAPI, buildAll, 
buildEclipsePlugin, buildJavadoc, buildTests, runTests"/>

+       

+       <target name="init" depends="getPreReq">

+               <tstamp>

+               <format property="timestamp" pattern="yyyyMMdd_hhmm"/>

+               </tstamp>

+               <property name="defaultBuildId" value="${timestamp}"/>

+               <mkdir dir="${build.home}"/>

+               <mkdir dir="${build.output}"/>

+               

+               <condition property="buildId" value="${version}" 
else="${defaultBuildId}">

+                       <equals arg1="${buildType}" arg2="R" 
casesensitive="false"/>

+               </condition>

+               

+               <available classname="junit.framework.Test" 
property="junitAvailable"/>

+               

+       </target>

+       

+       <target name="informJunit" unless="junitAvailable">

+               <echo message="JUnit tests will not be compiled or run."/>

+               <echo message="In order to compile and run the JUnit tests you 
must install junit.jar on your classpath."/>

+       </target>

+       

+       <!-- Get prerequisite libraries for the build. -->

+        <target name="getPreReq"  >

+               <mkdir dir="${downloads}"/>

+       <available file="${downloads}/${XmlSchemaFile}" 
property="XmlSchema.exists"/>

+        

+        <antcall target="getXmlSchema"/> 

+    </target>

+    

+       <!-- Get the latest version of XmlSchema for WS commons -->

+       <target name="getXmlSchema" unless="XmlSchema.exists" >

+               <get src="${XmlSchemaURL}" dest="${downloads}/${XmlSchemaFile}" 
/>

+       </target>

+       

+       <!-- This task builds the Woden API and implementation package.

+                This task produces woden.jar. -->

+       <target name="buildAll" depends="init">

+               <mkdir dir="${build.classes}"/>

+               <javac sourcepath="" 

+                          srcdir="${src.home}"

+                          destdir="${build.classes}" 

+                          classpath="${downloads}/${XmlSchemaFile}"/>

+               <!-- Copy all non Java files. -->

+               <copy todir="${build.classes}">

+                       <fileset dir="${src.home}">

+                               <include name="**/*"/>

+                               <exclude name="**/*.java"/>

+                       </fileset>

+               </copy>

+                          

+               <jar destfile="${build.output}/woden-${buildId}.jar" 
basedir="${build.classes}"/>

+       </target>

+       

+       <!-- This task builds the Woden API package. 

+                This task produces woden-api.jar. -->

+       <target name="buildAPI" depends="init">

+               <mkdir dir="${build.classes.api}"/>

+               <javac sourcepath="" 

+                          srcdir="${src.home}"

+                          destdir="${build.classes.api}" 

+                          classpath="${downloads}/${XmlSchemaFile}">

+               <include name="**/*.java"/>

+               <exclude name="**/internal/**/*.java"/>

+               </javac>

+               <!-- Copy all non Java files. -->

+               <copy todir="${build.classes.api}">

+                       <fileset dir="${src.home}">

+                               <include name="**/*"/>

+                               <exclude name="**/*.java"/>

+                               <exclude name="**/internal/**/*"/>

+                       </fileset>

+               </copy>

+

+               <jar destfile="${build.output}/woden-api-${buildId}.jar" 
basedir="${build.classes.api}"/>

+       </target>

+       

+       <!-- This task builds a Woden Eclipse Plugin.

+                The plugin contains the API and implementation. -->

+       <target name="buildEclipsePlugin" depends="init, buildAll">

+               <copy todir="${build.classes}">

+                       <fileset dir="${eclipseplugin}"/>

+               </copy>

+               <replace file="${build.classes}/${manifestfile}"

+                                token="*VERSION_NUMBER*"

+                                value="${version}"/>

+                                

+               <jar destfile="${build.output}/org.apache.woden_${version}.jar" 

+                        basedir="${build.classes}"

+                        manifest="${build.classes}/${manifestfile}"/>

+       </target>

+       

+       <!-- This task builds the Woden tests package.

+                This task produces woden-tests.jar. -->

+       <target name="buildTests" depends="init, informJunit, buildAll" 
if="junitAvailable">

+               <mkdir dir="${build.classes.test}"/>

+               <javac sourcepath="" 

+                          srcdir="${testsrc.home}"

+                          destdir="${build.classes.test}" 

+                          
classpath="${downloads}/${XmlSchemaFile};${build.output}/woden-${buildId}.jar"/>

+               <!-- Copy all non Java files. -->

+               <copy todir="${build.classes.test}">

+                       <fileset dir="${testsrc.home}">

+                               <include name="**/*"/>

+                               <exclude name="**/*.java"/>

+                       </fileset>

+               </copy>

+

+               <jar destfile="${build.output}/woden-test-${buildId}.jar" 
basedir="${build.classes.test}"/>

+       </target>

+       

+       <!--  This task builds the Woden Javadoc. -->

+       <target name="buildJavadoc" depends="init">

+               <javadoc destdir="${build.javadoc}">

+                       <fileset dir="${src.home}">

+                               <include name="**/*.java"/>

+                       <exclude name="**/internal/**/*.java"/>

+                       </fileset>

+               </javadoc>

+       </target>

+       

+       <target name="runTests" depends="init, informJunit, buildTests" 
if="junitAvailable">

+       

+               <mkdir dir="${test.results}"/>

+               

+               <junit>

+                       <classpath>

+                               <pathelement location="${build.classes}" />

+                               <pathelement location="${build.classes.test}" />

+                               <pathelement 
location="${downloads}/${XmlSchemaFile}"/>

+                       </classpath>

+                       

+                       <test name="org.apache.woden.tests.AllWodenTests"

+                                 haltonfailure="no"

+                                 outfile="woden-${buildId}-test-results"

+                                 todir="${test.results}">

+                               <formatter type="xml"/>

+                       </test>

+               </junit>

+               

+               <mkdir dir="${test.results}/html"/>

+               

+               <junitreport tofile="woden-${buildId}-test-results.html">

+                       <fileset dir="${test.results}">

+                       <include name="*.xml"/>

+                       </fileset>

+                       <report format="noframes" todir="${test.results}/html"/>

+               </junitreport>

+       </target>

+       

+       <!-- A clean target to be run before builds. -->

+       <target name="clean">

+               <delete dir="${build.classes}"/>

+               <delete dir="${build.classes.api}"/>

+               <delete dir="${build.classes.test}"/>

+               <delete dir="${build.output}"/>

+       </target>

+       

+</project>
\ No newline at end of file

Added: incubator/woden/java/eclipseplugin/META-INF/MANIFEST.MF
URL: 
http://svn.apache.org/viewcvs/incubator/woden/java/eclipseplugin/META-INF/MANIFEST.MF?rev=290578&view=auto
==============================================================================
--- incubator/woden/java/eclipseplugin/META-INF/MANIFEST.MF (added)
+++ incubator/woden/java/eclipseplugin/META-INF/MANIFEST.MF Tue Sep 20 15:40:09 
2005
@@ -0,0 +1,23 @@
+Manifest-Version: 1.0

+Bundle-ManifestVersion: 2

+Bundle-Name: %_PLUGIN_NAME

+Bundle-SymbolicName: org.apache.woden; singleton:=true

+Bundle-Version: *VERSION_NUMBER*

+Bundle-Vendor: %_PLUGIN_PROVIDER

+Bundle-Localization: plugin

+Eclipse-AutoStart: true

+Export-Package: javax.xml.namespace,

+ org.apache.woden,

+ org.apache.woden.internal,

+ org.apache.woden.internal.schema,

+ org.apache.woden.internal.util,

+ org.apache.woden.internal.util.dom,

+ org.apache.woden.internal.wsdl20,

+ org.apache.woden.schema,

+ org.apache.woden.tests,

+ org.apache.woden.tests.wsdl20,

+ org.apache.woden.wsdl20,

+ org.apache.woden.wsdl20.extensions,

+ org.apache.woden.wsdl20.fragids,

+ org.apache.woden.wsdl20.xml

+Require-Bundle: org.apache.xerces


Added: incubator/woden/java/eclipseplugin/plugin.properties
URL: 
http://svn.apache.org/viewcvs/incubator/woden/java/eclipseplugin/plugin.properties?rev=290578&view=auto
==============================================================================
--- incubator/woden/java/eclipseplugin/plugin.properties (added)
+++ incubator/woden/java/eclipseplugin/plugin.properties Tue Sep 20 15:40:09 
2005
@@ -0,0 +1,18 @@
+###############################################################################

+# Copyright 2005 Apached 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 

+# 

+# 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.

+###############################################################################

+

+_PLUGIN_PROVIDER    = Apache Software Foundation

+_PLUGIN_NAME        = Woden
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to