Skip to Content.
Sympa Menu

notify-dpml - r1181 - in trunk/main: . transit transit/spec transit/spec/etc

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1181 - in trunk/main: . transit transit/spec transit/spec/etc
  • Date: Tue, 14 Mar 2006 20:29:50 +0100

Author: mcconnell
Date: 2006-03-14 20:29:48 +0100 (Tue, 14 Mar 2006)
New Revision: 1181

Added:
trunk/main/transit/spec/
trunk/main/transit/spec/build.properties
trunk/main/transit/spec/build.xml
trunk/main/transit/spec/etc/
trunk/main/transit/spec/etc/transit.xsd
Modified:
trunk/main/bootstrap
trunk/main/bootstrap.bat
trunk/main/transit/module.xml
Log:
add the first cut on the schema definition for the transit configuration

Modified: trunk/main/bootstrap
===================================================================
--- trunk/main/bootstrap 2006-03-14 18:39:59 UTC (rev 1180)
+++ trunk/main/bootstrap 2006-03-14 19:29:48 UTC (rev 1181)
@@ -86,6 +86,13 @@
cd ../..
}

+transitSpec()
+{
+ cd transit/spec
+ build clean install
+ cd ../..
+}
+
transitTools()
{
cd transit/tools
@@ -143,6 +150,7 @@
dpmlState
dpmlComponent
dpmlType
+transitSpec
transitMain
transitTools
depotLibrary

Modified: trunk/main/bootstrap.bat
===================================================================
--- trunk/main/bootstrap.bat 2006-03-14 18:39:59 UTC (rev 1180)
+++ trunk/main/bootstrap.bat 2006-03-14 19:29:48 UTC (rev 1181)
@@ -25,6 +25,8 @@
IF ERRORLEVEL 1 GOTO :exit
CALL :dpml-type
IF ERRORLEVEL 1 GOTO :exit
+CALL :transit-spec
+IF ERRORLEVEL 1 GOTO :exit
CALL :transit-main
IF ERRORLEVEL 1 GOTO :exit
CALL :transit-tools
@@ -89,6 +91,12 @@
POPD
GOTO :EOF

+:transit-spec
+PUSHD transit\spec
+CALL :build clean install
+POPD
+GOTO :EOF
+
:transit-main
PUSHD transit\core
CALL :build clean install

Modified: trunk/main/transit/module.xml
===================================================================
--- trunk/main/transit/module.xml 2006-03-14 18:39:59 UTC (rev 1180)
+++ trunk/main/transit/module.xml 2006-03-14 19:29:48 UTC (rev 1181)
@@ -7,12 +7,21 @@
<properties>
<property name="project.test.fork" value="true"/>
</properties>
-
+
+ <resource name="dpml-transit-spec">
+ <types>
+ <type id="xsd"/>
+ </types>
+ </resource>
+
<project name="dpml-transit-console" basedir="console">
<types>
<type id="jar"/>
<part:plugin class="net.dpml.transit.console.TransitConsoleHandler"/>
</types>
+ <dependencies scope="build">
+ <include key="dpml-transit-spec"/>
+ </dependencies>
<dependencies>
<include ref="dpml/transit/dpml-transit-main"/>
<include ref="dpml/util/dpml-util-cli"/>

Added: trunk/main/transit/spec/build.properties
===================================================================
--- trunk/main/transit/spec/build.properties 2006-03-14 18:39:59 UTC (rev
1180)
+++ trunk/main/transit/spec/build.properties 2006-03-14 19:29:48 UTC (rev
1181)
@@ -0,0 +1,2 @@
+
+project.version = 1.0

Added: trunk/main/transit/spec/build.xml
===================================================================
--- trunk/main/transit/spec/build.xml 2006-03-14 18:39:59 UTC (rev 1180)
+++ trunk/main/transit/spec/build.xml 2006-03-14 19:29:48 UTC (rev 1181)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Copyright 2004-2005 Stephen J McConnell
+ Copyright 2004 Niclas Hedhman
+
+ 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.
+-->
+
+<project name="dpml-transit-spec" default="install" basedir=".">
+
+ <property name="project.group" value="dpml/transit"/>
+ <property name="project.name" value="dpml-transit-spec"/>
+
+ <property file="${basedir}/build.properties"/>
+ <property name="home" value="../.."/>
+ <import file="${home}/bootstrap.xml"/>
+
+ <target name="init" depends="bootstrap.init">
+ <filter token="PART-XSD-URI"
value="artifact:xsd:dpml/lang/dpml-part#1.0"/>
+ <filter token="COMMON-XSD-URI"
value="artifact:xsd:dpml/lang/dpml-common#1.0"/>
+ <filter token="PROJECT-XSD-URI"
value="artifact:xsd:${project.group}/${project.name}#${project.version}"/>
+ </target>
+
+ <target name="package" depends="bootstrap.package">
+ <property name="targetDir" location="${target.deliverables.dir}/xsds"/>
+ <mkdir dir="${targetDir}"/>
+ <property name="filename"
value="${project.name}-${project.version}.xsd"/>
+ <copy toFile="${targetDir}/${filename}" preservelastmodified="true"
overwrite="true"
+ file="${target.dir}/component.xsd"/>
+ <checksum fileext=".md5" file="${targetDir}/${filename}"/>
+ </target>
+
+</project>

Added: trunk/main/transit/spec/etc/transit.xsd
===================================================================
--- trunk/main/transit/spec/etc/transit.xsd 2006-03-14 18:39:59 UTC (rev
1180)
+++ trunk/main/transit/spec/etc/transit.xsd 2006-03-14 19:29:48 UTC (rev
1181)
@@ -0,0 +1,123 @@
+<?xml version="1.0"?>
+<schema xmlns="http://www.w3.org/2001/XMLSchema";
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+ xmlns:this="@PROJECT-XSD-URI@"
+ xmlns:part="@PART-XSD-URI@"
+ targetNamespace="@PROJECT-XSD-URI@"
+ elementFormDefault="qualified">
+
+ <import namespace="@PART-XSD-URI@" schemaLocation="@PART-XSD-URI@"/>
+
+ <element name="transit" type="this:TransitType"/>
+
+ <complexType name="TransitType">
+ <sequence>
+ <element name="proxy" type="this:ProxyType" minOccurs="0"
maxOccurs="1"/>
+ <element name="local" type="this:LocalRepositoryType" minOccurs="1"
maxOccurs="1"/>
+ <element name="hosts" type="this:HostsType" minOccurs="1"
maxOccurs="1"/>
+ <element name="layouts" type="this:LayoutsType" minOccurs="0"
maxOccurs="1"/>
+ <element name="layouts" type="this:HandlersType" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ </complexType>
+
+ <!-- proxy type definition -->
+
+ <complexType name="ProxyType">
+ <sequence>
+ <element name="credentials" type="this:CredentialsType"
minOccurs="0" maxOccurs="1"/>
+ <element name="excludes" type="this:ExcludesType" minOccurs="1"
maxOccurs="1"/>
+ </sequence>
+ <attribute name="host" type="xsd:anyUri" use="required"/>
+ </complexType>
+
+ <complexType name="CredentialsType">
+ <sequence>
+ <element name="username" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
+ <element name="password" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="ExcludesType">
+ <sequence>
+ <element name="exclude" type="this:ExcludeType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="ExcludeType">
+ <simpleContent>
+ <extension base="string"/>
+ </simpleContent>
+ </complexType>
+
+ <!-- local repository definition -->
+
+ <complexType name="LocalRepositoryType">
+ <attribute name="path" type="xsd:string" use="required"/>
+ <attribute name="layout" type="xsd:string" use="required"/>
+ </complexType>
+
+ <!-- hosts definition -->
+
+ <complexType name="HostsType">
+ <sequence>
+ <element name="host" type="this:HostType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="HostType">
+ <sequence>
+ <element name="credentials" type="this:CredentialsType"
minOccurs="0" maxOccurs="1"/>
+ </sequence>
+ <attribute name="id" type="xsd:string" use="required"/>
+ <attribute name="priority" type="xsd:integer" use="required"/>
+ <attribute name="url" type="xsd:anyUri" use="required"/>
+ <attribute name="layout" type="xsd:string" use="required"/>
+ <attribute name="enabled" type="xsd:boolean" default="true"/>
+ <attribute name="trusted" type="xsd:boolean" default="false"/>
+ <attribute name="index" type="xsd:string"/>
+ <attribute name="schema" type="xsd:string"/>
+ <attribute name="prompt" type="xsd:string"/>
+ </complexType>
+
+ <!-- layout definition -->
+
+ <complexType name="LayoutsType">
+ <sequence>
+ <element name="layout" type="this:LayoutType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="LayoutType">
+ <sequence>
+ <element name="codebase" type="this:CodebaseType" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ <attribute name="id" type="xsd:string" use="required"/>
+ <attribute name="title" type="xsd:string"/>
+ </complexType>
+
+ <!-- handlers definition -->
+
+ <complexType name="HandlersType">
+ <sequence>
+ <element name="handler" type="this:HandlerType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="HandlerType">
+ <sequence>
+ <element name="codebase" type="this:CodebaseType" minOccurs="0"
maxOccurs="1"/>
+ </sequence>
+ <attribute name="id" type="xsd:string" use="required"/>
+ <attribute name="title" type="xsd:string"/>
+ </complexType>
+
+ <!-- codebase definition -->
+
+ <complexType name="CodebaseType">
+ <sequence>
+ <element name="codebase" type="part:ValueType" minOccurs="0"
maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="uri" type="xsd:anyUri" use="required"/>
+ </complexType>
+
+</schema>




  • r1181 - in trunk/main: . transit transit/spec transit/spec/etc, mcconnell at BerliOS, 03/14/2006

Archive powered by MHonArc 2.6.24.

Top of Page