Skip to Content.
Sympa Menu

notify-dpml - r1594 - in trunk/central/tutorials/tooling: . simple simple/etc simple/etc/data simple/src simple/src/main simple/src/main/org simple/src/main/org/acme

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: r1594 - in trunk/central/tutorials/tooling: . simple simple/etc simple/etc/data simple/src simple/src/main simple/src/main/org simple/src/main/org/acme
  • Date: Wed, 19 Jul 2006 17:20:10 +0200

Author: mcconnell
Date: 2006-07-19 17:20:09 +0200 (Wed, 19 Jul 2006)
New Revision: 1594

Added:
trunk/central/tutorials/tooling/simple/
trunk/central/tutorials/tooling/simple/build.xml
trunk/central/tutorials/tooling/simple/etc/
trunk/central/tutorials/tooling/simple/etc/data/
trunk/central/tutorials/tooling/simple/etc/data/logging.properties
trunk/central/tutorials/tooling/simple/index.xml
trunk/central/tutorials/tooling/simple/src/
trunk/central/tutorials/tooling/simple/src/main/
trunk/central/tutorials/tooling/simple/src/main/org/
trunk/central/tutorials/tooling/simple/src/main/org/acme/
trunk/central/tutorials/tooling/simple/src/main/org/acme/Demo.java
Modified:
trunk/central/tutorials/tooling/
Log:



Property changes on: trunk/central/tutorials/tooling
___________________________________________________________________
Name: svn:ignore
+ XXX


Added: trunk/central/tutorials/tooling/simple/build.xml
===================================================================
--- trunk/central/tutorials/tooling/simple/build.xml 2006-07-19 15:18:42
UTC (rev 1593)
+++ trunk/central/tutorials/tooling/simple/build.xml 2006-07-19 15:20:09
UTC (rev 1594)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<project default="install"
+ xmlns:transit="antlib:net.dpml.transit"
+ xmlns:x="dpml:depot">
+
+ <transit:import uri="local:template:dpml/tools/standard"/>
+
+ <target name="prepare" depends="standard.prepare">
+ <x:plugin uri="link:part:dpml/depot/dpml-depot-convert">
+ <task name="convert" class="de.java2html.anttasks.Java2HtmlTask"/>
+ </x:plugin>
+ <convert srcdir="target/build/main" destdir="target/reports/src"/>
+ </target>
+
+</project>

Added: trunk/central/tutorials/tooling/simple/etc/data/logging.properties
===================================================================
--- trunk/central/tutorials/tooling/simple/etc/data/logging.properties
2006-07-19 15:18:42 UTC (rev 1593)
+++ trunk/central/tutorials/tooling/simple/etc/data/logging.properties
2006-07-19 15:20:09 UTC (rev 1594)
@@ -0,0 +1,7 @@
+.level=FINEST
+sun.rmi.level=INFO
+dpml.metro.level=INFO
+dpml.transit.level=INFO
+dpml.lang.level=INFO
+demo.level=FINEST
+

Added: trunk/central/tutorials/tooling/simple/index.xml
===================================================================
--- trunk/central/tutorials/tooling/simple/index.xml 2006-07-19 15:18:42
UTC (rev 1593)
+++ trunk/central/tutorials/tooling/simple/index.xml 2006-07-19 15:20:09
UTC (rev 1594)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<index xmlns="link:xsd:dpml/lang/dpml-module#1.0">
+
+ <project name="demo"/>
+
+</index>

Added: trunk/central/tutorials/tooling/simple/src/main/org/acme/Demo.java
===================================================================
--- trunk/central/tutorials/tooling/simple/src/main/org/acme/Demo.java
2006-07-19 15:18:42 UTC (rev 1593)
+++ trunk/central/tutorials/tooling/simple/src/main/org/acme/Demo.java
2006-07-19 15:20:09 UTC (rev 1594)
@@ -0,0 +1,60 @@
+/*
+ * 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;
+
+import java.util.Date;
+import java.util.logging.Logger;
+
+/**
+ * A minimal component.
+ *
+ * @author <a href="@PUBLISHER-URL@">@PUBLISHER-NAME@</a>
+ * @version @PROJECT-VERSION@
+ */
+public class Demo
+{
+ //------------------------------------------------------------------
+ // state
+ //------------------------------------------------------------------
+
+ private final Logger m_logger;
+
+ //------------------------------------------------------------------
+ // criteria
+ //------------------------------------------------------------------
+
+ public interface Context
+ {
+ Date getTimestamp( Date date );
+ }
+
+ //------------------------------------------------------------------
+ // constructor
+ //------------------------------------------------------------------
+ /**
+ * Creation of a new object using a supplied logging channel.
+ * @param logger the logging channel
+ */
+ public Demo( final Logger logger, final Context context )
+ {
+ m_logger = logger;
+ Date timestamp = context.getTimestamp( new Date() );
+ m_logger.info( "TIMESTAMP: " + timestamp );
+ }
+}




  • r1594 - in trunk/central/tutorials/tooling: . simple simple/etc simple/etc/data simple/src simple/src/main simple/src/main/org simple/src/main/org/acme, mcconnell at BerliOS, 07/19/2006

Archive powered by MHonArc 2.6.24.

Top of Page