notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1621 - in trunk/central/site/src/docs/depot/tutorials: complex simple
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1621 - in trunk/central/site/src/docs/depot/tutorials: complex simple
- Date: Thu, 20 Jul 2006 20:39:01 +0200
Author: mcconnell
Date: 2006-07-20 20:38:59 +0200 (Thu, 20 Jul 2006)
New Revision: 1621
Modified:
trunk/central/site/src/docs/depot/tutorials/complex/index.xml
trunk/central/site/src/docs/depot/tutorials/simple/alias.xml
trunk/central/site/src/docs/depot/tutorials/simple/automation.xml
trunk/central/site/src/docs/depot/tutorials/simple/filters.xml
trunk/central/site/src/docs/depot/tutorials/simple/index.xml
trunk/central/site/src/docs/depot/tutorials/simple/properties.xml
trunk/central/site/src/docs/depot/tutorials/simple/symbolic.xml
trunk/central/site/src/docs/depot/tutorials/simple/types.xml
Log:
housekeeping
Modified: trunk/central/site/src/docs/depot/tutorials/complex/index.xml
===================================================================
--- trunk/central/site/src/docs/depot/tutorials/complex/index.xml
2006-07-20 18:21:46 UTC (rev 1620)
+++ trunk/central/site/src/docs/depot/tutorials/complex/index.xml
2006-07-20 18:38:59 UTC (rev 1621)
@@ -63,7 +63,7 @@
immidiate subdirectories relative to the location of the index.xml
file.
</p>
-<source>
+<pre>
<?xml version="1.0" encoding="ISO-8859-1"?>
<index xmlns="link:xsd:dpml/lang/dpml-module#1.0">
@@ -78,7 +78,7 @@
</project></font>
</index>
-</source>
+</pre>
</subsection>
Modified: trunk/central/site/src/docs/depot/tutorials/simple/alias.xml
===================================================================
--- trunk/central/site/src/docs/depot/tutorials/simple/alias.xml
2006-07-20 18:21:46 UTC (rev 1620)
+++ trunk/central/site/src/docs/depot/tutorials/simple/alias.xml
2006-07-20 18:38:59 UTC (rev 1621)
@@ -25,10 +25,11 @@
To simplify local management of modules we can use the
<tt>alias</tt> attribuite
on a type declaration declaration. This request the creation of a
link which is an artifact
that references another artifact. The following example
demonstrates the addition
- of an <tt>alias</tt> attribute to the type production statement in
demo project.
+ of an <tt>alias</tt> attribute to the type production statement in
the demo project.
</p>
-<source>
+<pre>
+<?xml version="1.0" encoding="ISO-8859-1"?>
<index xmlns="link:xsd:dpml/lang/dpml-module#1.0">
<project name="demo" basedir=".">
@@ -45,7 +46,7 @@
</project>
</index>
-</source>
+</pre>
<p>
The alias attribute is recognized by the Depot antlib and will result
@@ -59,6 +60,23 @@
<source>artifact:jar:demo#SNAPSHOT</source>
+ <p>
+ Subsequent build or runtime systems that reference resource via
artifact-based
+ uris can using the <tt>link</tt> protocol to retrieve the resource.
For example,
+ the following project definition demonstrates the usage of a alias
reference
+ via the link protocol.
+ </p>
+
+ <pre>
+ <project name="example" basedir="somewhere">
+ <dependencies>
+ <runtime>
+ <font color="blue"><include uri="link:jar:demo"/></font>
+ </runtime>
+ </dependencies>
+ </project>
+ </pre>
+
</subsection>
<subsection name="Summary">
@@ -74,11 +92,20 @@
artifact referencing version 1.0.
</p>
-<source>
-<types>
- <type id="jar" <font color="darkred">version="1.0"</font>/>
-</types>
-</source>
+<pre>
+ <project name="demo" basedir=".">
+ <properties>
+ <property name="location" value="New York"/>
+ <property name="message" value="Hello from ${user.name} in
${location}"/>
+ </properties>
+ <types>
+ <font color="darkred"><type id="jar" version="1.0"/></font>
+ </types>
+ <filters>
+ <filter token="MESSAGE" value="${message}"/>
+ </filters>
+ </project>
+</pre>
</subsection>
Modified: trunk/central/site/src/docs/depot/tutorials/simple/automation.xml
===================================================================
--- trunk/central/site/src/docs/depot/tutorials/simple/automation.xml
2006-07-20 18:21:46 UTC (rev 1620)
+++ trunk/central/site/src/docs/depot/tutorials/simple/automation.xml
2006-07-20 18:38:59 UTC (rev 1621)
@@ -27,14 +27,14 @@
the following:
</p>
-<source>
+<pre>
<project name="demo" default="install"
xmlns:transit="antlib:net.dpml.transit">
<font color="darkred"><transit:import
uri="local:template:dpml/tools/standard"/></font>
</project>
-</source>
+</pre>
</subsection>
Modified: trunk/central/site/src/docs/depot/tutorials/simple/filters.xml
===================================================================
--- trunk/central/site/src/docs/depot/tutorials/simple/filters.xml
2006-07-20 18:21:46 UTC (rev 1620)
+++ trunk/central/site/src/docs/depot/tutorials/simple/filters.xml
2006-07-20 18:38:59 UTC (rev 1621)
@@ -30,7 +30,8 @@
of the toke <tt>@MESSAGE@</tt> with the assigned value.
</p>
-<source>
+<pre>
+<?xml version="1.0" encoding="ISO-8859-1"?>
<index xmlns="link:xsd:dpml/lang/dpml-module#1.0">
<project name="demo" basedir=".">
@@ -44,7 +45,7 @@
</project>
</index>
-</source>
+</pre>
</subsection>
@@ -59,7 +60,7 @@
contents.
</p>
-<source>
+<pre>
<project name="demo" default="install">
<font color="darkred"><target name="init">
@@ -81,7 +82,7 @@
<target name="install" depends="build"/>
</project>
-</source>
+</pre>
</subsection>
Modified: trunk/central/site/src/docs/depot/tutorials/simple/index.xml
===================================================================
--- trunk/central/site/src/docs/depot/tutorials/simple/index.xml
2006-07-20 18:21:46 UTC (rev 1620)
+++ trunk/central/site/src/docs/depot/tutorials/simple/index.xml
2006-07-20 18:38:59 UTC (rev 1621)
@@ -29,14 +29,14 @@
directory containing the index file.
</p>
-<source><![CDATA[
+<pre><![CDATA[
<?xml version="1.0" encoding="ISO-8859-1"?>
<index xmlns="link:xsd:dpml/lang/dpml-module#1.0">
<project name="demo" basedir="."/>
</index>
-]]></source>
+]]></pre>
</subsection>
@@ -49,8 +49,7 @@
will be used in subsequent tutorials).
</p>
-<source><![CDATA[
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<pre><![CDATA[
<project name="demo" default="install">
<target name="clean">
@@ -64,7 +63,7 @@
<target name="install" depends="build"/>
</project>
-]]></source>
+]]></pre>
</subsection>
Modified: trunk/central/site/src/docs/depot/tutorials/simple/properties.xml
===================================================================
--- trunk/central/site/src/docs/depot/tutorials/simple/properties.xml
2006-07-20 18:21:46 UTC (rev 1620)
+++ trunk/central/site/src/docs/depot/tutorials/simple/properties.xml
2006-07-20 18:38:59 UTC (rev 1621)
@@ -25,7 +25,8 @@
project defintion which we will reference in our build file.
</p>
-<source>
+<pre>
+<?xml version="1.0" encoding="ISO-8859-1"?>
<index xmlns="link:xsd:dpml/lang/dpml-module#1.0">
<project name="demo" basedir=".">
@@ -35,7 +36,7 @@
</project>
</index>
-</source>
+</pre>
</subsection>
@@ -46,7 +47,7 @@
defined property value in an echo statement.
</p>
-<source>
+<pre>
<project name="demo" default="install">
<target name="clean">
@@ -60,7 +61,7 @@
<target name="install" depends="build"/>
</project>
-</source>
+</pre>
</subsection>
Modified: trunk/central/site/src/docs/depot/tutorials/simple/symbolic.xml
===================================================================
--- trunk/central/site/src/docs/depot/tutorials/simple/symbolic.xml
2006-07-20 18:21:46 UTC (rev 1620)
+++ trunk/central/site/src/docs/depot/tutorials/simple/symbolic.xml
2006-07-20 18:38:59 UTC (rev 1621)
@@ -25,7 +25,8 @@
defintion of <tt>message</tt>.
</p>
-<source>
+<pre>
+<?xml version="1.0" encoding="ISO-8859-1"?>
<index xmlns="link:xsd:dpml/lang/dpml-module#1.0">
<project name="demo" basedir=".">
@@ -36,7 +37,7 @@
</project>
</index>
-</source>
+</pre>
</subsection>
Modified: trunk/central/site/src/docs/depot/tutorials/simple/types.xml
===================================================================
--- trunk/central/site/src/docs/depot/tutorials/simple/types.xml
2006-07-20 18:21:46 UTC (rev 1620)
+++ trunk/central/site/src/docs/depot/tutorials/simple/types.xml
2006-07-20 18:38:59 UTC (rev 1621)
@@ -61,7 +61,8 @@
file names and locations.
</p>
-<source>
+<pre>
+<?xml version="1.0" encoding="ISO-8859-1"?>
<index xmlns="link:xsd:dpml/lang/dpml-module#1.0">
<project name="demo" basedir=".">
@@ -78,7 +79,7 @@
</project>
</index>
-</source>
+</pre>
</subsection>
@@ -91,7 +92,7 @@
a jar file.
</p>
-<source>
+<pre>
<project name="demo" default="install">
<target name="clean">
@@ -133,7 +134,7 @@
</target>
</project>
-</source>
+</pre>
</subsection>
- r1621 - in trunk/central/site/src/docs/depot/tutorials: complex simple, mcconnell at BerliOS, 07/20/2006
Archive powered by MHonArc 2.6.24.