[CVS spice] wqork in progress

paul-yCVjj/[email protected] 27 Jul 2005 03:36:56 -0000
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>spice/components/jervlet</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1"><span id="added">maven.xml</span></a></tt></td><td align="right" id="added">+31</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr class="alt"><td><tt><a href="#file2">project.properties</a></tt></td><td align="right" id="added">+7</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center">1.1 -&gt; 1.2</td></tr>
<tr><td><tt><a href="#file3">project.xml</a></tt></td><td align="right" id="added">+26</td><td></td><td nowrap="nowrap" align="center">1.1 -&gt; 1.2</td></tr>
<tr class="alt"><td><tt>src/java/org/codehaus/spice/jervlet/impl/pico/<a href="#file4"><span id="added">NanoGroovyWebContainerBuilder.java</span></a></tt></td><td align="right" id="added">+39</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr><td><tt>src/test/org/codehaus/spice/jervlet/impl/pico/<a href="#file5"><span id="added">ThinkingOutLoudNanoJervletTestCase.groovy</span></a></tt></td><td align="right" id="added">+28</td><td></td><td nowrap="nowrap" align="right">added 1.1</td></tr>
<tr><td></td><td align="right" id="added">+131</td><td align="right" id="removed">-1</td><td></td></tr>
</table>
<small id="info">3 added + 2 modified, total 5 files</small><br />
<div class="tasklist"><ul>
<li><a href="#task1">TODO.</a></li>
</ul></div>
<pre class="comment">
wqork in progress
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet<br /></span>
<div class="fileheader" id="added"><big><b>maven.xml</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N maven.xml
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ maven.xml	27 Jul 2005 03:36:56 -0000	1.1
@@ -0,0 +1,31 @@
</small></pre><pre class="diff" id="added">+&lt;project default="jar:install"
+         xmlns:j="jelly:core"
+         xmlns:util="jelly:util"
+         xmlns:ant="jelly:ant"&gt;
+
+    &lt;goal name="run-groovyc" prereqs="java:compile,test:compile"&gt;
+
+        &lt;path id="groovy.classpath"&gt;
+            &lt;pathelement path="${maven.build.dest}"/&gt;
+            &lt;pathelement path="target/classes"/&gt;
+            &lt;pathelement path="target/test-classes"/&gt;
+            &lt;path refid="maven.dependency.classpath"/&gt;
+        &lt;/path&gt;
+
+        &lt;taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc"&gt;
+            &lt;classpath refid="groovy.classpath"/&gt;
+        &lt;/taskdef&gt;
+
+        &lt;groovyc destdir="${basedir}/target/test-classes" srcdir="${basedir}/src/test"
+                 listfiles="true"&gt;
+            &lt;classpath refid="groovy.classpath"/&gt;
+        &lt;/groovyc&gt;
+
+    &lt;/goal&gt;
+
+    &lt;goal name="test"&gt;
+        &lt;attainGoal name="run-groovyc"/&gt;
+        &lt;attainGoal name="test:test"/&gt;
+    &lt;/goal&gt;
+
+&lt;/project&gt;
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname">spice/components/jervlet<br /></span>
<div class="fileheader"><big><b>project.properties</b></big> <small id="info">1.1 -&gt; 1.2</small></div>
<pre class="diff"><small id="info">diff -u -r1.1 -r1.2
--- project.properties	24 Jul 2005 20:59:23 -0000	1.1
+++ project.properties	27 Jul 2005 03:36:56 -0000	1.2
@@ -1,5 +1,11 @@
</small></pre><pre class="diff" id="added">+# required for Groovy unit test cases
+# This causes the tests to run twice. Grrr (AH).
+maven.test.search.classdir = true
+
+groovy.install.staging.dest=${maven.build.dir}/install/
+
</pre><pre class="diff" id="context"> maven.remote.group=spice
</pre><pre class="diff" id="removed">-maven.repo.remote=http://www.ibiblio.org/maven,http://dist.codehaus.org
</pre><pre class="diff" id="added">+maven.repo.remote=http://www.ibiblio.org/maven,http://dist<span id="addedchars">ci.codehaus.org,http://dist</span>.codehaus.org
</pre><pre class="diff" id="context"> 
 maven.checkstyle.properties = ${basedir}/../../tools/checkstyle/checkstyle.xml
 maven.checkstyle.license.exists=true
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname">spice/components/jervlet<br /></span>
<div class="fileheader"><big><b>project.xml</b></big> <small id="info">1.1 -&gt; 1.2</small></div>
<pre class="diff"><small id="info">diff -u -r1.1 -r1.2
--- project.xml	24 Jul 2005 20:59:23 -0000	1.1
+++ project.xml	27 Jul 2005 03:36:56 -0000	1.2
@@ -54,6 +54,32 @@
</small></pre><pre class="diff" id="context">             &lt;url&gt;http://jakarta.apache.org/commons/logging.html&lt;/url&gt;
         &lt;/dependency&gt;
 
</pre><pre class="diff" id="added">+        &lt;!-- optional for Groovy/NanoContainer --&gt;
+
+        &lt;dependency&gt;
+            &lt;id&gt;groovy&lt;/id&gt;
+            &lt;version&gt;1.0-beta-10&lt;/version&gt;
+        &lt;/dependency&gt;
+        &lt;dependency&gt;
+            &lt;id&gt;antlr&lt;/id&gt;
+            &lt;version&gt;2.7.5&lt;/version&gt;
+        &lt;/dependency&gt;
+        &lt;dependency&gt;
+            &lt;id&gt;asm&lt;/id&gt;
+            &lt;version&gt;1.5.2&lt;/version&gt;
+        &lt;/dependency&gt;
+        &lt;dependency&gt;
+            &lt;groupId&gt;asm&lt;/groupId&gt;
+            &lt;artifactId&gt;asm-util&lt;/artifactId&gt;
+            &lt;version&gt;1.5.2&lt;/version&gt;
+        &lt;/dependency&gt;
+        &lt;dependency&gt;
+            &lt;groupId&gt;nanocontainer&lt;/groupId&gt;
+            &lt;artifactId&gt;nanocontainer&lt;/artifactId&gt;
+            &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
+        &lt;/dependency&gt;
+
+
</pre><pre class="diff" id="context">     &lt;/dependencies&gt;
 
     &lt;developers&gt;
</pre></div>
<hr /><a name="file4" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet/src/java/org/codehaus/spice/jervlet/impl/pico<br /></span>
<div class="fileheader" id="added"><big><b>NanoGroovyWebContainerBuilder.java</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N NanoGroovyWebContainerBuilder.java
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ NanoGroovyWebContainerBuilder.java	27 Jul 2005 03:36:56 -0000	1.1
@@ -0,0 +1,39 @@
</small></pre><pre class="diff" id="added">+package org.codehaus.spice.jervlet.impl.pico;
+
+
+import org.nanocontainer.NanoContainer;
+
+import java.util.Map;
+import java.util.Collections;
+import java.util.HashMap;
+
+import groovy.util.BuilderSupport;
+
+public class NanoGroovyWebContainerBuilder extends BuilderSupport  {
+
+    protected void setParent(Object object, Object object1) {
+    }
+
+    protected Object createNode(Object name) {
+        return createNode(name, Collections.EMPTY_MAP);
+    }
+
+    protected Object createNode(Object name, Object value) {
+        Map attributes = new HashMap();
+        attributes.put("class", value);
+        return createNode(name, attributes);
+    }
+
+    protected Object createNode(Object object, Map map) {
<a name="task1" />+        //<span class="task">TODO</span>.
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    protected Object createNode(Object name, Map attributes, Object object1) {
+        return createNode(name, attributes);
+    }
+
+    public NanoGroovyWebContainerBuilder(Map attributes, NanoContainer parentContainer) {
+
+    }
+}
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file5" /><div class="file">
<span class="pathname" id="added">spice/components/jervlet/src/test/org/codehaus/spice/jervlet/impl/pico<br /></span>
<div class="fileheader" id="added"><big><b>ThinkingOutLoudNanoJervletTestCase.groovy</b></big> <small id="info">added at 1.1</small></div>
<pre class="diff"><small id="info">diff -N ThinkingOutLoudNanoJervletTestCase.groovy
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ThinkingOutLoudNanoJervletTestCase.groovy	27 Jul 2005 03:36:56 -0000	1.1
@@ -0,0 +1,28 @@
</small></pre><pre class="diff" id="added">+package org.codehaus.spice.jervlet.impl.pico
+
+//import org.codehaus.spice.jervlet.impl.pico.NanoGroovyWebContainerBuilder
+//import org.picocontainer.defaults.DefaultPicoContainer
+
+class ThinkingOutLoudNanoJervletTestCase extends GroovyTestCase {
+
+    void testSomething() {
+
+//        pc = new DefaultPicoContainer()
+//        pc.registerComponentInstance(String.class, "Foo")
+
+//        builder = new NanoGroovyWebContainerBuilder()
+
+//        webServer = builder.picoEnabledWebServer(pico:pc, host:"localhost", port:8099) {
+//            webApp(warPath:"foo/bar")
+//            webApp {
+//              servlet(context:"/foo", servletClass:"foo.bar.AServlet")
+//            }
+//        }
+
+//        webServer.start()
+
+//        assertEquals("?","?")
+    }
+
+
+}
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.8</small></center>
</body></html>