Skip to Content.
Sympa Menu

notify-dpml - r1662 - in trunk/tutorials/components/customize: . clock clock/etc clock/etc/data custom extension extension/etc extension/etc/data extension/src extension/src/test extension/src/test/org extension/src/test/org/acme extension/src/test/org/acme/test

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: r1662 - in trunk/tutorials/components/customize: . clock clock/etc clock/etc/data custom extension extension/etc extension/etc/data extension/src extension/src/test extension/src/test/org extension/src/test/org/acme extension/src/test/org/acme/test
  • Date: Tue, 25 Jul 2006 11:29:04 +0200

Author: mcconnell
Date: 2006-07-25 11:29:04 +0200 (Tue, 25 Jul 2006)
New Revision: 1662

Added:
trunk/tutorials/components/customize/clock/ABOUT.TXT
trunk/tutorials/components/customize/clock/etc/
trunk/tutorials/components/customize/clock/etc/data/
trunk/tutorials/components/customize/clock/etc/data/logging.properties
trunk/tutorials/components/customize/custom/ABOUT.TXT
trunk/tutorials/components/customize/extension/
trunk/tutorials/components/customize/extension/ABOUT.TXT
trunk/tutorials/components/customize/extension/etc/
trunk/tutorials/components/customize/extension/etc/data/
trunk/tutorials/components/customize/extension/etc/data/logging.properties
trunk/tutorials/components/customize/extension/src/
trunk/tutorials/components/customize/extension/src/test/
trunk/tutorials/components/customize/extension/src/test/org/
trunk/tutorials/components/customize/extension/src/test/org/acme/
trunk/tutorials/components/customize/extension/src/test/org/acme/test/

trunk/tutorials/components/customize/extension/src/test/org/acme/test/DemoTestCase.java
Log:
added logging properties to clack project and testcase

Added: trunk/tutorials/components/customize/clock/ABOUT.TXT
===================================================================
--- trunk/tutorials/components/customize/clock/ABOUT.TXT 2006-07-25
08:48:16 UTC (rev 1661)
+++ trunk/tutorials/components/customize/clock/ABOUT.TXT 2006-07-25
09:29:04 UTC (rev 1662)
@@ -0,0 +1 @@
+The component defintion we use as the base for subsequent customization.
\ No newline at end of file

Added: trunk/tutorials/components/customize/clock/etc/data/logging.properties
===================================================================
--- trunk/tutorials/components/customize/clock/etc/data/logging.properties
2006-07-25 08:48:16 UTC (rev 1661)
+++ trunk/tutorials/components/customize/clock/etc/data/logging.properties
2006-07-25 09:29:04 UTC (rev 1662)
@@ -0,0 +1,4 @@
+.level=FINEST
+sun.rmi.level=INFO
+dpml.level=FINEST
+

Added: trunk/tutorials/components/customize/custom/ABOUT.TXT
===================================================================
--- trunk/tutorials/components/customize/custom/ABOUT.TXT 2006-07-25
08:48:16 UTC (rev 1661)
+++ trunk/tutorials/components/customize/custom/ABOUT.TXT 2006-07-25
09:29:04 UTC (rev 1662)
@@ -0,0 +1 @@
+Example dealing with uri extension of another component with supplimentary
classes support context values.
\ No newline at end of file

Added: trunk/tutorials/components/customize/extension/ABOUT.TXT
===================================================================
--- trunk/tutorials/components/customize/extension/ABOUT.TXT 2006-07-25
08:48:16 UTC (rev 1661)
+++ trunk/tutorials/components/customize/extension/ABOUT.TXT 2006-07-25
09:29:04 UTC (rev 1662)
@@ -0,0 +1 @@
+Example dealing with direct uri extension of another component.
\ No newline at end of file

Added:
trunk/tutorials/components/customize/extension/etc/data/logging.properties
===================================================================
---
trunk/tutorials/components/customize/extension/etc/data/logging.properties
2006-07-25 08:48:16 UTC (rev 1661)
+++
trunk/tutorials/components/customize/extension/etc/data/logging.properties
2006-07-25 09:29:04 UTC (rev 1662)
@@ -0,0 +1,7 @@
+.level=FINEST
+sun.rmi.level=INFO
+#dpml.metro.level=FINEST
+#dpml.transit.level=FINEST
+#dpml.lang.level=FINEST
+#demo.level=FINE
+

Added:
trunk/tutorials/components/customize/extension/src/test/org/acme/test/DemoTestCase.java
===================================================================
---
trunk/tutorials/components/customize/extension/src/test/org/acme/test/DemoTestCase.java
2006-07-25 08:48:16 UTC (rev 1661)
+++
trunk/tutorials/components/customize/extension/src/test/org/acme/test/DemoTestCase.java
2006-07-25 09:29:04 UTC (rev 1662)
@@ -0,0 +1,56 @@
+/*
+ * 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 org.acme.test;
+
+import java.io.File;
+import java.net.URI;
+
+import junit.framework.TestCase;
+
+import net.dpml.lang.Part;
+
+import org.acme.clock.Clock;
+
+/**
+ * Deployment of the demo component.
+ *
+ * @author <a href="@PUBLISHER-URL@">@PUBLISHER-NAME@</a>
+ * @version @PROJECT-VERSION@
+ */
+public class DemoTestCase extends TestCase
+{
+ /**
+ * Test component deployment.
+ * @exception Exception if an error occurs
+ */
+ public void testComponent() throws Exception
+ {
+ URI uri = getPartURI();
+ Part part = Part.load( uri );
+ Clock clock = (Clock) part.getContent();
+ System.out.println( clock.getTimestamp() );
+ }
+
+ private URI getPartURI() throws Exception
+ {
+ String path = System.getProperty( "project.deliverable.part.path" );
+ File file = new File( path );
+ return file.toURI();
+ }
+}




  • r1662 - in trunk/tutorials/components/customize: . clock clock/etc clock/etc/data custom extension extension/etc extension/etc/data extension/src extension/src/test extension/src/test/org extension/src/test/org/acme extension/src/test/org/acme/test, mcconnell at BerliOS, 07/25/2006

Archive powered by MHonArc 2.6.24.

Top of Page