From mcconnell at mail.berlios.de Sat Dec 2 21:36:43 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Sun, 3 Dec 2006 03:36:43 +0100 Subject: r1790 - tags Message-ID: <200612030236.kB32ahNX020896@sheep.berlios.de> Author: mcconnell Date: 2006-12-03 03:36:43 +0100 (Sun, 03 Dec 2006) New Revision: 1790 Added: tags/SDK-1.0.4/ Log: DPML SDK 1.0.4 Copied: tags/SDK-1.0.4 (from rev 1785, trunk) From mcconnell at mail.berlios.de Sat Dec 2 21:37:46 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Sun, 3 Dec 2006 03:37:46 +0100 Subject: r1791 - tags Message-ID: <200612030237.kB32bk1g020976@sheep.berlios.de> Author: mcconnell Date: 2006-12-03 03:37:46 +0100 (Sun, 03 Dec 2006) New Revision: 1791 Added: tags/SDK-1.0.5/ Log: DPML SDK 1.0.5 Copied: tags/SDK-1.0.5 (from rev 1788, trunk) From mcconnell at mail.berlios.de Sat Dec 2 21:38:37 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Sun, 3 Dec 2006 03:38:37 +0100 Subject: r1792 - tags Message-ID: <200612030238.kB32cbLg021036@sheep.berlios.de> Author: mcconnell Date: 2006-12-03 03:38:37 +0100 (Sun, 03 Dec 2006) New Revision: 1792 Added: tags/SDK-1.1.0/ Log: DPML SDK 1.1.0 Copied: tags/SDK-1.1.0 (from rev 1789, trunk) From mcconnell at mail.berlios.de Sun Dec 3 00:57:23 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Sun, 3 Dec 2006 06:57:23 +0100 Subject: r1793 - in trunk/tutorials: . components components/unit components/unit/etc components/unit/etc/data components/unit/src components/unit/src/main components/unit/src/main/acme components/unit/src/test components/unit/src/test/acme components/unit/src/test/acme/test Message-ID: <200612030557.kB35vNDX017319@sheep.berlios.de> Author: mcconnell Date: 2006-12-03 06:57:18 +0100 (Sun, 03 Dec 2006) New Revision: 1793 Added: trunk/tutorials/components/unit/ trunk/tutorials/components/unit/build.xml trunk/tutorials/components/unit/etc/ trunk/tutorials/components/unit/etc/data/ trunk/tutorials/components/unit/etc/data/logging.properties trunk/tutorials/components/unit/src/ trunk/tutorials/components/unit/src/main/ trunk/tutorials/components/unit/src/main/acme/ trunk/tutorials/components/unit/src/main/acme/Child.java trunk/tutorials/components/unit/src/main/acme/ChildImpl.java trunk/tutorials/components/unit/src/main/acme/Container.java trunk/tutorials/components/unit/src/main/acme/ContainerImpl.java trunk/tutorials/components/unit/src/test/ trunk/tutorials/components/unit/src/test/acme/ trunk/tutorials/components/unit/src/test/acme/test/ trunk/tutorials/components/unit/src/test/acme/test/ExampleTest.java Modified: trunk/tutorials/module.xml Log: add sample testcase dealing with formal decommissioning of a component via Metro management APIs Property changes on: trunk/tutorials/components/unit ___________________________________________________________________ Name: svn:ignore + target Added: trunk/tutorials/components/unit/build.xml =================================================================== --- trunk/tutorials/components/unit/build.xml 2006-12-03 02:38:37 UTC (rev 1792) +++ trunk/tutorials/components/unit/build.xml 2006-12-03 05:57:18 UTC (rev 1793) @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file Added: trunk/tutorials/components/unit/etc/data/logging.properties =================================================================== --- trunk/tutorials/components/unit/etc/data/logging.properties 2006-12-03 02:38:37 UTC (rev 1792) +++ trunk/tutorials/components/unit/etc/data/logging.properties 2006-12-03 05:57:18 UTC (rev 1793) @@ -0,0 +1,2 @@ +container.level=FINE + Added: trunk/tutorials/components/unit/src/main/acme/Child.java =================================================================== --- trunk/tutorials/components/unit/src/main/acme/Child.java 2006-12-03 02:38:37 UTC (rev 1792) +++ trunk/tutorials/components/unit/src/main/acme/Child.java 2006-12-03 05:57:18 UTC (rev 1793) @@ -0,0 +1,9 @@ +package acme; + +import java.net.URI; + +public interface Child +{ + public void start( URI configurationURI ) throws Exception; + public void stop() throws Exception; +} Added: trunk/tutorials/components/unit/src/main/acme/ChildImpl.java =================================================================== --- trunk/tutorials/components/unit/src/main/acme/ChildImpl.java 2006-12-03 02:38:37 UTC (rev 1792) +++ trunk/tutorials/components/unit/src/main/acme/ChildImpl.java 2006-12-03 05:57:18 UTC (rev 1793) @@ -0,0 +1,35 @@ +package acme; + +import java.net.URI; +import java.util.logging.Logger; + +public class ChildImpl implements Child +{ + private boolean started; + private Logger logger; + + public ChildImpl( Logger logger ) + { + this.started = false; + this.logger = logger; + } + + public void start( URI configurationURI ) throws Exception { + if ( !this.started ){ + this.started = true; + this.logger.info( "starting with: " + configurationURI ); + } else { + throw new Exception( "already started!" ); + } + } + + public void stop() throws Exception { + if ( this.started ){ + this.started = false; + this.logger.info( "stopping" ); + } else { + throw new Exception("not started!" ); + } + } + +} Added: trunk/tutorials/components/unit/src/main/acme/Container.java =================================================================== --- trunk/tutorials/components/unit/src/main/acme/Container.java 2006-12-03 02:38:37 UTC (rev 1792) +++ trunk/tutorials/components/unit/src/main/acme/Container.java 2006-12-03 05:57:18 UTC (rev 1793) @@ -0,0 +1,5 @@ +package acme; + +public interface Container +{ +} Added: trunk/tutorials/components/unit/src/main/acme/ContainerImpl.java =================================================================== --- trunk/tutorials/components/unit/src/main/acme/ContainerImpl.java 2006-12-03 02:38:37 UTC (rev 1792) +++ trunk/tutorials/components/unit/src/main/acme/ContainerImpl.java 2006-12-03 05:57:18 UTC (rev 1793) @@ -0,0 +1,45 @@ +package acme; + +import java.net.URI; +import java.util.logging.Level; +import java.util.logging.Logger; + +public class ContainerImpl implements Container { + + public interface Context + { + public URI getConfigurationURI(); + } + + public interface Parts + { + public Child getChild( boolean proxy ); + } + + private URI m_uri; + private Child m_child; + + private Logger m_logger; + private Context m_context; + + public ContainerImpl( final Logger logger, final Context context, final Parts parts ) + { + m_logger = logger; + m_uri = context.getConfigurationURI(); + m_logger.info( "configuration uri: " + m_uri ); + m_child = parts.getChild( false ); + } + + public void start() throws Exception + { + m_logger.info( "starting" ); + m_child.start( m_uri ); + m_logger.info( "configurable service started successfully" ); + } + + public synchronized void stop() throws Exception + { + m_logger.info( "stopping" ); + m_child.stop(); + } +} Added: trunk/tutorials/components/unit/src/test/acme/test/ExampleTest.java =================================================================== --- trunk/tutorials/components/unit/src/test/acme/test/ExampleTest.java 2006-12-03 02:38:37 UTC (rev 1792) +++ trunk/tutorials/components/unit/src/test/acme/test/ExampleTest.java 2006-12-03 05:57:18 UTC (rev 1793) @@ -0,0 +1,85 @@ +package acme.test; + +import java.io.File; +import java.net.URI; +import java.util.logging.Logger; + +import junit.framework.TestCase; + +import net.dpml.component.Component; +import net.dpml.component.Disposable; +import net.dpml.component.Provider; +import net.dpml.lang.Part; + +import acme.ContainerImpl; + +public class ExampleTest extends TestCase +{ + private Logger m_logger; + private Component m_component; + + /** + * Load up the part from the tasrget/deliverables directory, + * and get the component handler which we will use to (a) + * establish an instance and (b) handle the formal end-of-life + * processing. + * + * @exception Exception if not everything goes according to plan + */ + public void setUp() throws Exception + { + m_logger = Logger.getLogger( "test" ); + m_logger.info( "commissioning" ); + URI uri = getPartURI(); + Part part = Part.load( uri ); + m_component = (Component) part.getContent( new Class[]{Component.class} ); + } + + /** + * Handle formal decommissioning of the component. + * + * @exception Exception if not everything goes according to plan + */ + public void tearDown() throws Exception + { + m_logger.info( "decommissioning" ); + Disposable disposable = (Disposable) m_component; + disposable.dispose(); + System.gc(); + } + + /** + * The Component instance exposes a buch of management operations. One + * of these is the operation getProvider() which gives us access to + * the manager of one instance of the class specificed by the component + * type. The provider exposes the operation getValue( boolean ) which + * is where we actually get a fully initialized instance (and keep + * in mind here that full-initialized means that all initialization + * actions (such as state transitions) have alrady been successfully + * completed. + * + * @exception Exception if a test related error occurs + */ + public void testExampleComponent() throws Exception + { + m_logger.info( "testing" ); + Provider provider = m_component.getProvider(); + ContainerImpl container = (ContainerImpl) provider.getValue( false ); + + // Any tests dealing with the instance would go here. + } + + /** + * Internal utility to get a URI to the part definition in the + * project target/deliverables directory. + * + * @return the part uri + * @exception Exception if an error occurs + */ + private URI getPartURI() throws Exception + { + String path = System.getProperty( "project.deliverable.part.path" ); + File file = new File( path ); + return file.toURI(); + } +} Modified: trunk/tutorials/module.xml =================================================================== --- trunk/tutorials/module.xml 2006-12-03 02:38:37 UTC (rev 1792) +++ trunk/tutorials/module.xml 2006-12-03 05:57:18 UTC (rev 1793) @@ -478,6 +478,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + From mcconnell at mail.berlios.de Sun Dec 3 01:00:20 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Sun, 3 Dec 2006 07:00:20 +0100 Subject: r1794 - trunk/main/transit/core/src/main/net/dpml/util Message-ID: <200612030600.kB360K89019963@sheep.berlios.de> Author: mcconnell Date: 2006-12-03 07:00:20 +0100 (Sun, 03 Dec 2006) New Revision: 1794 Modified: trunk/main/transit/core/src/main/net/dpml/util/UnicastEventSource.java Log: move termination message from debug to trace Modified: trunk/main/transit/core/src/main/net/dpml/util/UnicastEventSource.java =================================================================== --- trunk/main/transit/core/src/main/net/dpml/util/UnicastEventSource.java 2006-12-03 05:57:18 UTC (rev 1793) +++ trunk/main/transit/core/src/main/net/dpml/util/UnicastEventSource.java 2006-12-03 06:00:20 UTC (rev 1794) @@ -209,11 +209,11 @@ try { UnicastRemoteObject.unexportObject( m_source, true ); - m_logger.debug( "terminated" ); + m_logger.trace( "terminated " + m_source.getClass().getName() ); } catch( NoSuchObjectException e ) { - boolean ignoreThis = true; // objct has not been exported + boolean ignoreThis = true; // object has not been exported } catch( RemoteException e ) { From mcconnell at mail.berlios.de Sun Dec 3 02:10:31 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Sun, 3 Dec 2006 08:10:31 +0100 Subject: r1795 - in trunk/tutorials/components/unit/src: main/acme test/acme/test Message-ID: <200612030710.kB37AVKv015472@sheep.berlios.de> Author: mcconnell Date: 2006-12-03 08:10:30 +0100 (Sun, 03 Dec 2006) New Revision: 1795 Modified: trunk/tutorials/components/unit/src/main/acme/Child.java trunk/tutorials/components/unit/src/main/acme/ChildImpl.java trunk/tutorials/components/unit/src/main/acme/Container.java trunk/tutorials/components/unit/src/main/acme/ContainerImpl.java trunk/tutorials/components/unit/src/test/acme/test/ExampleTest.java Log: Update unit test example to include copyright attribution and formalization with respect to style guidelines. Modified: trunk/tutorials/components/unit/src/main/acme/Child.java =================================================================== --- trunk/tutorials/components/unit/src/main/acme/Child.java 2006-12-03 06:00:20 UTC (rev 1794) +++ trunk/tutorials/components/unit/src/main/acme/Child.java 2006-12-03 07:10:30 UTC (rev 1795) @@ -1,3 +1,21 @@ +/* + * Copyright 2006 Juan Pablo Rojas Jim?nez. + * Copyright 2006 Stephen J. McConnell. + * + * 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. + */ package acme; import java.net.URI; Modified: trunk/tutorials/components/unit/src/main/acme/ChildImpl.java =================================================================== --- trunk/tutorials/components/unit/src/main/acme/ChildImpl.java 2006-12-03 06:00:20 UTC (rev 1794) +++ trunk/tutorials/components/unit/src/main/acme/ChildImpl.java 2006-12-03 07:10:30 UTC (rev 1795) @@ -1,3 +1,21 @@ +/* + * Copyright 2006 Juan Pablo Rojas Jim?nez. + * Copyright 2006 Stephen J. McConnell. + * + * 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. + */ package acme; import java.net.URI; @@ -5,31 +23,37 @@ public class ChildImpl implements Child { - private boolean started; - private Logger logger; + private boolean m_started; + private Logger m_logger; - public ChildImpl( Logger logger ) + public ChildImpl( final Logger logger ) { - this.started = false; - this.logger = logger; + m_started = false; + m_logger = logger; } - public void start( URI configurationURI ) throws Exception { - if ( !this.started ){ - this.started = true; - this.logger.info( "starting with: " + configurationURI ); - } else { + public void start( final URI uri ) throws Exception + { + if( !m_started ) + { + m_started = true; + m_logger.info( "starting with: " + uri ); + } + else + { throw new Exception( "already started!" ); } } - public void stop() throws Exception { - if ( this.started ){ - this.started = false; - this.logger.info( "stopping" ); - } else { - throw new Exception("not started!" ); + public void stop() throws Exception + { + if ( m_started ){ + m_started = false; + m_logger.info( "stopping" ); + } + else + { + throw new Exception( "Not started!" ); } } - } Modified: trunk/tutorials/components/unit/src/main/acme/Container.java =================================================================== --- trunk/tutorials/components/unit/src/main/acme/Container.java 2006-12-03 06:00:20 UTC (rev 1794) +++ trunk/tutorials/components/unit/src/main/acme/Container.java 2006-12-03 07:10:30 UTC (rev 1795) @@ -1,3 +1,21 @@ +/* + * Copyright 2006 Juan Pablo Rojas Jim?nez. + * Copyright 2006 Stephen J. McConnell. + * + * 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. + */ package acme; public interface Container Modified: trunk/tutorials/components/unit/src/main/acme/ContainerImpl.java =================================================================== --- trunk/tutorials/components/unit/src/main/acme/ContainerImpl.java 2006-12-03 06:00:20 UTC (rev 1794) +++ trunk/tutorials/components/unit/src/main/acme/ContainerImpl.java 2006-12-03 07:10:30 UTC (rev 1795) @@ -1,3 +1,21 @@ +/* + * Copyright 2006 Juan Pablo Rojas Jim?nez. + * Copyright 2006 Stephen J. McConnell. + * + * 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. + */ package acme; import java.net.URI; Modified: trunk/tutorials/components/unit/src/test/acme/test/ExampleTest.java =================================================================== --- trunk/tutorials/components/unit/src/test/acme/test/ExampleTest.java 2006-12-03 06:00:20 UTC (rev 1794) +++ trunk/tutorials/components/unit/src/test/acme/test/ExampleTest.java 2006-12-03 07:10:30 UTC (rev 1795) @@ -45,11 +45,10 @@ m_logger.info( "decommissioning" ); Disposable disposable = (Disposable) m_component; disposable.dispose(); - System.gc(); } /** - * The Component instance exposes a buch of management operations. One + * The Component instance exposes a bunch of management operations. One * of these is the operation getProvider() which gives us access to * the manager of one instance of the class specificed by the component * type. The provider exposes the operation getValue( boolean ) which @@ -66,7 +65,7 @@ Provider provider = m_component.getProvider(); ContainerImpl container = (ContainerImpl) provider.getValue( false ); - // Any tests dealing with the instance would go here. + // Any test assertions go here. } /** From mcconnell at mail.berlios.de Sun Dec 3 02:11:09 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Sun, 3 Dec 2006 08:11:09 +0100 Subject: r1796 - in trunk/central/site: . src/docs/metro/tutorials src/docs/metro/tutorials/unit Message-ID: <200612030711.kB37B9J0015511@sheep.berlios.de> Author: mcconnell Date: 2006-12-03 08:11:08 +0100 (Sun, 03 Dec 2006) New Revision: 1796 Added: trunk/central/site/src/docs/metro/tutorials/unit/ trunk/central/site/src/docs/metro/tutorials/unit/index.xml trunk/central/site/src/docs/metro/tutorials/unit/navigation.xml Modified: trunk/central/site/build.xml trunk/central/site/src/docs/metro/tutorials/navigation.xml Log: add unit test for components Modified: trunk/central/site/build.xml =================================================================== --- trunk/central/site/build.xml 2006-12-03 07:10:30 UTC (rev 1795) +++ trunk/central/site/build.xml 2006-12-03 07:11:08 UTC (rev 1796) @@ -287,6 +287,18 @@ + + + + + + + + + + + + Modified: trunk/central/site/src/docs/metro/tutorials/navigation.xml =================================================================== --- trunk/central/site/src/docs/metro/tutorials/navigation.xml 2006-12-03 07:10:30 UTC (rev 1795) +++ trunk/central/site/src/docs/metro/tutorials/navigation.xml 2006-12-03 07:11:08 UTC (rev 1796) @@ -35,6 +35,7 @@ + Added: trunk/central/site/src/docs/metro/tutorials/unit/index.xml =================================================================== --- trunk/central/site/src/docs/metro/tutorials/unit/index.xml 2006-12-03 07:10:30 UTC (rev 1795) +++ trunk/central/site/src/docs/metro/tutorials/unit/index.xml 2006-12-03 07:11:08 UTC (rev 1796) @@ -0,0 +1,163 @@ + + + + + Stephen McConnell + Component Testing + + + + +
+ + + +

+ This tutorial focusses on the usage of Metro management APIs + within a testcase with the objective of fully simulating formal + commissioning and decommissioning of components in a unit testcase. +

+ +
+ + + + + + + + + + + + + + + + +
ExampleTest.javaAn example of a formal component testcase.
ContainerImpl.javaA component managing the lifecycle of a child component.
ChildImpl.javaThe managed child component.
+ +
+ + + +

+ The following code establishes the runtime context for all testXxx + methods in the testcase. In this example we are locating the part + definition for the project from the target directory, converting + the part location to a URI, and loading the part. In addition, + we explicity request a Component instance via the + the Part.getContent request. +

+ + +public void setUp() throws Exception +{ + m_logger = Logger.getLogger( "test" ); + m_logger.info( "commissioning" ); + URI uri = getPartURI(); + Part part = Part.load( uri ); + m_component = (Component) part.getContent( new Class[]{Component.class} ); +} + +private URI getPartURI() throws Exception +{ + String path = System.getProperty( "project.deliverable.part.path" ); + File file = new File( path ); + return file.toURI(); +} + + +
+ + + +

+ The Component instance exposes a bunch of management operations. One + of these is the operation getProvider() which gives us access to + the manager of one instance of the class specificed by the component + type. The provider exposes the operation getValue( boolean ) which + is where we actually get a fully initialized instance (and keep + in mind here that full-initialized means that all initialization + actions (such as state transitions) have alrady been successfully + completed. +

+ + +public void testExampleComponent() throws Exception +{ + m_logger.info( "testing" ); + Provider provider = m_component.getProvider(); + ContainerImpl container = (ContainerImpl) provider.getValue( false ); + + // Any tests assertions go here. +} + + +

+ With debug level logging assigned to the top-level component the + following output will be generated: +

+ +
+test:
+    [junit] Executing forked test.
+    [junit] Running acme.test.ExampleTest
+    [junit] [14139] [INFO   ] (test): commissioning
+    [junit] [14139] [FINE   ] (container): loaded [acme.ContainerImpl]
+    [junit] [14139] [FINE   ] (container): established SINGLETON:HARD lifestyle handler.
+    [junit] [14139] [INFO   ] (test): testing
+    [junit] [14139] [FINE   ] (container.child): loaded [acme.ChildImpl]
+    [junit] [14139] [FINE   ] (container.child): established SINGLETON:HARD lifestyle handler.
+    [junit] [14139] [INFO   ] (container): configuration uri: local:properties:acme/examples/services/configuration
+    [junit] [14139] [FINE   ] (container.child): instantiated [4744654]
+    [junit] [14139] [FINE   ] (container.child): activated [4744654]
+    [junit] [14139] [FINE   ] (container): instantiated [21854021]
+    [junit] [14139] [INFO   ] (container): starting
+    [junit] [14139] [INFO   ] (container.child): starting with: local:properties:acme/examples/services/configuration
+    [junit] [14139] [INFO   ] (container): configurable service started successfully
+    [junit] [14139] [FINE   ] (container): activated [21854021]
+    [junit] [14139] [INFO   ] (test): decommissioning
+    [junit] [14139] [INFO   ] (container): stopping
+    [junit] [14139] [INFO   ] (container.child): stopping
+    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.859 sec
+        
+ +
+ + + +

+ The following code gaurantees that the component instance will + be formally decommissioned (in effect simulating the normal + decommissioning behaviour you would see if the component was deployed + under the DPML Station). +

+ + +public void tearDown() throws Exception +{ + m_logger.info( "decommissioning" ); + Disposable disposable = (Disposable) m_component; + disposable.dispose(); +} + + +
+ + + +

+ Usage of classes in the net.dpml.component package enables + the formal control of a component. In effect your testcase is acting as + the component controller and the overall impact of commissioning and + decommissioning cycles can be fully assessed. +

+ +
+ +
+ + +
+ Added: trunk/central/site/src/docs/metro/tutorials/unit/navigation.xml =================================================================== --- trunk/central/site/src/docs/metro/tutorials/unit/navigation.xml 2006-12-03 07:10:30 UTC (rev 1795) +++ trunk/central/site/src/docs/metro/tutorials/unit/navigation.xml 2006-12-03 07:11:08 UTC (rev 1796) @@ -0,0 +1,32 @@ + + + + + + + Component Testing + + + + + + + + + From mcconnell at mail.berlios.de Sun Dec 3 02:26:50 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Sun, 3 Dec 2006 08:26:50 +0100 Subject: r1797 - trunk/central/site/src/docs/about/download Message-ID: <200612030726.kB37Qonv016570@sheep.berlios.de> Author: mcconnell Date: 2006-12-03 08:26:49 +0100 (Sun, 03 Dec 2006) New Revision: 1797 Modified: trunk/central/site/src/docs/about/download/archive.xml Log: updates reflecting the 1.1.0 distribution status Modified: trunk/central/site/src/docs/about/download/archive.xml =================================================================== --- trunk/central/site/src/docs/about/download/archive.xml 2006-12-03 07:11:08 UTC (rev 1796) +++ trunk/central/site/src/docs/about/download/archive.xml 2006-12-03 07:26:49 UTC (rev 1797) @@ -24,9 +24,12 @@

- Version @VERSION@ is a maintenance update the resolves a number of - issues identified while testing under SE5 and SE6 (RC), together with a number - of minor internal enhancements related to test phase build management. + The 1.1.0 release includes a number of small updates dealing with runtime + support for Java 1.5 and 1.6. The changes deal with memory management under + 1.5 and 1.6 that introduce requirements for a more restricted component + decommissioning process. Other changes include the addition of the support + for symbolic property references inside part definitions declared at the + level of a Depot project type declaration.

@@ -77,7 +80,70 @@
- + + + +

+ Resolved issues and/or enhancements: +

+ +

+ Version 1.0.5 is a maintenance update resoles an issues related to + properties supplied to forked testcases (specifically and dereferencing + of property values in a ${basedir}/test.properties file> and + the addition of related documentation. + of . +

+ + + + + + + + + + + + + + + + + + + + + + +
Windows NSIS Installer + + dpml-sdk-win32-1.0.5.exe + + + MD5 +
Windows Zip Archive + + dpml-sdk-win32-1.0.5.zip + + + MD5 +
Linux Archive + + dpml-sdk-linux-1.0.5.tar.gz + + + MD5 +
Documentation Archive + + dpml-sdk-docs-1.0.5.zip + + + MD5 +
+ +
+

From mcconnell at mail.berlios.de Sun Dec 3 03:32:59 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Sun, 3 Dec 2006 09:32:59 +0100 Subject: r1798 - trunk/central/site/src/docs/about/download Message-ID: <200612030832.kB38WxOF021248@sheep.berlios.de> Author: mcconnell Date: 2006-12-03 09:32:59 +0100 (Sun, 03 Dec 2006) New Revision: 1798 Modified: trunk/central/site/src/docs/about/download/archive.xml Log: minor corrections to 1.1.0 docs Modified: trunk/central/site/src/docs/about/download/archive.xml =================================================================== --- trunk/central/site/src/docs/about/download/archive.xml 2006-12-03 07:26:49 UTC (rev 1797) +++ trunk/central/site/src/docs/about/download/archive.xml 2006-12-03 08:32:59 UTC (rev 1798) @@ -90,9 +90,8 @@

Version 1.0.5 is a maintenance update resoles an issues related to properties supplied to forked testcases (specifically and dereferencing - of property values in a ${basedir}/test.properties file> and - the addition of related documentation. - of . + of property values in a ${basedir}/test.properties file and + related documentation).

From mcconnell at mail.berlios.de Sun Dec 3 20:18:50 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Mon, 4 Dec 2006 02:18:50 +0100 Subject: r1799 - / Message-ID: <200612040118.kB41Ios1013287@sheep.berlios.de> Author: mcconnell Date: 2006-12-04 02:18:49 +0100 (Mon, 04 Dec 2006) New Revision: 1799 Added: branches/ Log: add branches dir in prep for 1.X versus 2.X development From mcconnell at mail.berlios.de Fri Dec 8 08:19:12 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Fri, 8 Dec 2006 14:19:12 +0100 Subject: r1800 - trunk/central/site/src/docs/depot/tutorials Message-ID: <200612081319.kB8DJCam012937@sheep.berlios.de> Author: mcconnell Date: 2006-12-08 14:19:12 +0100 (Fri, 08 Dec 2006) New Revision: 1800 Modified: trunk/central/site/src/docs/depot/tutorials/imports.xml Log: correct import references (reported by Ivan Rambius Ivanov) Modified: trunk/central/site/src/docs/depot/tutorials/imports.xml =================================================================== --- trunk/central/site/src/docs/depot/tutorials/imports.xml 2006-12-04 01:18:49 UTC (rev 1799) +++ trunk/central/site/src/docs/depot/tutorials/imports.xml 2006-12-08 13:19:12 UTC (rev 1800) @@ -53,7 +53,7 @@ </types> <dependencies> <test> - <include ref="ant/ant-unit"/> + <include ref="ant/ant-junit"/> <include ref="dpml/transit/dpml-transit-main"/> </test> </dependencies> From mcconnell at mail.berlios.de Mon Dec 11 00:08:42 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Mon, 11 Dec 2006 06:08:42 +0100 Subject: r1801 - trunk/main Message-ID: <200612110508.kBB58gfj022797@sheep.berlios.de> Author: mcconnell Date: 2006-12-11 06:08:41 +0100 (Mon, 11 Dec 2006) New Revision: 1801 Modified: trunk/main/bootstrap.xml Log: remove source and target constraints on bootstrap compilation Modified: trunk/main/bootstrap.xml =================================================================== --- trunk/main/bootstrap.xml 2006-12-08 13:19:12 UTC (rev 1800) +++ trunk/main/bootstrap.xml 2006-12-11 05:08:41 UTC (rev 1801) @@ -390,8 +390,7 @@ - + From mcconnell at mail.berlios.de Mon Dec 11 22:13:58 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Tue, 12 Dec 2006 04:13:58 +0100 Subject: r1802 - branches Message-ID: <200612120313.kBC3Dw2d022833@sheep.berlios.de> Author: mcconnell Date: 2006-12-12 04:13:57 +0100 (Tue, 12 Dec 2006) New Revision: 1802 Added: branches/SDK-1/ Log: Establishing the working base for the 1.X branch. Copied: branches/SDK-1 (from rev 1801, trunk) From mcconnell at mail.berlios.de Mon Dec 11 22:22:37 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Tue, 12 Dec 2006 04:22:37 +0100 Subject: r1803 - branches/SDK-1/main Message-ID: <200612120322.kBC3Mbtm024179@sheep.berlios.de> Author: mcconnell Date: 2006-12-12 04:22:37 +0100 (Tue, 12 Dec 2006) New Revision: 1803 Modified: branches/SDK-1/main/BUILD.TXT Log: update build info Modified: branches/SDK-1/main/BUILD.TXT =================================================================== --- branches/SDK-1/main/BUILD.TXT 2006-12-12 03:13:57 UTC (rev 1802) +++ branches/SDK-1/main/BUILD.TXT 2006-12-12 03:22:37 UTC (rev 1803) @@ -21,7 +21,7 @@ establish the build tool. $ cd dev\dpml\main - $ svn checkout svn://svn.berlios.de/dpml/trunk/main + $ svn checkout svn://svn.berlios.de/dpml/branches/SDK-1/main $ bootstrap C. Main System Build @@ -54,8 +54,8 @@ $ build -decimal -The build procedure will build approximately 42 projects during which a number -of downloads may occur. On completion the %DPML_HOME%\data\dist directory will +The procedure will build approximately 42 projects during which a number of +downloads may occur. On completion the %DPML_HOME%\data\dist directory will contain the distribution archives for the installation. Unpack the archive corresponding to your platform into the %DPML_HOME% root directory. From mcconnell at mail.berlios.de Mon Dec 11 22:26:52 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Tue, 12 Dec 2006 04:26:52 +0100 Subject: r1804 - branches/SDK-1/central/site/src/docs/about/resources Message-ID: <200612120326.kBC3QqtJ024616@sheep.berlios.de> Author: mcconnell Date: 2006-12-12 04:26:51 +0100 (Tue, 12 Dec 2006) New Revision: 1804 Modified: branches/SDK-1/central/site/src/docs/about/resources/build.xml branches/SDK-1/central/site/src/docs/about/resources/svn.xml Log: update SDK-1 branch build and checkout information Modified: branches/SDK-1/central/site/src/docs/about/resources/build.xml =================================================================== --- branches/SDK-1/central/site/src/docs/about/resources/build.xml 2006-12-12 03:22:37 UTC (rev 1803) +++ branches/SDK-1/central/site/src/docs/about/resources/build.xml 2006-12-12 03:26:51 UTC (rev 1804) @@ -41,7 +41,7 @@
 $ cd dev\dpml\main
-$ svn checkout svn://svn.berlios.de/dpml/trunk/main
+$ svn checkout svn://svn.berlios.de/dpml/branches/SDK-1/main
 $ bootstrap
 
Modified: branches/SDK-1/central/site/src/docs/about/resources/svn.xml =================================================================== --- branches/SDK-1/central/site/src/docs/about/resources/svn.xml 2006-12-12 03:22:37 UTC (rev 1803) +++ branches/SDK-1/central/site/src/docs/about/resources/svn.xml 2006-12-12 03:26:51 UTC (rev 1804) @@ -11,6 +11,7 @@
+

Subversion is an open source version control system, released under an Apache/BSD-style license. This application was designed, and is on @@ -29,10 +30,10 @@

Checkout the DPML codebase using the following svn commandline:

- svn checkout https://svn.berlios.de/svnroot/repos/dpml/trunk/main + svn checkout https://svn.berlios.de/svnroot/repos/dpml/branches/SDK-1

Developers registered with the DPML project should use the following command:

svn checkout \ -svn+ssh://developername at svn.berlios.de/svnroot/repos/dpml/trunk/main +svn+ssh://developername at svn.berlios.de/svnroot/repos/dpml/branches/SDK-1
From mcconnell at mail.berlios.de Wed Dec 13 09:16:00 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Wed, 13 Dec 2006 15:16:00 +0100 Subject: r1805 - trunk/main/transit/core/src/main/net/dpml/util Message-ID: <200612131416.kBDEG0sj014207@sheep.berlios.de> Author: mcconnell Date: 2006-12-13 15:16:00 +0100 (Wed, 13 Dec 2006) New Revision: 1805 Modified: trunk/main/transit/core/src/main/net/dpml/util/ContextInvocationHandler.java Log: javadoc corrections Modified: trunk/main/transit/core/src/main/net/dpml/util/ContextInvocationHandler.java =================================================================== --- trunk/main/transit/core/src/main/net/dpml/util/ContextInvocationHandler.java 2006-12-12 03:26:51 UTC (rev 1804) +++ trunk/main/transit/core/src/main/net/dpml/util/ContextInvocationHandler.java 2006-12-13 14:16:00 UTC (rev 1805) @@ -68,7 +68,7 @@ /** * Create a context invocation handler. * - * @param provider the provider + * @param map a map containing context key/value pairs. */ private ContextInvocationHandler( Map map ) { From mcconnell at mail.berlios.de Sun Dec 17 21:06:25 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Mon, 18 Dec 2006 03:06:25 +0100 Subject: r1806 - trunk/main/transit/core/src/test/net/dpml/transit Message-ID: <200612180206.kBI26P78023212@sheep.berlios.de> Author: mcconnell Date: 2006-12-18 03:06:25 +0100 (Mon, 18 Dec 2006) New Revision: 1806 Added: trunk/main/transit/core/src/test/net/dpml/transit/artifact/ Log: From mcconnell at mail.berlios.de Sun Dec 17 22:09:47 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Mon, 18 Dec 2006 04:09:47 +0100 Subject: r1807 - trunk/main/transit/core/src/main/net/dpml/transit Message-ID: <200612180309.kBI39l9U030322@sheep.berlios.de> Author: mcconnell Date: 2006-12-18 04:09:47 +0100 (Mon, 18 Dec 2006) New Revision: 1807 Added: trunk/main/transit/core/src/main/net/dpml/transit/layout/ Log: From mcconnell at mail.berlios.de Sat Dec 23 23:24:19 2006 From: mcconnell at mail.berlios.de (mcconnell at BerliOS) Date: Sun, 24 Dec 2006 05:24:19 +0100 Subject: r1808 - trunk/main/util/cli/src/test/net/dpml/cli/bug Message-ID: <200612240424.kBO4OJEp030957@sheep.berlios.de> Author: mcconnell Date: 2006-12-24 05:24:18 +0100 (Sun, 24 Dec 2006) New Revision: 1808 Modified: trunk/main/util/cli/src/test/net/dpml/cli/bug/Bug27575Test.java Log: minor checkstyle update Modified: trunk/main/util/cli/src/test/net/dpml/cli/bug/Bug27575Test.java =================================================================== --- trunk/main/util/cli/src/test/net/dpml/cli/bug/Bug27575Test.java 2006-12-18 03:09:47 UTC (rev 1807) +++ trunk/main/util/cli/src/test/net/dpml/cli/bug/Bug27575Test.java 2006-12-24 04:24:18 UTC (rev 1808) @@ -52,6 +52,7 @@ if( entry.equals( "[-h]" ) || entry.equals( "-c " ) ) { // ok + boolean ok = true; } else {