You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by lm...@apache.org on 2005/09/30 07:10:06 UTC
svn commit: r292635 - in /incubator/woden/java: LICENSE LICENSE.dom
LICENSE.sax LICENSE.xerces NOTICE README build.properties build.xml
Author: lmandel
Date: Thu Sep 29 22:09:58 2005
New Revision: 292635
URL: http://svn.apache.org/viewcvs?rev=292635&view=rev
Log:
Updated build to:
1. build only woden.jar by default
2. build woden zip, tar.gz, and tar.bz2 when performing a complete build
- includes required libraries (Xerces, XmlSchema)
- includes Javadoc
- includes licenses and readme
3. create MD5 and SHA1 hashes when performing a complete build
4. allow building nightly, integration, milestone, and release builds (different naming)
Added:
incubator/woden/java/LICENSE
incubator/woden/java/LICENSE.dom
incubator/woden/java/LICENSE.sax
incubator/woden/java/LICENSE.xerces
incubator/woden/java/NOTICE
incubator/woden/java/README
Modified:
incubator/woden/java/build.properties
incubator/woden/java/build.xml
Added: incubator/woden/java/LICENSE
URL: http://svn.apache.org/viewcvs/incubator/woden/java/LICENSE?rev=292635&view=auto
==============================================================================
--- incubator/woden/java/LICENSE (added)
+++ incubator/woden/java/LICENSE Thu Sep 29 22:09:58 2005
@@ -0,0 +1,203 @@
+/*
+ * Apache License
+ * Version 2.0, January 2004
+ * http://www.apache.org/licenses/
+ *
+ * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+ *
+ * 1. Definitions.
+ *
+ * "License" shall mean the terms and conditions for use, reproduction,
+ * and distribution as defined by Sections 1 through 9 of this document.
+ *
+ * "Licensor" shall mean the copyright owner or entity authorized by
+ * the copyright owner that is granting the License.
+ *
+ * "Legal Entity" shall mean the union of the acting entity and all
+ * other entities that control, are controlled by, or are under common
+ * control with that entity. For the purposes of this definition,
+ * "control" means (i) the power, direct or indirect, to cause the
+ * direction or management of such entity, whether by contract or
+ * otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ * outstanding shares, or (iii) beneficial ownership of such entity.
+ *
+ * "You" (or "Your") shall mean an individual or Legal Entity
+ * exercising permissions granted by this License.
+ *
+ * "Source" form shall mean the preferred form for making modifications,
+ * including but not limited to software source code, documentation
+ * source, and configuration files.
+ *
+ * "Object" form shall mean any form resulting from mechanical
+ * transformation or translation of a Source form, including but
+ * not limited to compiled object code, generated documentation,
+ * and conversions to other media types.
+ *
+ * "Work" shall mean the work of authorship, whether in Source or
+ * Object form, made available under the License, as indicated by a
+ * copyright notice that is included in or attached to the work
+ * (an example is provided in the Appendix below).
+ *
+ * "Derivative Works" shall mean any work, whether in Source or Object
+ * form, that is based on (or derived from) the Work and for which the
+ * editorial revisions, annotations, elaborations, or other modifications
+ * represent, as a whole, an original work of authorship. For the purposes
+ * of this License, Derivative Works shall not include works that remain
+ * separable from, or merely link (or bind by name) to the interfaces of,
+ * the Work and Derivative Works thereof.
+ *
+ * "Contribution" shall mean any work of authorship, including
+ * the original version of the Work and any modifications or additions
+ * to that Work or Derivative Works thereof, that is intentionally
+ * submitted to Licensor for inclusion in the Work by the copyright owner
+ * or by an individual or Legal Entity authorized to submit on behalf of
+ * the copyright owner. For the purposes of this definition, "submitted"
+ * means any form of electronic, verbal, or written communication sent
+ * to the Licensor or its representatives, including but not limited to
+ * communication on electronic mailing lists, source code control systems,
+ * and issue tracking systems that are managed by, or on behalf of, the
+ * Licensor for the purpose of discussing and improving the Work, but
+ * excluding communication that is conspicuously marked or otherwise
+ * designated in writing by the copyright owner as "Not a Contribution."
+ *
+ * "Contributor" shall mean Licensor and any individual or Legal Entity
+ * on behalf of whom a Contribution has been received by Licensor and
+ * subsequently incorporated within the Work.
+ *
+ * 2. Grant of Copyright License. Subject to the terms and conditions of
+ * this License, each Contributor hereby grants to You a perpetual,
+ * worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ * copyright license to reproduce, prepare Derivative Works of,
+ * publicly display, publicly perform, sublicense, and distribute the
+ * Work and such Derivative Works in Source or Object form.
+ *
+ * 3. Grant of Patent License. Subject to the terms and conditions of
+ * this License, each Contributor hereby grants to You a perpetual,
+ * worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ * (except as stated in this section) patent license to make, have made,
+ * use, offer to sell, sell, import, and otherwise transfer the Work,
+ * where such license applies only to those patent claims licensable
+ * by such Contributor that are necessarily infringed by their
+ * Contribution(s) alone or by combination of their Contribution(s)
+ * with the Work to which such Contribution(s) was submitted. If You
+ * institute patent litigation against any entity (including a
+ * cross-claim or counterclaim in a lawsuit) alleging that the Work
+ * or a Contribution incorporated within the Work constitutes direct
+ * or contributory patent infringement, then any patent licenses
+ * granted to You under this License for that Work shall terminate
+ * as of the date such litigation is filed.
+ *
+ * 4. Redistribution. You may reproduce and distribute copies of the
+ * Work or Derivative Works thereof in any medium, with or without
+ * modifications, and in Source or Object form, provided that You
+ * meet the following conditions:
+ *
+ * (a) You must give any other recipients of the Work or
+ * Derivative Works a copy of this License; and
+ *
+ * (b) You must cause any modified files to carry prominent notices
+ * stating that You changed the files; and
+ *
+ * (c) You must retain, in the Source form of any Derivative Works
+ * that You distribute, all copyright, patent, trademark, and
+ * attribution notices from the Source form of the Work,
+ * excluding those notices that do not pertain to any part of
+ * the Derivative Works; and
+ *
+ * (d) If the Work includes a "NOTICE" text file as part of its
+ * distribution, then any Derivative Works that You distribute must
+ * include a readable copy of the attribution notices contained
+ * within such NOTICE file, excluding those notices that do not
+ * pertain to any part of the Derivative Works, in at least one
+ * of the following places: within a NOTICE text file distributed
+ * as part of the Derivative Works; within the Source form or
+ * documentation, if provided along with the Derivative Works; or,
+ * within a display generated by the Derivative Works, if and
+ * wherever such third-party notices normally appear. The contents
+ * of the NOTICE file are for informational purposes only and
+ * do not modify the License. You may add Your own attribution
+ * notices within Derivative Works that You distribute, alongside
+ * or as an addendum to the NOTICE text from the Work, provided
+ * that such additional attribution notices cannot be construed
+ * as modifying the License.
+ *
+ * You may add Your own copyright statement to Your modifications and
+ * may provide additional or different license terms and conditions
+ * for use, reproduction, or distribution of Your modifications, or
+ * for any such Derivative Works as a whole, provided Your use,
+ * reproduction, and distribution of the Work otherwise complies with
+ * the conditions stated in this License.
+ *
+ * 5. Submission of Contributions. Unless You explicitly state otherwise,
+ * any Contribution intentionally submitted for inclusion in the Work
+ * by You to the Licensor shall be under the terms and conditions of
+ * this License, without any additional terms or conditions.
+ * Notwithstanding the above, nothing herein shall supersede or modify
+ * the terms of any separate license agreement you may have executed
+ * with Licensor regarding such Contributions.
+ *
+ * 6. Trademarks. This License does not grant permission to use the trade
+ * names, trademarks, service marks, or product names of the Licensor,
+ * except as required for reasonable and customary use in describing the
+ * origin of the Work and reproducing the content of the NOTICE file.
+ *
+ * 7. Disclaimer of Warranty. Unless required by applicable law or
+ * agreed to in writing, Licensor provides the Work (and each
+ * Contributor provides its Contributions) on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied, including, without limitation, any warranties or conditions
+ * of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ * PARTICULAR PURPOSE. You are solely responsible for determining the
+ * appropriateness of using or redistributing the Work and assume any
+ * risks associated with Your exercise of permissions under this License.
+ *
+ * 8. Limitation of Liability. In no event and under no legal theory,
+ * whether in tort (including negligence), contract, or otherwise,
+ * unless required by applicable law (such as deliberate and grossly
+ * negligent acts) or agreed to in writing, shall any Contributor be
+ * liable to You for damages, including any direct, indirect, special,
+ * incidental, or consequential damages of any character arising as a
+ * result of this License or out of the use or inability to use the
+ * Work (including but not limited to damages for loss of goodwill,
+ * work stoppage, computer failure or malfunction, or any and all
+ * other commercial damages or losses), even if such Contributor
+ * has been advised of the possibility of such damages.
+ *
+ * 9. Accepting Warranty or Additional Liability. While redistributing
+ * the Work or Derivative Works thereof, You may choose to offer,
+ * and charge a fee for, acceptance of support, warranty, indemnity,
+ * or other liability obligations and/or rights consistent with this
+ * License. However, in accepting such obligations, You may act only
+ * on Your own behalf and on Your sole responsibility, not on behalf
+ * of any other Contributor, and only if You agree to indemnify,
+ * defend, and hold each Contributor harmless for any liability
+ * incurred by, or claims asserted against, such Contributor by reason
+ * of your accepting any such warranty or additional liability.
+ *
+ * END OF TERMS AND CONDITIONS
+ *
+ * APPENDIX: How to apply the Apache License to your work.
+ *
+ * To apply the Apache License to your work, attach the following
+ * boilerplate notice, with the fields enclosed by brackets "[]"
+ * replaced with your own identifying information. (Don't include
+ * the brackets!) The text should be enclosed in the appropriate
+ * comment syntax for the file format. We also recommend that a
+ * file or class name and description of purpose be included on the
+ * same "printed page" as the copyright notice for easier
+ * identification within third-party archives.
+ *
+ * Copyright [yyyy] [name of copyright owner]
+ *
+ * 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.
+ */
Added: incubator/woden/java/LICENSE.dom
URL: http://svn.apache.org/viewcvs/incubator/woden/java/LICENSE.dom?rev=292635&view=auto
==============================================================================
--- incubator/woden/java/LICENSE.dom (added)
+++ incubator/woden/java/LICENSE.dom Thu Sep 29 22:09:58 2005
@@ -0,0 +1,71 @@
+This license came from:
+http://www.w3.org/Consortium/Legal/copyright-software-19980720
+
+
+W3C® SOFTWARE NOTICE AND LICENSE
+Copyright © 1994-2001 World
+Wide Web Consortium, <a href="http://www.w3.org/">World
+Wide Web Consortium</a>, (<a href=
+"http://www.lcs.mit.edu/">Massachusetts Institute of
+Technology</a>, <a href="http://www.inria.fr/">Institut National de
+Recherche en Informatique et en Automatique</a>, <a href=
+"http://www.keio.ac.jp/">Keio University</a>). All Rights Reserved.
+http://www.w3.org/Consortium/Legal/
+
+This W3C work (including software, documents, or other related
+items) is being provided by the copyright holders under the
+following license. By obtaining, using and/or copying this work,
+you (the licensee) agree that you have read, understood, and will
+comply with the following terms and conditions:
+Permission to use, copy, modify, and distribute this software
+and its documentation, with or without modification, for any
+purpose and without fee or royalty is hereby granted, provided that
+you include the following on ALL copies of the software and
+documentation or portions thereof, including modifications, that
+you make:
+
+The full text of this NOTICE in a location viewable to users of
+the redistributed or derivative work.
+
+Any pre-existing intellectual property disclaimers, notices, or
+terms and conditions. If none exist, a short notice of the
+following form (hypertext is preferred, text is permitted) should
+be used within the body of any redistributed or derivative code:
+"Copyright © [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of
+Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
+http://www.w3.org/Consortium/Legal/"
+
+Notice of any changes or modifications to the W3C files,
+including the date changes were made. (We recommend you provide
+URIs to the location from which the code is derived.)
+
+THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
+COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
+MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
+USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD
+PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,
+SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE
+SOFTWARE OR DOCUMENTATION.
+
+The name and trademarks of copyright holders may NOT be used in
+advertising or publicity pertaining to the software without
+specific, written prior permission. Title to copyright in this
+software and any associated documentation will at all times remain
+with copyright holders.
+____________________________________
+This formulation of W3C's notice and license became active on
+August 14 1998 so as to improve compatibility with GPL. This
+version ensures that W3C software licensing terms are no more
+restrictive than GPL and consequently W3C software may be
+distributed in GPL packages. See the older formulation for the
+policy prior to this date. Please see our Copyright FAQ for common
+questions about using materials from
+our site, including specific terms and conditions for packages like
+libwww, Amaya, and Jigsaw.
+Other questions about this notice can be
+directed to site-policy@w3.org.
+
+webmaster
Added: incubator/woden/java/LICENSE.sax
URL: http://svn.apache.org/viewcvs/incubator/woden/java/LICENSE.sax?rev=292635&view=auto
==============================================================================
--- incubator/woden/java/LICENSE.sax (added)
+++ incubator/woden/java/LICENSE.sax Thu Sep 29 22:09:58 2005
@@ -0,0 +1,20 @@
+This license came from: http://www.megginson.com/SAX/copying.html
+ However please note future versions of SAX may be covered
+ under http://saxproject.org/?selected=pd
+
+
+This page is now out of date -- see the new SAX site at
+http://www.saxproject.org/ for more up-to-date
+releases and other information. Please change your bookmarks.
+
+
+SAX2 is Free!
+
+I hereby abandon any property rights to SAX 2.0 (the Simple API for
+XML), and release all of the SAX 2.0 source code, compiled code, and
+documentation contained in this distribution into the Public Domain.
+SAX comes with NO WARRANTY or guarantee of fitness for any
+purpose.
+
+David Megginson, david@megginson.com
+2000-05-05
\ No newline at end of file
Added: incubator/woden/java/LICENSE.xerces
URL: http://svn.apache.org/viewcvs/incubator/woden/java/LICENSE.xerces?rev=292635&view=auto
==============================================================================
--- incubator/woden/java/LICENSE.xerces (added)
+++ incubator/woden/java/LICENSE.xerces Thu Sep 29 22:09:58 2005
@@ -0,0 +1,56 @@
+/*
+ * The Apache Software License, Version 1.1
+ *
+ *
+ * Copyright (c) 1999-2002 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ * if any, must include the following acknowledgment:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "Xerces" and "Apache Software Foundation" must
+ * not be used to endorse or promote products derived from this
+ * software without prior written permission. For written
+ * permission, please contact apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ * nor may "Apache" appear in their name, without prior written
+ * permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation and was
+ * originally based on software copyright (c) 1999, International
+ * Business Machines, Inc., http://www.ibm.com. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
Added: incubator/woden/java/NOTICE
URL: http://svn.apache.org/viewcvs/incubator/woden/java/NOTICE?rev=292635&view=auto
==============================================================================
--- incubator/woden/java/NOTICE (added)
+++ incubator/woden/java/NOTICE Thu Sep 29 22:09:58 2005
@@ -0,0 +1,15 @@
+ =========================================================================
+ == NOTICE file corresponding to the section 4 d of ==
+ == the Apache License, Version 2.0, ==
+ == in this case for the Apache Woden distribution. ==
+ =========================================================================
+
+ This product includes software developed by
+ The Apache Software Foundation (http://www.apache.org/).
+
+ This product includes also software developed by :
+ - the W3C consortium (http://www.w3c.org) ,
+ - the SAX project (http://www.saxproject.org)
+
+ Please read the different LICENSE files present in the root directory of
+ this distribution.
Added: incubator/woden/java/README
URL: http://svn.apache.org/viewcvs/incubator/woden/java/README?rev=292635&view=auto
==============================================================================
--- incubator/woden/java/README (added)
+++ incubator/woden/java/README Thu Sep 29 22:09:58 2005
@@ -0,0 +1,48 @@
+
+ W o d e n
+
+
+ Incubation Disclaimer
+ ---------------------
+
+ The Woden project is an effort undergoing incubation at the Apache
+ Software Foundation (ASF), sponsored by Davanum Srinivas. Incubation is
+ required of all newly accepted projects until a further review indicates
+ that the infrastructure, communications, and decision making process have
+ stabilized in a manner consistent with other successful ASF projects. While
+ incubation status is not necessarily a reflection of the completeness or
+ stability of the code, it does indicate that the project has yet to be fully
+ endorsed by the ASF.
+
+
+ What is it?
+ -----------
+
+ Woden is a Web Service Description Language (WSDL) validating parser.
+ Currently Woden supports WSDL 2.0.
+
+
+ The Latest Version
+ ------------------
+
+ Details of the latest version can be found on the Apache Woden
+ Project web site <http://incubator.apache.org/woden/>.
+
+
+ Documentation
+ -------------
+
+ Documentation is available in HTML format, in the docs/ directory.
+
+
+ Licensing
+ ---------
+
+ This software is licensed under the terms you may find in the file
+ named "LICENSE" in this directory.
+
+
+ Thanks for using Woden.
+
+ The Apache Woden Project
+ <http://incubator.apache.org/woden/>
Modified: incubator/woden/java/build.properties
URL: http://svn.apache.org/viewcvs/incubator/woden/java/build.properties?rev=292635&r1=292634&r2=292635&view=diff
==============================================================================
--- incubator/woden/java/build.properties (original)
+++ incubator/woden/java/build.properties Thu Sep 29 22:09:58 2005
@@ -16,11 +16,21 @@
###########################################################################
! Prereq information
-XmlSchemaURL = http://people.apache.org/~dims/maven/axis/jars/XmlSchema-0.9.jar
-XmlSchemaFile = XmlSchema-0.9.jar
+XmlSchemaURL = http://people.apache.org/~dims/maven/ws-commons/jars/XmlSchema-SNAPSHOT.jar
+XmlSchemaFile = XmlSchema-SNAPSHOT.jar
+XercesURL = http://www.apache.org/dist/xml/xerces-j/Xerces-J-bin.2.7.1.zip
+XercesFile = Xerces-J-bin.2.7.1.zip
+XercesJar1 = xercesImpl.jar
+XercesJar2 = xml-apis.jar
! The location of the Woden build home
-build.home = ../
+build.home = ../
! The version of Woden to build
-version = 1.0.0
\ No newline at end of file
+version = 1.0.0
+
+! The current milestone id
+milestone = 1
+
+! The type of build to run. Valid value are R - release, M - milestone, I - integration, N - nightly
+buildType = M
\ No newline at end of file
Modified: incubator/woden/java/build.xml
URL: http://svn.apache.org/viewcvs/incubator/woden/java/build.xml?rev=292635&r1=292634&r2=292635&view=diff
==============================================================================
--- incubator/woden/java/build.xml (original)
+++ incubator/woden/java/build.xml Thu Sep 29 22:09:58 2005
@@ -19,40 +19,50 @@
- SVN extract and tag.
- Automatic upload to download server and website.
-->
-<project name="woden" default="build" basedir=".">
+<project name="woden" default="buildImplAndAPI" basedir=".">
<property name="build.home" value="."/>
- <property name="build.output" value="${build.home}/java/build"/>
+ <property name="javaDir" value="${build.home}/java"/>
+ <property name="build.output" value="${javaDir}/build"/>
<property name="version" value="1.0.0"/>
<property name="downloads" value="${build.home}/downloads"/>
+ <property name="libraryDir" value="${downloads}/lib"/>
<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="src.home" value="${javaDir}/src"/>
+ <property name="testsrc.home" value="${javaDir}/test/"/>
+ <property name="eclipseplugin" value="${javaDir}/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"/>
+ <!-- Default to a nightly build -->
+ <property name="buildType" value="N"/>
- <target name="build" depends="clean, init, buildAPI, buildAll, buildEclipsePlugin, buildJavadoc, buildTests, runTests"/>
+ <target name="buildAll" depends="clean, init, buildAPI, buildImplAndAPI, buildEclipsePlugin, buildJavadoc, buildTests, runTests"/>
+
+ <target name="distBuild" depends="buildAll, createArchives, createChecksums"/>
<target name="init" depends="getPreReq">
<tstamp>
<format property="timestamp" pattern="yyyyMMdd_hhmm"/>
</tstamp>
- <property name="defaultBuildId" value="${timestamp}"/>
+ <property name="defaultBuildId" value="${buildType}${timestamp}"/>
<mkdir dir="${build.home}"/>
<mkdir dir="${build.output}"/>
- <condition property="buildId" value="${version}" else="${defaultBuildId}">
+ <condition property="buildId" value="${version}">
<equals arg1="${buildType}" arg2="R" casesensitive="false"/>
</condition>
+ <condition property="buildId" value="${version}M${milestone}" else="${defaultBuildId}">
+ <equals arg1="${buildType}" arg2="M" casesensitive="false"/>
+ </condition>
+
<available classname="junit.framework.Test" property="junitAvailable"/>
+ <property name="archiveDir" value="${build.output}/woden-${buildId}"/>
+
</target>
<target name="informJunit" unless="junitAvailable">
@@ -64,23 +74,64 @@
<target name="getPreReq" >
<mkdir dir="${downloads}"/>
<available file="${downloads}/${XmlSchemaFile}" property="XmlSchema.exists"/>
+ <available file="${downloads}/${XercesFile}" property="Xerces.exists"/>
<antcall target="getXmlSchema"/>
+ <antcall target="getXerces"/>
+
+ <antcall target="extractXmlSchema"/>
+ <antcall target="extractXerces"/>
+
+ <!-- flatten the lib dir -->
+ <copy todir="${libraryDir}">
+ <mapper type="flatten"/>
+ <fileset dir="${libraryDir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </copy>
+
+ <delete includeemptydirs="true">
+ <fileset dir="${libraryDir}">
+ <include name="**/*"/>
+ <exclude name="*.jar"/>
+ </fileset>
+ </delete>
</target>
- <!-- Get the latest version of XmlSchema for WS commons -->
+ <!-- Get the latest version of XmlSchema from WS commons -->
<target name="getXmlSchema" unless="XmlSchema.exists" >
<get src="${XmlSchemaURL}" dest="${downloads}/${XmlSchemaFile}" />
</target>
+ <!-- Get the latest version of Xerces and unzip it -->
+ <target name="getXerces" unless="Xerces.exists">
+ <get src="${XercesURL}" dest="${downloads}/${XercesFile}" />
+ </target>
+
+ <!-- Copy the XmlSchema file to the lib dir -->
+ <target name="extractXmlSchema">
+ <copy file="${downloads}/${XmlSchemaFile}" todir="${libraryDir}"/>
+ </target>
+
+ <!-- Extract the Xerces jars to the lib dir -->
+ <target name="extractXerces">
+ <unzip src="${downloads}/${XercesFile}"
+ dest="${libraryDir}">
+ <patternset>
+ <include name="**/${XercesJar1}"/>
+ <include name="**/${XercesJar2}"/>
+ </patternset>
+ </unzip>
+ </target>
+
<!-- This task builds the Woden API and implementation package.
This task produces woden.jar. -->
- <target name="buildAll" depends="init">
+ <target name="buildImplAndAPI" depends="init">
<mkdir dir="${build.classes}"/>
<javac sourcepath=""
srcdir="${src.home}"
destdir="${build.classes}"
- classpath="${downloads}/${XmlSchemaFile}"/>
+ classpath="${libraryDir}/${XmlSchemaFile};${libraryDir}/${XercesJar1};${libraryDir}/${XercesJar2}"/>
<!-- Copy all non Java files. -->
<copy todir="${build.classes}">
<fileset dir="${src.home}">
@@ -89,7 +140,7 @@
</fileset>
</copy>
- <jar destfile="${build.output}/woden-${buildId}.jar" basedir="${build.classes}"/>
+ <jar destfile="${build.output}/woden.jar" basedir="${build.classes}"/>
</target>
<!-- This task builds the Woden API package.
@@ -99,7 +150,7 @@
<javac sourcepath=""
srcdir="${src.home}"
destdir="${build.classes.api}"
- classpath="${downloads}/${XmlSchemaFile}">
+ classpath="${libraryDir}/${XmlSchemaFile};${libraryDir}/${XercesJar1};${libraryDir}/${XercesJar2}">
<include name="**/*.java"/>
<exclude name="**/internal/**/*.java"/>
</javac>
@@ -112,12 +163,12 @@
</fileset>
</copy>
- <jar destfile="${build.output}/woden-api-${buildId}.jar" basedir="${build.classes.api}"/>
+ <jar destfile="${build.output}/woden-api.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">
+ <target name="buildEclipsePlugin" depends="init, buildImplAndAPI">
<copy todir="${build.classes}">
<fileset dir="${eclipseplugin}"/>
</copy>
@@ -132,12 +183,12 @@
<!-- This task builds the Woden tests package.
This task produces woden-tests.jar. -->
- <target name="buildTests" depends="init, informJunit, buildAll" if="junitAvailable">
+ <target name="buildTests" depends="init, informJunit, buildImplAndAPI" if="junitAvailable">
<mkdir dir="${build.classes.test}"/>
<javac sourcepath=""
srcdir="${testsrc.home}"
destdir="${build.classes.test}"
- classpath="${downloads}/${XmlSchemaFile};${build.output}/woden-${buildId}.jar"/>
+ classpath="${libraryDir}/${XmlSchemaFile};${libraryDir}/${XercesJar1};${libraryDir}/${XercesJar2};${build.output}/woden.jar"/>
<!-- Copy all non Java files. -->
<copy todir="${build.classes.test}">
<fileset dir="${testsrc.home}">
@@ -146,7 +197,7 @@
</fileset>
</copy>
- <jar destfile="${build.output}/woden-test-${buildId}.jar" basedir="${build.classes.test}"/>
+ <jar destfile="${build.output}/woden-test.jar" basedir="${build.classes.test}"/>
</target>
<!-- This task builds the Woden Javadoc. -->
@@ -186,6 +237,71 @@
</fileset>
<report format="noframes" todir="${test.results}/html"/>
</junitreport>
+ </target>
+
+ <!-- Create the zip and tar.gz archives -->
+ <target name="createArchives">
+ <mkdir dir="${archiveDir}"/>
+ <mkdir dir="${archiveDir}/lib"/>
+ <mkdir dir="${archiveDir}/doc"/>
+ <mkdir dir="${archiveDir}/doc/apiDocs"/>
+ <!-- Copy the woden jars -->
+ <copy todir="${archiveDir}/lib">
+ <fileset dir="${build.output}">
+ <include name="woden.jar"/>
+ <include name="woden-api.jar"/>
+ </fileset>
+ </copy>
+ <!-- Copy the downloaded libraries -->
+ <copy todir="${archiveDir}/lib">
+ <fileset dir="${libraryDir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </copy>
+ <!-- Copy the JavaDoc -->
+ <copy todir="${archiveDir}/doc/apiDocs">
+ <fileset dir="${build.javadoc}"/>
+ </copy>
+ <!-- Copy the root files such as license, readme -->
+ <copy todir="${archiveDir}">
+ <fileset dir="${javaDir}">
+ <include name="LICENSE"/>
+ <include name="LICENSE.dom"/>
+ <include name="LICENSE.sax"/>
+ <include name="LICENSE.xerces"/>
+ <include name="NOTICE"/>
+ <include name="README"/>
+ </fileset>
+ </copy>
+
+ <antcall target="createZip"/>
+ <antcall target="createTarGz"/>
+ </target>
+
+ <!-- Builds a zip of the distributable dir -->
+ <!-- This target is not meant to be called on its own -->
+ <target name="createZip" depends="init">
+ <zip destfile="${build.output}/woden-${buildId}.zip"
+ basedir="${archiveDir}"/>
+ </target>
+
+ <!-- Builds a tar.gz of the distributable dir -->
+ <!-- This target is not meant to be called on its own -->
+ <target name="createTarGz" depends="init">
+ <tar tarfile="${build.output}/woden-${buildId}.tar" basedir="${archiveDir}"/>
+ <gzip zipfile="${build.output}/woden-${buildId}.tar.gz" src="${build.output}/woden-${buildId}.tar"/>
+ <bzip2 src="${build.output}/woden-${buildId}.tar.gz" destfile="${build.output}/woden-${buildId}.tar.bz2"/>
+ <delete file="${build.output}/woden-${buildId}.tar"/>
+ </target>
+
+ <!-- Create checksums for the zip and tar.gz files -->
+ <target name="createChecksums">
+ <checksum file="${build.output}/woden-${buildId}.zip"/>
+ <checksum file="${build.output}/woden-${buildId}.zip" algorithm="SHA" fileext=".sha1"/>
+ <checksum file="${build.output}/woden-${buildId}.tar.gz"/>
+ <checksum file="${build.output}/woden-${buildId}.tar.gz" algorithm="SHA" fileext=".sha1"/>
+ <checksum file="${build.output}/woden-${buildId}.tar.bz2"/>
+ <checksum file="${build.output}/woden-${buildId}.tar.bz2" algorithm="SHA" fileext=".sha1"/>
</target>
<!-- A clean target to be run before builds. -->
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org