Skip to Content.
Sympa Menu

notify-dpml - r1685 - trunk/tutorials/components

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: r1685 - trunk/tutorials/components
  • Date: Wed, 26 Jul 2006 18:12:49 +0200

Author: mcconnell
Date: 2006-07-26 18:12:49 +0200 (Wed, 26 Jul 2006)
New Revision: 1685

Added:
trunk/tutorials/components/build.xml
trunk/tutorials/components/index.xml
Modified:
trunk/tutorials/components/module.xml
Log:
separate tutorials into a different build scope

Added: trunk/tutorials/components/build.xml
===================================================================
--- trunk/tutorials/components/build.xml 2006-07-26 15:35:33 UTC (rev
1684)
+++ trunk/tutorials/components/build.xml 2006-07-26 16:12:49 UTC (rev
1685)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<project name="components" default="install"
+ xmlns:transit="antlib:net.dpml.transit">
+
+ <transit:import uri="local:template:dpml/tools/standard"/>
+
+ <target name="build" depends="standard.build">
+ <exec executable="build" dir="${basedir}" />
+ </target>
+
+</project>

Added: trunk/tutorials/components/index.xml
===================================================================
--- trunk/tutorials/components/index.xml 2006-07-26 15:35:33 UTC (rev
1684)
+++ trunk/tutorials/components/index.xml 2006-07-26 16:12:49 UTC (rev
1685)
@@ -0,0 +1,475 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<index xmlns="link:xsd:dpml/lang/dpml-module#1.0">
+
+ <imports>
+ <import uri="link:module:ant"/>
+ <import uri="link:module:dpml"/>
+ </imports>
+
+ <properties>
+ <property name="java.util.logging.config.class" value="dpml"/>
+ </properties>
+
+ <module name="dpmlx/tutorials/components">
+
+ <dependencies>
+ <build>
+ <include ref="dpml"/>
+ </build>
+ </dependencies>
+
+ <!-- a minimal component -->
+
+ <project name="acme-demo-hello" basedir="hello">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo"/>
+ </types>
+ <dependencies>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <!-- adding context inner interface -->
+
+ <project name="acme-demo-context" basedir="context">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo">
+ <context>
+ <entry key="owner" value="${user.name}"/>
+ <entry key="activity" value="Painting"/>
+ <entry key="target" value="bike"/>
+ <entry key="color" value="silver"/>
+ </context>
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-demo-hello"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <!-- demonstrating context primitives, arrays, and constructed values -->
+
+ <project name="acme-demo-examples" basedir="examples">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo">
+ <context>
+ <entry key="color" method="RED"/>
+ <entry key="anotherColor">
+ <param class="int" value="100"/>
+ <param class="int" value="200"/>
+ <param class="int" value="0"/>
+ </entry>
+ <entry key="integer" value="42"/>
+ <entry key="short" value="19"/>
+ <entry key="long" value="1042"/>
+ <entry key="byte" value="9"/>
+ <entry key="double" value="32"/>
+ <entry key="float" value="9.813"/>
+ <entry key="char" value="x"/>
+ <entry key="boolean" value="true"/>
+ <entry key="file" value="${work}"/>
+ <entry key="tempFile" value="${temp}"/>
+ <entry key="URI" value="${uri}"/>
+ <entry key="name" value="${name}"/>
+ <entry key="path" value="${path}"/>
+ <entry key="names">
+ <param value="fred"/>
+ <param value="george"/>
+ <param value="mary"/>
+ </entry>
+ </context>
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-demo-context"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <project name="acme-parts-demo" basedir="parts">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo">
+ <parts>
+ <component key="widget" type="org.acme.Widget" name="widget">
+ <context>
+ <entry key="color" method="BLUE"/>
+ </context>
+ </component>
+ </parts>
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-demo-examples"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <project name="acme-lookup-demo" basedir="lookup">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo">
+ <parts>
+ <component key="widget" type="org.acme.Widget" name="widget">
+ <context>
+ <entry key="color" method="BLUE"/>
+ </context>
+ </component>
+ <component key="gizmo" type="org.acme.Gizmo" name="gizmo">
+ <context>
+ <entry key="widget" lookup="org.acme.Widget"/>
+ </context>
+ </component>
+ </parts>
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-parts-demo"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <project name="acme-lifestyle-demo" basedir="lifestyle">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo">
+ <parts>
+ <component key="widget" type="org.acme.Widget" name="widget"
lifestyle="transient">
+ <context>
+ <entry key="color" method="BLUE"/>
+ </context>
+ </component>
+ <component key="gizmo" type="org.acme.Gizmo" name="gizmo">
+ <context>
+ <entry key="widget" lookup="org.acme.Widget"/>
+ </context>
+ </component>
+ </parts>
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-lookup-demo"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <project name="acme-transient-demo" basedir="transient">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo">
+ <context>
+ <entry key="count" value="5"/>
+ </context>
+ <parts>
+ <component key="gizmo" type="org.acme.Gizmo"
lifestyle="transient"/>
+ </parts>
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-lifestyle-demo"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <project name="acme-thread-demo" basedir="thread">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo">
+ <context>
+ <entry key="threadCount" value="3"/>
+ <entry key="accessCount" value="2"/>
+ </context>
+ <parts>
+ <component key="gizmo" type="org.acme.Gizmo" lifestyle="thread"/>
+ </parts>
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-transient-demo"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <project name="acme-singleton-demo" basedir="singleton">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo">
+ <context>
+ <entry key="threadCount" value="3"/>
+ <entry key="accessCount" value="2"/>
+ </context>
+ <parts>
+ <component key="gizmo" type="org.acme.Gizmo"
lifestyle="singleton"/>
+ </parts>
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-thread-demo"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <project name="acme-state-demo" basedir="state">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo"
+ lifestyle="transient">
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-singleton-demo"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <project name="acme-logging-demo" basedir="logging">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"
+ name="demo"
+ lifestyle="transient">
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-state-demo"/>
+ </build>
+ <runtime>
+ <include ref="dpml/util/dpml-logging-api"/>
+ </runtime>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <project name="acme-type-demo" basedir="type">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.Demo"/>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-logging-demo"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <!-- customization demo: simple clock -->
+
+ <project name="acme-simple-clock" basedir="customize/clock">
+ <info title="Simple Clock"/>
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0" alias="true"
+ type="org.acme.clock.SimpleClock" name="clock">
+ <context>
+ <entry key="format" value="K:mm a, z"/>
+ </context>
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-type-demo"/>
+ </build>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <!-- extension demo -->
+
+ <project name="acme-extended-clock" basedir="customize/extension">
+ <info title="Extended Clock"/>
+ <types>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ uri="link:part:dpmlx/tutorials/components/acme-simple-clock"
name="clock">
+ <context>
+ <entry key="format" value="K:mm a"/>
+ </context>
+ </component>
+ </types>
+ <dependencies>
+ <runtime>
+ <include key="acme-simple-clock"/>
+ </runtime>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </test>
+ </dependencies>
+ </project>
+
+
+ <project name="acme-custom-clock" basedir="customize/custom">
+ <info title="Custom Clock"/>
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ uri="link:part:dpmlx/tutorials/components/acme-simple-clock"
name="clock">
+ <context>
+ <entry key="format" class="org.acme.extra.Customizer"
method="getCustomFormat"/>
+ </context>
+ </component>
+ </types>
+ <dependencies>
+ <test>
+ <include ref="ant/ant-junit"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ <include key="acme-simple-clock"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <!-- part customization demo -->
+
+ <project name="acme-clock-api" basedir="import/api">
+ <types>
+ <type id="jar"/>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-custom-clock"/>
+ </build>
+ </dependencies>
+ </project>
+
+ <project name="acme-clock-impl" basedir="import/clock">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.scheduler.SimpleClock" name="simple"/>
+ </types>
+ <dependencies>
+ <runtime>
+ <include key="acme-clock-api"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </runtime>
+ </dependencies>
+ </project>
+
+ <project name="acme-clock-demo" basedir="import/demo">
+ <types>
+ <type id="jar"/>
+ <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
+ type="org.acme.demo.Demo" name="demo">
+ <parts>
+ <component key="clock"
uri="resource:part:dpmlx/tutorials/components/acme-clock-impl">
+ <context>
+ <entry key="format" value="h:mm a"/>
+ </context>
+ </component>
+ </parts>
+ </component>
+ </types>
+ <dependencies>
+ <build>
+ <include key="acme-clock-impl"/>
+ </build>
+ <runtime>
+ <include key="acme-clock-api"/>
+ <include ref="dpml/util/dpml-logging-api"/>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ </runtime>
+ <test>
+ <include ref="ant/ant-junit"/>
+ </test>
+ </dependencies>
+ </project>
+
+ <project name="acme-clock-test" basedir="import/test">
+ <dependencies>
+ <test>
+ <include ref="dpml/transit/dpml-transit-main"/>
+ <include ref="ant/ant-junit"/>
+ </test>
+ </dependencies>
+ <filters>
+ <feature ref="dpmlx/tutorials/components/acme-clock-demo" token="PART"
id="uri" type="part"/>
+ </filters>
+ </project>
+
+ </module>
+
+</index>
\ No newline at end of file

Modified: trunk/tutorials/components/module.xml
===================================================================
--- trunk/tutorials/components/module.xml 2006-07-26 15:35:33 UTC (rev
1684)
+++ trunk/tutorials/components/module.xml 2006-07-26 16:12:49 UTC (rev
1685)
@@ -1,466 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<module xmlns="link:xsd:dpml/lang/dpml-module#1.0" name="components">

- <properties>
- <property name="java.util.logging.config.class" value="dpml"/>
- </properties>
-
<dependencies>
<build>
<include ref="dpml"/>
</build>
</dependencies>

- <!-- a minimal component -->
-
- <project name="acme-demo-hello" basedir="hello">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo"/>
- </types>
- <dependencies>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <!-- adding context inner interface -->
-
- <project name="acme-demo-context" basedir="context">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo">
- <context>
- <entry key="owner" value="${user.name}"/>
- <entry key="activity" value="Painting"/>
- <entry key="target" value="bike"/>
- <entry key="color" value="silver"/>
- </context>
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-demo-hello"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <!-- demonstrating context primitives, arrays, and constructed values -->
-
- <project name="acme-demo-examples" basedir="examples">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo">
- <context>
- <entry key="color" method="RED"/>
- <entry key="anotherColor">
- <param class="int" value="100"/>
- <param class="int" value="200"/>
- <param class="int" value="0"/>
- </entry>
- <entry key="integer" value="42"/>
- <entry key="short" value="19"/>
- <entry key="long" value="1042"/>
- <entry key="byte" value="9"/>
- <entry key="double" value="32"/>
- <entry key="float" value="9.813"/>
- <entry key="char" value="x"/>
- <entry key="boolean" value="true"/>
- <entry key="file" value="${work}"/>
- <entry key="tempFile" value="${temp}"/>
- <entry key="URI" value="${uri}"/>
- <entry key="name" value="${name}"/>
- <entry key="path" value="${path}"/>
- <entry key="names">
- <param value="fred"/>
- <param value="george"/>
- <param value="mary"/>
- </entry>
- </context>
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-demo-context"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <project name="acme-parts-demo" basedir="parts">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo">
- <parts>
- <component key="widget" type="org.acme.Widget" name="widget">
- <context>
- <entry key="color" method="BLUE"/>
- </context>
- </component>
- </parts>
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-demo-examples"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <project name="acme-lookup-demo" basedir="lookup">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo">
- <parts>
- <component key="widget" type="org.acme.Widget" name="widget">
- <context>
- <entry key="color" method="BLUE"/>
- </context>
- </component>
- <component key="gizmo" type="org.acme.Gizmo" name="gizmo">
- <context>
- <entry key="widget" lookup="org.acme.Widget"/>
- </context>
- </component>
- </parts>
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-parts-demo"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <project name="acme-lifestyle-demo" basedir="lifestyle">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo">
- <parts>
- <component key="widget" type="org.acme.Widget" name="widget"
lifestyle="transient">
- <context>
- <entry key="color" method="BLUE"/>
- </context>
- </component>
- <component key="gizmo" type="org.acme.Gizmo" name="gizmo">
- <context>
- <entry key="widget" lookup="org.acme.Widget"/>
- </context>
- </component>
- </parts>
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-lookup-demo"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <project name="acme-transient-demo" basedir="transient">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo">
- <context>
- <entry key="count" value="5"/>
- </context>
- <parts>
- <component key="gizmo" type="org.acme.Gizmo"
lifestyle="transient"/>
- </parts>
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-lifestyle-demo"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <project name="acme-thread-demo" basedir="thread">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo">
- <context>
- <entry key="threadCount" value="3"/>
- <entry key="accessCount" value="2"/>
- </context>
- <parts>
- <component key="gizmo" type="org.acme.Gizmo" lifestyle="thread"/>
- </parts>
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-transient-demo"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <project name="acme-singleton-demo" basedir="singleton">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo">
- <context>
- <entry key="threadCount" value="3"/>
- <entry key="accessCount" value="2"/>
- </context>
- <parts>
- <component key="gizmo" type="org.acme.Gizmo"
lifestyle="singleton"/>
- </parts>
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-thread-demo"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <project name="acme-state-demo" basedir="state">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo"
- lifestyle="transient">
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-singleton-demo"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <project name="acme-logging-demo" basedir="logging">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"
- name="demo"
- lifestyle="transient">
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-state-demo"/>
- </build>
- <runtime>
- <include ref="dpml/util/dpml-logging-api"/>
- </runtime>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <project name="acme-type-demo" basedir="type">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.Demo"/>
- </types>
- <dependencies>
- <build>
- <include key="acme-logging-demo"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <!-- customization demo: simple clock -->
-
- <project name="acme-simple-clock" basedir="customize/clock">
- <info title="Simple Clock"/>
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0" alias="true"
- type="org.acme.clock.SimpleClock" name="clock">
- <context>
- <entry key="format" value="K:mm a, z"/>
- </context>
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-type-demo"/>
- </build>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
- <!-- extension demo -->
-
- <project name="acme-extended-clock" basedir="customize/extension">
- <info title="Extended Clock"/>
- <types>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- uri="link:part:dpmlx/tutorials/components/acme-simple-clock"
name="clock">
- <context>
- <entry key="format" value="K:mm a"/>
- </context>
- </component>
- </types>
- <dependencies>
- <runtime>
- <include key="acme-simple-clock"/>
- </runtime>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </test>
- </dependencies>
- </project>
-
-
- <project name="acme-custom-clock" basedir="customize/custom">
- <info title="Custom Clock"/>
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- uri="link:part:dpmlx/tutorials/components/acme-simple-clock"
name="clock">
- <context>
- <entry key="format" class="org.acme.extra.Customizer"
method="getCustomFormat"/>
- </context>
- </component>
- </types>
- <dependencies>
- <test>
- <include ref="ant/ant-junit"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- <include key="acme-simple-clock"/>
- </test>
- </dependencies>
- </project>
-
- <!-- part customization demo -->
-
- <project name="acme-clock-api" basedir="import/api">
- <types>
- <type id="jar"/>
- </types>
- <dependencies>
- <build>
- <include key="acme-custom-clock"/>
- </build>
- </dependencies>
- </project>
-
- <project name="acme-clock-impl" basedir="import/clock">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.scheduler.SimpleClock" name="simple"/>
- </types>
- <dependencies>
- <runtime>
- <include key="acme-clock-api"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </runtime>
- </dependencies>
- </project>
-
- <project name="acme-clock-demo" basedir="import/demo">
- <types>
- <type id="jar"/>
- <component xmlns="link:xsd:dpml/lang/dpml-component#1.0"
- type="org.acme.demo.Demo" name="demo">
- <parts>
- <component key="clock"
uri="resource:part:dpmlx/tutorials/components/acme-clock-impl">
- <context>
- <entry key="format" value="h:mm a"/>
- </context>
- </component>
- </parts>
- </component>
- </types>
- <dependencies>
- <build>
- <include key="acme-clock-impl"/>
- </build>
- <runtime>
- <include key="acme-clock-api"/>
- <include ref="dpml/util/dpml-logging-api"/>
- <include ref="dpml/transit/dpml-transit-main"/>
- </runtime>
- <test>
- <include ref="ant/ant-junit"/>
- </test>
- </dependencies>
- </project>
-
- <project name="acme-clock-test" basedir="import/test">
- <dependencies>
- <test>
- <include ref="dpml/transit/dpml-transit-main"/>
- <include ref="ant/ant-junit"/>
- </test>
- </dependencies>
- <filters>
- <feature ref="dpmlx/tutorials/components/acme-clock-demo" token="PART"
id="uri" type="part"/>
- </filters>
- </project>
-
</module>
\ No newline at end of file




  • r1685 - trunk/tutorials/components, mcconnell at BerliOS, 07/26/2006

Archive powered by MHonArc 2.6.24.

Top of Page