Skip to Content.
Sympa Menu

notify-dpml - r1249 - in trunk/main: central/src/docs/depot/library lang/module/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: r1249 - in trunk/main: central/src/docs/depot/library lang/module/etc
  • Date: Wed, 22 Mar 2006 20:03:46 +0100

Author: mcconnell
Date: 2006-03-22 20:03:19 +0100 (Wed, 22 Mar 2006)
New Revision: 1249

Modified:
trunk/main/central/src/docs/depot/library/imports.xml
trunk/main/central/src/docs/depot/library/index.xml
trunk/main/central/src/docs/depot/library/modules.xml
trunk/main/central/src/docs/depot/library/properties.xml
trunk/main/lang/module/etc/module.xsd
Log:
updating docs

Modified: trunk/main/central/src/docs/depot/library/imports.xml
===================================================================
--- trunk/main/central/src/docs/depot/library/imports.xml 2006-03-22
18:31:21 UTC (rev 1248)
+++ trunk/main/central/src/docs/depot/library/imports.xml 2006-03-22
19:03:19 UTC (rev 1249)
@@ -12,15 +12,21 @@
<section name="Imports">

<p>
+ The <tt>&lt;imports&gt;</tt> element declares 0..n
<tt>&lt;import&gt;</tt>
+ instructions. Top-level import statements are restricted to uri-based
import
+ statements.
+ </p>
+
+ <p>
An <tt>&lt;import&gt;</tt> directive instructs the library to include
an
external module definition into the library. Importing a module
enables
projects and resources declared within modules to reference resources
as
<tt>&lt;dependencies&gt;</tt> via <tt>&lt;include&gt;</tt> elements.
</p>

- <subsection name="XML Element">
+ <subsection name="Import XML Element">
<source><![CDATA[
-<include uri="[module-uri]"/>
+<import uri="[module-uri]"/>
]]></source>
</subsection>

@@ -42,17 +48,15 @@
<p><i>Example imports declaration.</i></p>

<source><![CDATA[
-<imports>
- <import uri="link:module:junit"/>
- <import uri="link:module:ant"/>
- <import uri="link:module:jgoodies"/>
-</imports>
+ <imports>
+ <import uri="link:module:junit"/>
+ <import uri="link:module:ant"/>
+ </imports>
]]></source>

<p>
- The above example includes module defintions for the JUnit, Ant and
JGoodies
- projects into a library. Link URIs may may include the 'link' or
'artifact'
- protocol.
+ The above example includes module defintions for the JUnit and Ant
+ modules into a library.
</p>

</section>

Modified: trunk/main/central/src/docs/depot/library/index.xml
===================================================================
--- trunk/main/central/src/docs/depot/library/index.xml 2006-03-22 18:31:21
UTC (rev 1248)
+++ trunk/main/central/src/docs/depot/library/index.xml 2006-03-22 19:03:19
UTC (rev 1249)
@@ -65,14 +65,11 @@

<source><![CDATA[
<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE library PUBLIC "-//DPML//DTD Library 1.0//EN"
"http://download.dpml.net/dtds/library_1_0.dtd"; >
+<library xmlns="artifact:xsd:dpml/lang/dpml-module#1.0">

-<library>
-
<imports>
<import uri="link:module:junit"/>
<import uri="link:module:ant"/>
- <import uri="link:module:jgoodies"/>
</imports>

<modules>
@@ -88,18 +85,19 @@
<property name="project.resource.host"
value="http://repository.dpml.net"/>
<property name="project.api.host" value="http://api.dpml.net"/>
<property name="project.svn.host"
value="svn://svn.berlios.de/dpml/trunk/main"/>
- <property name="project.javadoc.linksource" value="true"/>
</properties>

<types>
<type id="module" alias="true"/>
</types>

- <module file="transit/module.xml"/>
- <module file="metro/module.xml"/>
- <module file="depot/module.xml"/>
- <module file="util/module.xml"/>
- <module file="planet/module.xml"/>
+ <import file="lang/module.xml"/>
+ <import file="transit/module.xml"/>
+ <import file="util/module.xml"/>
+ <import file="depot/module.xml"/>
+ <import file="metro/module.xml"/>
+ <import file="station/module.xml"/>
+ <import file="planet/module.xml"/>

<project name="central" basedir="central"/>


Modified: trunk/main/central/src/docs/depot/library/modules.xml
===================================================================
--- trunk/main/central/src/docs/depot/library/modules.xml 2006-03-22
18:31:21 UTC (rev 1248)
+++ trunk/main/central/src/docs/depot/library/modules.xml 2006-03-22
19:03:19 UTC (rev 1249)
@@ -28,14 +28,8 @@
documentation).
</p>

- <subsection name="XML Attributes on Embedded Modules">
+ <subsection name="XML Attributes">

- <p>
- The following attributes may be declared when declaring a
- module within the library <tt>&lt;modules&gt;</tt> element or within
- another enclosing <tt>&lt;module&gt;</tt>
- </p>
-
<table>
<tr>
<td>name</td>
@@ -55,27 +49,6 @@

</subsection>

- <subsection name="XML Attributes on Module Includes">
-
- <p>
- An alternative form of module definition is supported whereby
- a <tt>file</tt> attribute reference a module fragment relative
filename.
- The module basedir is resolved relative to the filename parent
directory
- and the module <tt>name</tt> is resolved from the imported file
<tt>&lt;module&gt;</tt>
- element. This second form of module addition is convinient when
you are
- dealing with a large number of projects.
- </p>
-
- <table>
- <tr>
- <td>file</td>
- <td>A path relative to the imnporting module referencing an XML
file
- containing a <tt>&lt;module&gt;</tt> root document
element.</td>
- </tr>
- </table>
-
- </subsection>
-
<subsection name="XML Nested elements">

<table>
@@ -106,6 +79,11 @@
<td>0..n</td>
<td>A nested module declaration.</td>
</tr>
+ <tr>
+ <td>import</td>
+ <td>0..n</td>
+ <td>Import a local module, project or resource from file.</td>
+ </tr>
</table>

</subsection>
@@ -155,59 +133,41 @@

<p>
The following example demonstrates the inclusion of a series of
external
- files named <tt>module.xml</tt> as the definition of a set of modules.
The
- example declares a root module named 'dpml'. A set of <tt>module</tt>
elements
- delcarations reference external modules for 'transit', 'metro',
'depot',
- and 'util'. In each case the the directory referenced by the base
attribute
- contains a file named <tt>module.xml</tt>.
+ files as the definition of a set of modules. The
+ example declares a root module named 'dpml'. A set of <tt>import</tt>
elements
+ delcarations reference nested module definitions modules for the
'transit', 'metro', 'depot',
+ and 'util' packages.
</p>

<source><![CDATA[
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE library PUBLIC "-//DPML//DTD Library 1.0//EN"
"http://download.dpml.net/dtds/library_1_0.dtd"; >
+<module name="dpml" basedir=".">

-<library>
+ <properties>
+ <property name="project.publisher.name" value="Digital Product Meta
Library"/>
+ <property name="project.specification.vendor"
value="${project.publisher.name}"/>
+ <property name="project.implementation.vendor"
value="${project.publisher.name}"/>
+ <property name="project.implementation.vendor-id" value="net.dpml"/>
+ <property name="project.publisher.url" value="http://www.dpml.net"/>
+ <property name="project.resource.host"
value="http://repository.dpml.net"/>
+ <property name="project.api.host" value="http://api.dpml.net"/>
+ <property name="project.svn.host"
value="svn://svn.berlios.de/dpml/trunk/main"/>
+ </properties>

- <imports>
- <import uri="link:module:junit"/>
- <import uri="link:module:ant"/>
- <import uri="link:module:jgoodies"/>
- </imports>
+ <types>
+ <type id="module" alias="true"/>
+ </types>

- <modules>
+ <import file="lang/module.xml"/>
+ <import file="transit/module.xml"/>
+ <import file="util/module.xml"/>
+ <import file="depot/module.xml"/>
+ <import file="metro/module.xml"/>
+ <import file="station/module.xml"/>
+ <import file="planet/module.xml"/>

- <module name="dpml" basedir=".">
+ <project name="central" basedir="central"/>

- <properties>
- <property name="project.publisher.name" value="Digital Product Meta
Library"/>
- <property name="project.specification.vendor"
value="${project.publisher.name}"/>
- <property name="project.implementation.vendor"
value="${project.publisher.name}"/>
- <property name="project.implementation.vendor-id" value="net.dpml"/>
- <property name="project.publisher.url" value="http://www.dpml.net"/>
- <property name="project.resource.host"
value="http://repository.dpml.net"/>
- <property name="project.api.host" value="http://api.dpml.net"/>
- <property name="project.svn.host"
value="svn://svn.berlios.de/dpml/trunk/main"/>
- <property name="project.javadoc.linksource" value="true"/>
- </properties>
-
- <types>
- <type id="module" alias="true"/>
- </types>
-
- <module file="transit/module.xml"/>
- <module file="metro/module.xml"/>
- <module file="depot/module.xml"/>
- <module file="util/module.xml"/>
- <module file="planet/module.xml"/>
-
- <project name="central" basedir="central"/>
-
- </module>
-
- </modules>
-
-</library>
-
+</module>
]]></source>

<p>
@@ -217,37 +177,42 @@

<source><![CDATA[
<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE module PUBLIC "-//DPML//DTD Library 1.0//EN"
"http://download.dpml.net/dtds/library_1_0.dtd"; >
+<module name="depot"
+ xmlns="artifact:xsd:dpml/lang/dpml-module#1.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+ xmlns:part="artifact:xsd:dpml/lang/dpml-part#1.0">

-<module name="depot">
-
- <project name="dpml-library-build" basedir="library/console">
+ <resource name="dpml-library" basedir="library">
<types>
<type id="jar"/>
- <type id="plugin" alias="true">
- <property name="project.plugin.class"
- value="net.dpml.library.console.BuilderPlugin"/>
- </type>
</types>
<dependencies>
- <include ref="dpml/util/dpml-util-cli"/>
<include ref="dpml/transit/dpml-transit-main"/>
+ </dependencies>
+ <dependencies scope="test">
+ <include ref="ant/ant-junit"/>
+ </dependencies>
+ </resource>
+
+ <project name="dpml-library-build" basedir="build">
+ <types>
+ <type id="jar"/>
+ <part:plugin alias="true"
class="net.dpml.library.console.BuilderPlugin"/>
+ </types>
+ <dependencies>
<include ref="dpml/depot/dpml-library"/>
+ <include ref="dpml/util/dpml-util-cli"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
</dependencies>
<dependencies scope="test">
<include ref="ant/ant-junit"/>
</dependencies>
</project>
-
+
<project name="dpml-depot-checkstyle" basedir="tools/checkstyle">
<types>
<type id="jar"/>
- <type id="plugin" alias="true">
- <property name="project.plugin.resource"
- value="net/dpml/tools/checkstyle/antlib.xml"/>
- <property name="project.plugin.urn"
- value="dpml:checkstyle"/>
- </type>
+ <part:resource alias="true" urn="dpml:checkstyle"
path="net/dpml/tools/checkstyle/antlib.xml"/>
</types>
<dependencies>
<include ref="dpml/depot/dpml-tools-builder"/>
@@ -266,12 +231,7 @@
<project name="dpml-depot-convert" basedir="tools/convert">
<types>
<type id="jar"/>
- <type id="plugin" alias="true">
- <property name="project.plugin.resource"
- value="net/dpml/tools/convert/antlib.xml"/>
- <property name="project.plugin.urn"
- value="dpml:convert"/>
- </type>
+ <part:resource alias="true" urn="dpml:convert"
path="net/dpml/tools/convert/antlib.xml"/>
</types>
<dependencies>
<include urn="artifact:jar:java2html/java2html#4.2"/>
@@ -279,7 +239,7 @@
</dependencies>
</project>

- <project name="dpml-depot-console" basedir="core/console">
+ <project name="dpml-depot-console" basedir="core">
<properties>
<property name="project.jar.main.class" value="net.dpml.depot.Main"/>
</properties>
@@ -297,10 +257,7 @@
<resource name="dpml-tools-builder" basedir="tools/builder">
<types>
<type id="jar"/>
- <type id="plugin" alias="true">
- <property name="project.plugin.class"
- value="net.dpml.tools.impl.StandardBuilder"/>
- </type>
+ <part:plugin alias="true" class="net.dpml.tools.impl.StandardBuilder"/>
</types>
<dependencies>
<include ref="dpml/depot/dpml-library"/>

Modified: trunk/main/central/src/docs/depot/library/properties.xml
===================================================================
--- trunk/main/central/src/docs/depot/library/properties.xml 2006-03-22
18:31:21 UTC (rev 1248)
+++ trunk/main/central/src/docs/depot/library/properties.xml 2006-03-22
19:03:19 UTC (rev 1249)
@@ -12,12 +12,12 @@
<section name="Properties">

<p>
- Properties may be defined within a <tt>&lt;library&gt;</tt>,
- <tt>&lt;processor&gt;</tt>, <tt>&lt;module&gt;</tt>,
<tt>&lt;project&gt;</tt>, or
- <tt>&lt;resource&gt;</tt> within an enclosing
<tt>&lt;properties&gt;</tt> element.
- Library properties serve as the most generic and are inherited by
processor
- and module definitions. Modules, projects and resources inherit
property setting
- from their enclosing module.
+ Properties may be defined within the <tt>&lt;library&gt;</tt>,
+ <tt>&lt;module&gt;</tt>, <tt>&lt;project&gt;</tt>, and
+ <tt>&lt;resource&gt;</tt> elements within an enclosing
<tt>&lt;properties&gt;</tt> element.
+ Library properties serve as the most generic and are inherited by
processor and module
+ definitions. Modules, projects and resources inherit property setting
from their enclosing
+ module.
</p>

<p>

Modified: trunk/main/lang/module/etc/module.xsd
===================================================================
--- trunk/main/lang/module/etc/module.xsd 2006-03-22 18:31:21 UTC (rev
1248)
+++ trunk/main/lang/module/etc/module.xsd 2006-03-22 19:03:19 UTC (rev
1249)
@@ -104,16 +104,6 @@

<element name="type" type="this:GenericType"
substitutionGroup="common:type"/>

- <!--
- <complexType name="part">
- <complexContent>
- <extension base="part:StrategyType"/>
- </complexContent>
- </complexType>
-
- <element name="part" type="this:part" substitutionGroup="part:strategy"/>
- -->
-
<complexType name="DependenciesType">
<sequence>
<element name="include" type="this:IncludeType" minOccurs="0"
maxOccurs="unbounded"/>




  • r1249 - in trunk/main: central/src/docs/depot/library lang/module/etc, mcconnell at BerliOS, 03/22/2006

Archive powered by MHonArc 2.6.24.

Top of Page