<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-11867</id>
	<title>Nabble - groovy - user</title>
	<updated>2009-11-26T14:04:59Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/groovy---user-f11867.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/groovy---user-f11867.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26535476</id>
	<title>Cut a connection with HTTPBuilder</title>
	<published>2009-11-26T14:04:59Z</published>
	<updated>2009-11-26T14:04:59Z</updated>
	<author>
		<name>bgoetzmann</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Using the excellent HTTPBuilder in a Groovy application that uses COMET, I do a GET HTTP command like this:
&lt;br&gt;&lt;br&gt;def builder = new HTTPBuilder(path)
&lt;br&gt;&amp;nbsp; builder.get(path: 'atmosphere', contentType : &amp;nbsp;ContentType.TEXT) { resp, reader -&amp;gt;
&lt;br&gt;&amp;nbsp; ...
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;And I'm in a case where the server cans retains the HTTP connection a long time.
&lt;br&gt;&lt;br&gt;Here my question: how can I cut the call, for example to stop my application?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thank you.
&lt;br&gt;&lt;br&gt;Bertrand. </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cut-a-connection-with-HTTPBuilder-tp26535476p26535476.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26534154</id>
	<title>Re: regexp question</title>
	<published>2009-11-26T11:45:11Z</published>
	<updated>2009-11-26T11:45:11Z</updated>
	<author>
		<name>Tim Yates</name>
	</author>
	<content type="html">Assuming that&amp;#39;s what you want, you&amp;#39;ll need something like&lt;br&gt;&lt;br&gt;&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-keyword&quot;&gt;def &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;mch &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;s &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;~ &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;+?&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;\$&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;(.&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;br&gt;

&lt;/blockquote&gt;&lt;span class=&quot;js-variable&quot;&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;That will capture every character after a dollar sign&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 26, 2009 at 7:37 PM, Tim Yates &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534154&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tim.yates@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Sorry, you&amp;#39;ve lost me...  what&amp;#39;s that one supposed to match to?&lt;br&gt;&lt;br&gt;Everything after the dollar?&lt;div&gt;

&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/regexp-question-tp26531236p26534154.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26534081</id>
	<title>Re: regexp question</title>
	<published>2009-11-26T11:37:50Z</published>
	<updated>2009-11-26T11:37:50Z</updated>
	<author>
		<name>Tim Yates</name>
	</author>
	<content type="html">Sorry, you&amp;#39;ve lost me...  what&amp;#39;s that one supposed to match to?&lt;br&gt;&lt;br&gt;Everything after the dollar?&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 26, 2009 at 4:28 PM, Anders Viklund &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534081&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;viklund_anders@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;br&gt;
almost working&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
/something/something/somethingelse/a/b/c$_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
But, what to do if I would like to match the string starting from $_globalVariables/... ?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
    The dollar sign seems a bit tricky to deal with.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Date: Thu, 26 Nov 2009 09:51:24 -0600&lt;br&gt;
From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534081&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;slamboy@...&lt;/a&gt;&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534081&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;br&gt;
Subject: Re: [groovy-user] regexp question&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;def str=&amp;#39;$_globalVariables/ns2:GlobalVariables/something, $_globalVariables/ns2:GlobalVariables/something/somethingelse $_globalVariables/ns2:GlobalVariables/a/b/c $_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/   &amp;#39;&lt;br&gt;


&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
def mch = str =~ /GlobalVariables([^ ,]*)/&lt;br&gt;
&lt;br&gt;
mch.each{&lt;br&gt;
   println it[1]&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Thu, Nov 26, 2009 at 9:41 AM, Anders Viklund &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534081&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;viklund_anders@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Hi,&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
How can I modify this code to get the desired output?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks for any ideas!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
def str=&amp;#39;&lt;br&gt;
&lt;br&gt;
$_globalVariables/ns2:GlobalVariables/something,&lt;br&gt;
&lt;br&gt;
$_globalVariables/ns2:GlobalVariables/something/somethingelse $_globalVariables/ns2:GlobalVariables/a/b/c&lt;br&gt;
&lt;br&gt;
$_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/   &amp;#39;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
def mch = str =~ /\b\$_.+?\b/&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
mch.each() {&lt;br&gt;
&lt;br&gt;
   println it&lt;br&gt;
&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
DESIRED OUTPUT:&lt;br&gt;
&lt;br&gt;
/something&lt;br&gt;
&lt;br&gt;
/something/somethingelse&lt;br&gt;
&lt;br&gt;
/a/b/c&lt;br&gt;
&lt;br&gt;
/anything/something/somethingelse/&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
_________________________________________________________________&lt;br&gt;
&lt;br&gt;
Keep your friends updated—even when you’re not signed in.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&lt;/a&gt;&lt;br&gt;


&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;hm&quot;&gt;_________________________________________________________________&lt;br&gt;
Windows Live Hotmail: Your friends can get your Facebook updates, right from Hotmail®.&lt;br&gt;
&lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009&lt;/a&gt;&lt;br&gt;


&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/regexp-question-tp26531236p26534081.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532774</id>
	<title>Re: Nested class inheritance used to work</title>
	<published>2009-11-26T09:39:13Z</published>
	<updated>2009-11-26T09:39:13Z</updated>
	<author>
		<name>Jochen Theodorou</name>
	</author>
	<content type="html">Roshan Dawrani schrieb:
&lt;br&gt;[...]
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public class Parent {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public class A {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static void moo() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final a = new A()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;println a
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Parent.moo()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----------------------------------
&lt;/div&gt;[...]
&lt;br&gt;&amp;gt; Didn't get it. null value for Parent? R u talking internals? :-)
&lt;br&gt;&lt;br&gt;ah, I know why now... anyway... new A() is basically new A(x), where x 
&lt;br&gt;is the instance of the surrounding class and is stored in this$0, like 
&lt;br&gt;Java does it. But in the case here this$0 will be null. And I just 
&lt;br&gt;remembered that is because foo() can invoke foo(Parent p) by placing 
&lt;br&gt;null for p. That stupid method invocation logic I wanted to remove a 
&lt;br&gt;long time ago already... sigh..
&lt;br&gt;&lt;br&gt;&amp;gt; In terms of usage (using a non-static class from a static method, it is 
&lt;br&gt;&amp;gt; wrong, right? And a bug?
&lt;br&gt;&lt;br&gt;in terms of Java yes, and it must absolutely throw a compilation time 
&lt;br&gt;error. Of course only of nonstatic nested classes. If it would fail 
&lt;br&gt;early at runtime I wouldn't say we have to check that at compile time, 
&lt;br&gt;but since there is that stupid method invocation logic that I am cursing 
&lt;br&gt;for years now, we may not have a choice. Because else it will lead to a 
&lt;br&gt;NPE at an unrelated place, making it difficult for the user to know why 
&lt;br&gt;he gets an NPE here. And actually I think I fall into that trap already 
&lt;br&gt;once without noticing the error.
&lt;br&gt;&lt;br&gt;Of course new A(new Parent()) has to be allowed atm.... which leads to 
&lt;br&gt;new problems, as simple check won't do. I would build in a runtime check 
&lt;br&gt;into the class itself, but the problem will happen with java written 
&lt;br&gt;nested classes as well.
&lt;br&gt;&lt;br&gt;Actually I think this issue is not as trivial as I initially thought.
&lt;br&gt;&lt;br&gt;&lt;br&gt;bye blackdrag
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jochen &amp;quot;blackdrag&amp;quot; Theodorou
&lt;br&gt;The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)
&lt;br&gt;&lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-class-inheritance-used-to-work-tp26507381p26532774.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532658</id>
	<title>Re: Nested class inheritance used to work</title>
	<published>2009-11-26T09:28:09Z</published>
	<updated>2009-11-26T09:28:09Z</updated>
	<author>
		<name>Martin C. Martin</name>
	</author>
	<content type="html">&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public class Parent {
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public class A {
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Because there's no &amp;quot;static&amp;quot; in front of A, every instance of A has a 
&lt;br&gt;reference to an instance of Parent. &amp;nbsp;Or at least, its supposed to.
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static void moo() {
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final a = new A()
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;println a
&lt;br&gt;&amp;nbsp;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Since &amp;quot;moo&amp;quot; is a static method, its not associated with any instance of 
&lt;br&gt;Parent. &amp;nbsp;So the new A() should fail, saying that there's no instance of 
&lt;br&gt;Parent that its associated with.
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;Martin
&lt;br&gt;&lt;br&gt;Roshan Dawrani wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Thu, Nov 26, 2009 at 10:40 PM, Jochen Theodorou &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532658&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blackdrag@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532658&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blackdrag@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Roshan Dawrani schrieb:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The following code not only compiles but also runs - even though
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A is a non-static class referred in a static context:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public class Parent {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public class A {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static void moo() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;final a = new A()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;println a
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Parent.moo()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This is not correct, right?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; indeed... it uses wrongly a null value for Parent
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Didn't get it. null value for Parent? R u talking internals? :-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In terms of usage (using a non-static class from a static method, it is 
&lt;br&gt;&amp;gt; wrong, right? And a bug?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; bye blackdrag
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; -- 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Jochen &amp;quot;blackdrag&amp;quot; Theodorou
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-class-inheritance-used-to-work-tp26507381p26532658.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532470</id>
	<title>Re: Nested class inheritance used to work</title>
	<published>2009-11-26T09:13:25Z</published>
	<updated>2009-11-26T09:13:25Z</updated>
	<author>
		<name>Roshan Dawrani-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 26, 2009 at 10:40 PM, Jochen Theodorou &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532470&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blackdrag@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Roshan Dawrani schrieb:&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
The following code not only compiles but also runs - even though A is a non-static class referred in a static context:&lt;br&gt;
&lt;br&gt;
----------------------------------&lt;br&gt;
public class Parent {&lt;br&gt;
   public class A {&lt;br&gt;
   }&lt;br&gt;
    public static void moo() {&lt;br&gt;
      final a = new A()&lt;br&gt;
      println a&lt;br&gt;
   }&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
Parent.moo()&lt;br&gt;
----------------------------------&lt;br&gt;
&lt;br&gt;
This is not correct, right?&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;
indeed... it uses wrongly a null value for Parent&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Didn&amp;#39;t get it. null value for Parent? R u talking internals? :-)&lt;br&gt;&lt;br&gt;In terms of usage (using a non-static class from a static method, it is wrong, right? And a bug?&lt;br&gt;
&lt;br&gt; &lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
bye blackdrag&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Jochen &amp;quot;blackdrag&amp;quot; Theodorou&lt;br&gt;
The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)&lt;br&gt;
&lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
   &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-class-inheritance-used-to-work-tp26507381p26532470.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532421</id>
	<title>Re: Nested class inheritance used to work</title>
	<published>2009-11-26T09:10:30Z</published>
	<updated>2009-11-26T09:10:30Z</updated>
	<author>
		<name>Jochen Theodorou</name>
	</author>
	<content type="html">Roshan Dawrani schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The following code not only compiles but also runs - even though A is a 
&lt;br&gt;&amp;gt; non-static class referred in a static context:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ----------------------------------
&lt;br&gt;&amp;gt; public class Parent {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;public class A {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;public static void moo() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; final a = new A()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; println a
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Parent.moo()
&lt;br&gt;&amp;gt; ----------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This is not correct, right?
&lt;/div&gt;&lt;br&gt;indeed... it uses wrongly a null value for Parent
&lt;br&gt;&lt;br&gt;bye blackdrag
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jochen &amp;quot;blackdrag&amp;quot; Theodorou
&lt;br&gt;The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)
&lt;br&gt;&lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-class-inheritance-used-to-work-tp26507381p26532421.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531845</id>
	<title>RE: regexp question</title>
	<published>2009-11-26T08:28:54Z</published>
	<updated>2009-11-26T08:28:54Z</updated>
	<author>
		<name>citron</name>
	</author>
	<content type="html">&lt;br&gt;almost working
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;/something/something/somethingelse/a/b/c$_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;But, what to do if I would like to match the string starting from $_globalVariables/... ?
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; The dollar sign seems a bit tricky to deal with.
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;&amp;nbsp; 
&lt;br&gt;Date: Thu, 26 Nov 2009 09:51:24 -0600
&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531845&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;slamboy@...&lt;/a&gt;
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531845&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;Subject: Re: [groovy-user] regexp question
&lt;br&gt;&lt;br&gt;def str='$_globalVariables/ns2:GlobalVariables/something, $_globalVariables/ns2:GlobalVariables/something/somethingelse $_globalVariables/ns2:GlobalVariables/a/b/c $_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/   '
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;def mch = str =~ /GlobalVariables([^ ,]*)/
&lt;br&gt;&lt;br&gt;mch.each{
&lt;br&gt;   println it[1]
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 9:41 AM, Anders Viklund &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531845&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;viklund_anders@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;How can I modify this code to get the desired output?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks for any ideas!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;def str='
&lt;br&gt;&lt;br&gt;$_globalVariables/ns2:GlobalVariables/something,
&lt;br&gt;&lt;br&gt;$_globalVariables/ns2:GlobalVariables/something/somethingelse $_globalVariables/ns2:GlobalVariables/a/b/c
&lt;br&gt;&lt;br&gt;$_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/   '
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;def mch = str =~ /\b\$_.+?\b/
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;mch.each() {
&lt;br&gt;&lt;br&gt;   println it
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;DESIRED OUTPUT:
&lt;br&gt;&lt;br&gt;/something
&lt;br&gt;&lt;br&gt;/something/somethingelse
&lt;br&gt;&lt;br&gt;/a/b/c
&lt;br&gt;&lt;br&gt;/anything/something/somethingelse/
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_________________________________________________________________
&lt;br&gt;&lt;br&gt;Keep your friends updated—even when you’re not signed in.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;   &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Windows Live Hotmail: Your friends can get your Facebook updates, right from Hotmail®.
&lt;br&gt;&lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_4:092009&lt;/a&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/regexp-question-tp26531236p26531845.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531595</id>
	<title>Qwertutyiôplljkhfgdazxcvbnmdgfggf</title>
	<published>2009-11-26T08:10:24Z</published>
	<updated>2009-11-26T08:10:24Z</updated>
	<author>
		<name>Christopher Mahns</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;Sent from my iPod
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Qwertutyi%C3%B4plljkhfgdazxcvbnmdgfggf-tp26531595p26531595.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531476</id>
	<title>RE: regexp question</title>
	<published>2009-11-26T08:01:54Z</published>
	<updated>2009-11-26T08:01:54Z</updated>
	<author>
		<name>citron</name>
	</author>
	<content type="html">&lt;br&gt;Fantastic, it works perfect!
&lt;br&gt;&lt;br&gt;________________________________
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531476&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tim.yates@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Date: Thu, 26 Nov 2009 15:52:52 +0000
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531476&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: [groovy-user] regexp question
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How about
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; def str='''
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $_globalVariables/ns2:GlobalVariables/something,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $_globalVariables/ns2:GlobalVariables/something/somethingelse $_globalVariables/ns2:GlobalVariables/a/b/c
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/ '''
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; def mch = str =~ /GlobalVariables([\/a-zA-Z0-9]+)/
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; mch.each {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; println it[1]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tim
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 26, 2009 at 3:41 PM, Anders Viklund&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How can I modify this code to get the desired output?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for any ideas!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; def str='
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $_globalVariables/ns2:GlobalVariables/something,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $_globalVariables/ns2:GlobalVariables/something/somethingelse $_globalVariables/ns2:GlobalVariables/a/b/c
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/ '
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; def mch = str =~ /\b\$_.+?\b/
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; mch.each() {
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; println it
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; DESIRED OUTPUT:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /something
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /something/somethingelse
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /a/b/c
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /anything/something/somethingelse/
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _________________________________________________________________
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Keep your friends updated—even when you’re not signed in.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
&lt;br&gt;&lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009&lt;/a&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/regexp-question-tp26531236p26531476.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531377</id>
	<title>Re: regexp question</title>
	<published>2009-11-26T07:52:52Z</published>
	<updated>2009-11-26T07:52:52Z</updated>
	<author>
		<name>Tim Yates</name>
	</author>
	<content type="html">&lt;div&gt;How about&lt;br&gt; &lt;/div&gt;&lt;blockquote style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot; class=&quot;gmail_quote&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-keyword&quot;&gt;def &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-string&quot;&gt;&amp;#39;&amp;#39;&amp;#39;&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;whitespace&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;$_globalVariables&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;ns2&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;GlobalVariables&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;something&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;,&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;whitespace&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;$_globalVariables&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;ns2&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;GlobalVariables&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;something&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;somethingelse $_globalVariables&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;ns2&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;GlobalVariables&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;c&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;whitespace&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;$_globalVariables&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;ns2&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;GlobalVariables&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;anything&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;something&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;somethingelse&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/   &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-string&quot;&gt;&amp;#39;&amp;#39;&amp;#39;&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;whitespace&quot;&gt; &lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;whitespace&quot;&gt; &lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-keyword&quot;&gt;def &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;mch &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;str &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;~ &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;GlobalVariables&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;([&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;zA&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;Z0&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-atom&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-operator&quot;&gt;/&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;mch&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;each &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;{&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;whitespace&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-variable&quot;&gt;println it&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-atom&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;]&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;

&lt;span style=&quot;font-family: courier new,monospace;&quot; class=&quot;js-punctuation&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;font-family: courier new,monospace;&quot;&gt;&lt;/blockquote&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt;&lt;span class=&quot;whitespace&quot;&gt;&lt;span style=&quot;font-family: courier new,monospace;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;br&gt;

&lt;span class=&quot;whitespace&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span class=&quot;whitespace&quot;&gt;Tim&lt;br&gt;&lt;/span&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 26, 2009 at 3:41 PM, Anders Viklund &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531377&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;viklund_anders@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;br&gt;
Hi,&lt;br&gt;
&lt;br&gt;
How can I modify this code to get the desired output?&lt;br&gt;
&lt;br&gt;
Thanks for any ideas!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
def str=&amp;#39;&lt;br&gt;
$_globalVariables/ns2:GlobalVariables/something,&lt;br&gt;
$_globalVariables/ns2:GlobalVariables/something/somethingelse $_globalVariables/ns2:GlobalVariables/a/b/c&lt;br&gt;
$_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/   &amp;#39;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
def mch = str =~ /\b\$_.+?\b/&lt;br&gt;
&lt;br&gt;
mch.each() {&lt;br&gt;
   println it&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
DESIRED OUTPUT:&lt;br&gt;
/something&lt;br&gt;
/something/somethingelse&lt;br&gt;
/a/b/c&lt;br&gt;
/anything/something/somethingelse/&lt;br&gt;
&lt;br&gt;
_________________________________________________________________&lt;br&gt;
Keep your friends updated—even when you’re not signed in.&lt;br&gt;
&lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&lt;/a&gt;&lt;br&gt;


---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/regexp-question-tp26531236p26531377.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531351</id>
	<title>Re: regexp question</title>
	<published>2009-11-26T07:51:24Z</published>
	<updated>2009-11-26T07:51:24Z</updated>
	<author>
		<name>Jason__M</name>
	</author>
	<content type="html">def str=&amp;#39;$_globalVariables/ns2:GlobalVariables/something, $_globalVariables/ns2:GlobalVariables/something/somethingelse $_globalVariables/ns2:GlobalVariables/a/b/c $_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/   &amp;#39;&lt;br&gt;
&lt;br&gt;&lt;br&gt;def mch = str =~ /GlobalVariables([^ ,]*)/&lt;br&gt;&lt;br&gt;mch.each{&lt;br&gt;   println it[1]&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 26, 2009 at 9:41 AM, Anders Viklund &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531351&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;viklund_anders@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;br&gt;
Hi,&lt;br&gt;
&lt;br&gt;
How can I modify this code to get the desired output?&lt;br&gt;
&lt;br&gt;
Thanks for any ideas!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
def str=&amp;#39;&lt;br&gt;
$_globalVariables/ns2:GlobalVariables/something,&lt;br&gt;
$_globalVariables/ns2:GlobalVariables/something/somethingelse $_globalVariables/ns2:GlobalVariables/a/b/c&lt;br&gt;
$_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/   &amp;#39;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
def mch = str =~ /\b\$_.+?\b/&lt;br&gt;
&lt;br&gt;
mch.each() {&lt;br&gt;
   println it&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
DESIRED OUTPUT:&lt;br&gt;
/something&lt;br&gt;
/something/somethingelse&lt;br&gt;
/a/b/c&lt;br&gt;
/anything/something/somethingelse/&lt;br&gt;
&lt;br&gt;
_________________________________________________________________&lt;br&gt;
Keep your friends updated—even when you’re not signed in.&lt;br&gt;
&lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&lt;/a&gt;&lt;br&gt;

---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/regexp-question-tp26531236p26531351.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531236</id>
	<title>regexp question</title>
	<published>2009-11-26T07:41:13Z</published>
	<updated>2009-11-26T07:41:13Z</updated>
	<author>
		<name>citron</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;How can I modify this code to get the desired output?
&lt;br&gt;&lt;br&gt;Thanks for any ideas!
&lt;br&gt;&lt;br&gt;&lt;br&gt;def str='
&lt;br&gt;$_globalVariables/ns2:GlobalVariables/something,
&lt;br&gt;$_globalVariables/ns2:GlobalVariables/something/somethingelse $_globalVariables/ns2:GlobalVariables/a/b/c
&lt;br&gt;$_globalVariables/ns2:GlobalVariables/anything/something/somethingelse/   '
&lt;br&gt;&lt;br&gt;&lt;br&gt;def mch = str =~ /\b\$_.+?\b/
&lt;br&gt;&lt;br&gt;mch.each() {
&lt;br&gt;   println it
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;DESIRED OUTPUT:
&lt;br&gt;/something
&lt;br&gt;/something/somethingelse
&lt;br&gt;/a/b/c
&lt;br&gt;/anything/something/somethingelse/
&lt;br&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Keep your friends updated—even when you’re not signed in.
&lt;br&gt;&lt;a href=&quot;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010&lt;/a&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/regexp-question-tp26531236p26531236.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530817</id>
	<title>Static Groovy and concurrency: type inference in action</title>
	<published>2009-11-26T07:13:02Z</published>
	<updated>2009-11-26T07:13:02Z</updated>
	<author>
		<name>Alex Tkachman</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;For everyone interested in staticly typing posibilities of groovy here
&lt;br&gt;is link to my new article -
&lt;br&gt;&lt;a href=&quot;http://groovy.dzone.com/articles/static-groovy-and-concurrency-3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groovy.dzone.com/articles/static-groovy-and-concurrency-3&lt;/a&gt;&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;Alex
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Static-Groovy-and-concurrency%3A-type-inference-in-action-tp26530817p26530817.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530807</id>
	<title>Re: [gant-dev] Windows batch file launch for Groovy and Gant</title>
	<published>2009-11-26T07:13:01Z</published>
	<updated>2009-11-26T07:13:01Z</updated>
	<author>
		<name>Jochen Theodorou</name>
	</author>
	<content type="html">Graeme Rocher schrieb:
&lt;br&gt;&amp;gt; Grails uses the same batch files and has similar issues on Windows
&lt;br&gt;&amp;gt; (help Windows batch experts!)
&lt;br&gt;&lt;br&gt;I think they don't exist
&lt;br&gt;&lt;br&gt;bye blackdrag
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jochen &amp;quot;blackdrag&amp;quot; Theodorou
&lt;br&gt;The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)
&lt;br&gt;&lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-batch-file-launch-for-Groovy-and-Gant-tp26526351p26530807.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529166</id>
	<title>Re: mocking and newInstance</title>
	<published>2009-11-26T05:05:25Z</published>
	<updated>2009-11-26T05:05:25Z</updated>
	<author>
		<name>ukslim</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm new to Groovy and new to Nabble. I've hit exactly the same issue as Kallin with using MockFor where the mocked object is obtained using newInstance() or getInstance().
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Kallin Nagelberg wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;void testMe(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;def myMock = new MockFor(SomeClass)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;defMyMock.demand.someMethod(){}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;defMyMock.use{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; testedMethod()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;def testedMethod(){
&lt;br&gt;&amp;nbsp; &amp;nbsp; def clazz = Class.forName(&amp;quot;SomeClass&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; clazz.newInstance()
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;When I don't demand that newInstance is called, the test fails because
&lt;br&gt;'newinstance' is called and was not declared expected.
&lt;br&gt;When I do insert
&lt;br&gt;&amp;nbsp; &amp;nbsp; defMyMock.demand.newInstance(){}
&lt;br&gt;it gets passed instantiation, but now newinstance is returning null...
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
In my case, the CuT is a model object, and the mocked class is groovy.sql.Sql.
&lt;br&gt;&lt;br&gt;I just thought I'd bump this thread, and see if anything had changed since January. Any tips?
&lt;br&gt;&lt;br&gt;(One idea might be to bite the bullet and use some IoC container to inject the Sql object. This would be a fair leap in complexity for the app I'm writing, though.)
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mocking-and-newInstance-tp14972787p26529166.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528562</id>
	<title>Re: Why methodMissing behaves differently when implemented directly in  the class?</title>
	<published>2009-11-26T04:13:11Z</published>
	<updated>2009-11-26T04:13:11Z</updated>
	<author>
		<name>mrhaki</name>
	</author>
	<content type="html">Hi, 
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Felipe Cypriano-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;In my script I didn't need to check if the method exists everytime, groovy
&lt;br&gt;runtime does this. My question is why implement methodMissing directly in
&lt;br&gt;the class behaves differently than using metaClass.methodMissing?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
This has to do with the type of the metaClass property in the different contexts. If we use metaClass.methodMissing the type is set to ExpandoMetaClass (and we need that to add methods dynamically, so methodMissing is not invoked after that). If we implement methodMissing in our class the type is set to MetaClassImpl and methodMissing is invoked each time. To have the correct behavior we can write the following constructor for LanguageList:
&lt;br&gt;LanguageList() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; def mc = new ExpandoMetaClass(LanguageList, false, true)
&lt;br&gt;&amp;nbsp; &amp;nbsp; mc.initialize()
&lt;br&gt;&amp;nbsp; &amp;nbsp; this.metaClass = mc
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Kind regards, Hubert Klein Ikkink, aka mrhaki
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-methodMissing-behaves-differently-when-implemented-directly-in--the-class--tp26494656p26528562.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527352</id>
	<title>Re: How to get Map from String?</title>
	<published>2009-11-26T02:29:23Z</published>
	<updated>2009-11-26T02:29:23Z</updated>
	<author>
		<name>王志博</name>
	</author>
	<content type="html">&lt;div&gt;try &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Eval.me(&amp;#39;[b:[c:&amp;#39;d:=e&amp;#39;, f:&amp;#39;g&amp;#39;], h:&amp;#39;i&amp;#39;]&amp;#39;);&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 9, 2009 at 5:03 AM, Francesco Pasqualini &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527352&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;frapas@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;div&gt;Hi&lt;/div&gt;&lt;div&gt;probably not the best solution:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;h=  new GroovyShell().evaluate(&amp;quot;[b:[c:&amp;#39;d:=e&amp;#39;, f:&amp;#39;g&amp;#39;], h:&amp;#39;i&amp;#39;]&amp;quot;)&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;br&gt;&lt;/div&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-get-Map-from-String--tp26257522p26527352.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526413</id>
	<title>Re: [gant-dev] Windows batch file launch for Groovy and Gant</title>
	<published>2009-11-26T01:05:59Z</published>
	<updated>2009-11-26T01:05:59Z</updated>
	<author>
		<name>Graeme Rocher-3</name>
	</author>
	<content type="html">Grails uses the same batch files and has similar issues on Windows
&lt;br&gt;(help Windows batch experts!)
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 9:59 AM, Russel Winder
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526413&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;russel.winder@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Gant uses minimally amended versions of the Groovy launch scripts -- by
&lt;br&gt;&amp;gt; design.  I try to keep the Posix shell scripts for Gant in as
&lt;br&gt;&amp;gt; &amp;quot;consistent with those of Groovy&amp;quot; as possible.  I have no access to
&lt;br&gt;&amp;gt; Windows any more so I cannot even contemplate doing the same thing for
&lt;br&gt;&amp;gt; the Windows batch scripts.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It seems though there are still serious problems with the Groovy as well
&lt;br&gt;&amp;gt; as Gant Windows batch scripts, cf., for example,
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://jira.codehaus.org/browse/GANT-54&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/GANT-54&lt;/a&gt;.  I guess these problems are not
&lt;br&gt;&amp;gt; entirely unexpected since batch scripts are DOS things from the days
&lt;br&gt;&amp;gt; before spaces in paths.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Despite the presence of the native launcher, which strike me as the only
&lt;br&gt;&amp;gt; sane way of launching Groovy and Gant on Windows (but that what do I
&lt;br&gt;&amp;gt; know :-) people seem to use the batch scripts and not the native
&lt;br&gt;&amp;gt; launcher.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Anyway the upshot is that unless someone from the Gant/Windows or
&lt;br&gt;&amp;gt; Groovy/Windows community steps up to fix these things, they won't get
&lt;br&gt;&amp;gt; fixed.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am not sure how Guillaume and Jochen want things handled for Groovy,
&lt;br&gt;&amp;gt; but for Gant I will take Bazaar branch merge requests, or patches and
&lt;br&gt;&amp;gt; apply them &amp;quot;sight unseen&amp;quot; -- certainly I won't be able to test them.  So
&lt;br&gt;&amp;gt; here is your opportunity to completely ruin Gant's ability to be used on
&lt;br&gt;&amp;gt; Windows!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Russel.
&lt;br&gt;&amp;gt; =============================================================================
&lt;br&gt;&amp;gt; Dr Russel Winder      Partner
&lt;br&gt;&amp;gt;                                            xmpp: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526413&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;russel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
&lt;br&gt;&amp;gt; 41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526413&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;russel.winder@...&lt;/a&gt;
&lt;br&gt;&amp;gt; London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Graeme Rocher
&lt;br&gt;Head of Grails Development
&lt;br&gt;SpringSource - A Division of VMware
&lt;br&gt;&lt;a href=&quot;http://www.springsource.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springsource.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-batch-file-launch-for-Groovy-and-Gant-tp26526351p26526413.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526351</id>
	<title>Windows batch file launch for Groovy and Gant</title>
	<published>2009-11-26T00:59:09Z</published>
	<updated>2009-11-26T00:59:09Z</updated>
	<author>
		<name>Russel Winder-4</name>
	</author>
	<content type="html">Gant uses minimally amended versions of the Groovy launch scripts -- by
&lt;br&gt;design. &amp;nbsp;I try to keep the Posix shell scripts for Gant in as
&lt;br&gt;&amp;quot;consistent with those of Groovy&amp;quot; as possible. &amp;nbsp;I have no access to
&lt;br&gt;Windows any more so I cannot even contemplate doing the same thing for
&lt;br&gt;the Windows batch scripts.
&lt;br&gt;&lt;br&gt;It seems though there are still serious problems with the Groovy as well
&lt;br&gt;as Gant Windows batch scripts, cf., for example,
&lt;br&gt;&lt;a href=&quot;http://jira.codehaus.org/browse/GANT-54&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://jira.codehaus.org/browse/GANT-54&lt;/a&gt;. &amp;nbsp;I guess these problems are not
&lt;br&gt;entirely unexpected since batch scripts are DOS things from the days
&lt;br&gt;before spaces in paths.
&lt;br&gt;&lt;br&gt;Despite the presence of the native launcher, which strike me as the only
&lt;br&gt;sane way of launching Groovy and Gant on Windows (but that what do I
&lt;br&gt;know :-) people seem to use the batch scripts and not the native
&lt;br&gt;launcher.
&lt;br&gt;&lt;br&gt;Anyway the upshot is that unless someone from the Gant/Windows or
&lt;br&gt;Groovy/Windows community steps up to fix these things, they won't get
&lt;br&gt;fixed.
&lt;br&gt;&lt;br&gt;I am not sure how Guillaume and Jochen want things handled for Groovy,
&lt;br&gt;but for Gant I will take Bazaar branch merge requests, or patches and
&lt;br&gt;apply them &amp;quot;sight unseen&amp;quot; -- certainly I won't be able to test them. &amp;nbsp;So
&lt;br&gt;here is your opportunity to completely ruin Gant's ability to be used on
&lt;br&gt;Windows!
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Russel.
&lt;br&gt;=============================================================================
&lt;br&gt;Dr Russel Winder &amp;nbsp; &amp;nbsp; &amp;nbsp;Partner
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmpp: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526351&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;russel@...&lt;/a&gt;
&lt;br&gt;Concertant LLP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;t: +44 20 7585 2200, +44 20 7193 9203
&lt;br&gt;41 Buckmaster Road, &amp;nbsp; f: +44 8700 516 084 &amp;nbsp; voip: sip:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526351&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;russel.winder@...&lt;/a&gt;
&lt;br&gt;London SW11 1EN, UK &amp;nbsp; m: +44 7770 465 077 &amp;nbsp; skype: russel_winder
&lt;br&gt;&lt;br /&gt; &lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26526351/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-batch-file-launch-for-Groovy-and-Gant-tp26526351p26526351.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517947</id>
	<title>Re: Nested class inheritance used to work</title>
	<published>2009-11-25T10:28:43Z</published>
	<updated>2009-11-25T10:28:43Z</updated>
	<author>
		<name>Roshan Dawrani-2</name>
	</author>
	<content type="html">The following code not only compiles but also runs - even though A is a non-static class referred in a static context:&lt;br&gt;&lt;br&gt;----------------------------------&lt;br&gt;public class Parent {&lt;br&gt;   public class A {&lt;br&gt;   }&lt;br&gt;  &lt;br&gt;
   public static void moo() {&lt;br&gt;      final a = new A()&lt;br&gt;      println a&lt;br&gt;   }&lt;br&gt;}&lt;br&gt;&lt;br&gt;Parent.moo()&lt;br&gt;----------------------------------&lt;br&gt;&lt;br&gt;This is not correct, right?&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Wed, Nov 25, 2009 at 2:58 PM, Jochen Theodorou &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26517947&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blackdrag@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Roshan Dawrani schrieb:&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
If the try the same code on 1.7-beta-1 groovyconsole, I get the error:&lt;br&gt;
-----------------------------------&lt;br&gt;
1 compilation error:&lt;br&gt;
&lt;br&gt;
unable to resolve class A&lt;br&gt;
at line: 5, column: 4&lt;br&gt;
-----------------------------------&lt;br&gt;
&lt;br&gt;
In any case, can you please file a bug?&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;
that is fixed already, it will now compile... still it will not run, since moo is a static method and A not a static nested class.&lt;br&gt;
&lt;br&gt;
Also I wonder what this pre milestone 1 is... Is that before Groovy 1.0?&lt;br&gt;
&lt;br&gt;
bye blackdrag&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Jochen &amp;quot;blackdrag&amp;quot; Theodorou&lt;br&gt;
The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)&lt;br&gt;
&lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
   &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-class-inheritance-used-to-work-tp26507381p26517947.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26517051</id>
	<title>Re: External Content with BuilderSupport</title>
	<published>2009-11-25T09:33:26Z</published>
	<updated>2009-11-25T09:33:26Z</updated>
	<author>
		<name>iamthechad</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Jochen Theodorou wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;text is a String, putting the curly braces around it makes it a Closure 
&lt;br&gt;that returns that string only. What you would need is something like:
&lt;br&gt;&lt;br&gt;testClosure = {
&lt;br&gt;&amp;nbsp; &amp;nbsp;evaluate text
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;to get the string executed. Usually this can be done using GroovyShell. 
&lt;br&gt;But since you need it for your Builder you have to do more. 
&lt;br&gt;ConfigSlurper#parse(Script,URL) shows the meta class stuff needed for 
&lt;br&gt;this once you have a Script. To get a script you can use 
&lt;br&gt;GroovyClassLoader#parseClass, as ConfigSlurper does, or use GroovyShell 
&lt;br&gt;as I mentioned before.
&lt;br&gt;&lt;br&gt;but ConfigSlurper looks really like what you actually want to do.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
I figured that I needed to do some extra work to the text. I just wasn't sure what exactly needed to be done. I had hoped that it would be something simple, but the simple part was switching to ConfigSlurper. :)
&lt;br&gt;&lt;br&gt;I think I really wanted to make a builder, so I was trying to make it fit a situation that wasn't good for it.
&lt;br&gt;&lt;br&gt;Thanks for the help!
&lt;br&gt;&lt;br&gt;Chad</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/External-Content-with-BuilderSupport-tp26503466p26517051.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515711</id>
	<title>Re: mod_groovy?</title>
	<published>2009-11-25T08:22:49Z</published>
	<updated>2009-11-25T08:22:49Z</updated>
	<author>
		<name>bumzee</name>
	</author>
	<content type="html">try
&lt;br&gt;&lt;a href=&quot;http://www.easygsp.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.easygsp.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael Klishin-2 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;&lt;br&gt;Could anyone tell me is there any kind of mod_groovy for Apache around? 
&lt;br&gt;Or I have to use application server for groovlets?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael &amp;quot;Antares&amp;quot; Klishin,
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.novemberain.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.novemberain.com&lt;/a&gt;&amp;nbsp;| &amp;nbsp;mailto:michael@novemberain.com
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mod_groovy--tp4969072p26515711.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515270</id>
	<title>configslurper</title>
	<published>2009-11-25T07:58:37Z</published>
	<updated>2009-11-25T07:58:37Z</updated>
	<author>
		<name>jnorthr</name>
	</author>
	<content type="html">Hello world -&lt;div&gt;Here&amp;#39;s an example with several environments based on which O/S is running. My question is, if an app wants to update it&amp;#39;s version of &amp;#39;images&amp;#39; in this example based on it&amp;#39;s O/S, the highlighted code below does not reproduce the input properties file, but looses any reference to any other o/s other than &amp;quot;macosx&amp;quot; in this case (cos that&amp;#39;s what it&amp;#39;s running on for this test). Do i need something else in the withWriter clause to the output to reproduce the input properties file, but with the new value for &amp;#39;images&amp;#39; ?  Many thanx jim&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;/*   ./path.properties file looks like this :&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;environments {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;    macosx {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;        home=&amp;quot;/Volumes/UBUNTU/Groovy/ImageDev/&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;        images=&amp;quot;/Volumes/UBUNTU/&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;
&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;        help = &amp;quot;${home}help.txt&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;    }&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;    linux {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;        home=&amp;quot;/Volumes/UBUNTU/Groovy/ImageDev/&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;        images=&amp;quot;/Volumes/UBUNTU/images/&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;    }&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;} // end of environments&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;*/&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    String pathfile = &amp;#39;./path.properties&amp;#39;  // non O/S specific parameters for technical issues&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    def config&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    def paths&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    def OSN&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    // Get all system properties&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    Properties props = System.getProperties()&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;
&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    // find O/S name &amp;amp; build a brief version of it&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    OSN = (String)props.get(&amp;quot;&lt;a href=&quot;http://os.name&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;os.name&lt;/a&gt;&amp;quot;);&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    def tokens = OSN.trim().toLowerCase().split(&amp;#39; &amp;#39;).toList()&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    def osid = new StringBuffer();&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    tokens.each{tok -&amp;gt; osid &amp;lt;&amp;lt; tok;}&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    // tell which O/S version of the environmental variables we want&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    println(&amp;quot;... Support() set to use $osid&amp;quot;)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    // and load the O/S version of the environmental variables&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    paths = new ConfigSlurper(osid.toString()).parse(new File(pathfile).toURL()) // get o/s related path specifications&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    println(&amp;quot;... config is set to use &amp;#39;$osid&amp;#39; paths at &amp;lt;${paths}&amp;gt;&amp;quot;)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    paths.each{ println &amp;quot;path=${it}&amp;quot;;}&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    println &amp;quot;images path is ${paths[&amp;quot;images&amp;quot;]}&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    paths[&amp;quot;images&amp;quot;] = &amp;quot;/Volumes/UBUNTU/images&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(153, 255, 255);&quot;&gt;    println &amp;quot;images path is ${paths[&amp;quot;images&amp;quot;]}&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 102, 102);&quot;&gt;    new File(&amp;quot;./jim.properties&amp;quot;).withWriter { writer -&amp;gt; paths.writeTo(writer) }&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 51);&quot;&gt;    &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 51);&quot;&gt;/*  ./jim.properties = &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 51);&quot;&gt;home=&amp;quot;/Volumes/UBUNTU/Groovy/ImageDev/&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;images=&amp;quot;/Volumes/UBUNTU/images&amp;quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;help=/Volumes/UBUNTU/Groovy/ImageDev/help.txt&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;&amp;#39;courier new&amp;#39;, monospace&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: rgb(255, 255, 102);&quot;&gt;*/&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;    &lt;/div&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/configslurper-tp26515270p26515270.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26511851</id>
	<title>Re: Nested class inheritance used to work</title>
	<published>2009-11-25T04:34:01Z</published>
	<updated>2009-11-25T04:34:01Z</updated>
	<author>
		<name>Martin C. Martin</name>
	</author>
	<content type="html">If the error message is still confusing (e.g. doesn't mention static vs. 
&lt;br&gt;non-static), could you file a JIRA for that?
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;Martin
&lt;br&gt;&lt;br&gt;Roshan Dawrani wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Right, I missed that static/non-static thing and just tried the given 
&lt;br&gt;&amp;gt; code as is on 1.7-beta-1 thinking that is what pre milestone 1.0 was 
&lt;br&gt;&amp;gt; pointing to (given that inner class support was never in support before 
&lt;br&gt;&amp;gt; 1.7.x)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 2:58 PM, Jochen Theodorou &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511851&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blackdrag@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26511851&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blackdrag@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Roshan Dawrani schrieb:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If the try the same code on 1.7-beta-1 groovyconsole, I get the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -----------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 compilation error:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; unable to resolve class A
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at line: 5, column: 4
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -----------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; In any case, can you please file a bug?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; that is fixed already, it will now compile... still it will not run,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; since moo is a static method and A not a static nested class.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Also I wonder what this pre milestone 1 is... Is that before Groovy 1.0?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; bye blackdrag
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; -- 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Jochen &amp;quot;blackdrag&amp;quot; Theodorou
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; To unsubscribe from this list, please visit:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-class-inheritance-used-to-work-tp26507381p26511851.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510059</id>
	<title>Re: where to post groovy scripts</title>
	<published>2009-11-25T01:55:01Z</published>
	<updated>2009-11-25T01:55:01Z</updated>
	<author>
		<name>jnorthr</name>
	</author>
	<content type="html">Bonjour&lt;div&gt;many thanx for that - will look again tonite. like to do documentation also but spend SO much time writing groovy apps that i rarely have time  &lt;img src=&quot;http://old.nabble.com/attachment/26510059/0/338.gif&quot; style=&quot;margin-top: 0px; margin-right: 0.2ex; margin-bottom: 0px; margin-left: 0.2ex; vertical-align: middle; &quot; goomoji=&quot;338&quot;&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;working on a google app to auto translate ubuntu operating system messages from english to french, mais mon francais est tres mal &lt;img src=&quot;http://old.nabble.com/attachment/26510059/1/362.gif&quot; style=&quot;margin-top: 0px; margin-right: 0.2ex; margin-bottom: 0px; margin-left: 0.2ex; vertical-align: middle; &quot; goomoji=&quot;362&quot;&gt;&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;will encore ecrite when i have le temp&lt;/div&gt;&lt;div&gt;merci&lt;/div&gt;&lt;div&gt;jim&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/25 Guillaume Laforge &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510059&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;glaforge@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Hi Jim,&lt;br&gt;
&lt;br&gt;
If you want to contribute documentation, you can certainly register on&lt;br&gt;
Confluence, to help us improve the online documentation.&lt;br&gt;
And if you want to share scripts with the world (friends, colleagues,&lt;br&gt;
etc), you can also use the Groovy Web Console:&lt;br&gt;
&lt;a href=&quot;http://groovyconsole.appspot.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groovyconsole.appspot.com/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Guillaume&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
On Wed, Nov 25, 2009 at 10:40, jim northrop&lt;br&gt;
&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510059&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;james.b.northrop@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi again -&lt;br&gt;
&amp;gt; guess i am too new to understand this, but is there some place/space where i&lt;br&gt;
&amp;gt; can upload a bunch of groovy scripts for public use ? or maybe a tutorial.&lt;br&gt;
&amp;gt; i&amp;#39;m working to join confluence as someone told me it was needed.&lt;br&gt;
&amp;gt; Any advice appreciated.&lt;br&gt;
&amp;gt; ta&lt;br&gt;
&amp;gt; jim&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;--&lt;br&gt;
Guillaume Laforge&lt;br&gt;
Groovy Project Manager&lt;br&gt;
Head of Groovy Development at SpringSource&lt;br&gt;
&lt;a href=&quot;http://www.springsource.com/g2one&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.springsource.com/g2one&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
    &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt; &lt;br /&gt; </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/where-to-post-groovy-scripts-tp26509859p26510059.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509974</id>
	<title>Re: HTTPBuilder multipart message</title>
	<published>2009-11-25T01:49:32Z</published>
	<updated>2009-11-25T01:49:32Z</updated>
	<author>
		<name>tahlers</name>
	</author>
	<content type="html">Thanks for your help!
&lt;br&gt;&lt;br&gt;I was finally able to achive my multipart upload. 
&lt;br&gt;After reading through &lt;a href=&quot;http://www.nabble.com/multipart-form-data-in-4.0-td14224819.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/multipart-form-data-in-4.0-td14224819.html&lt;/a&gt;&amp;nbsp;I used the MultipartEntityWrapper from there to wrap the httpclient 3.x multipart functionality to be used for httpclient 4.x. 
&lt;br&gt;Feels a bit like cheating but it worked for me :)
&lt;br&gt;&lt;br&gt;After putting the additional stuff (wrapper and old httpclient jar) into the classpath i was able to do:
&lt;br&gt;&lt;br&gt;http.request(POST) {request -&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; uri.path = '/demopath'
&lt;br&gt;&amp;nbsp; &amp;nbsp; requestContentType = 'multipart/form-data'
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Part[] parts = [new FilePart(&amp;quot;theFile&amp;quot;, new File(args[0])),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;new StringPart(&amp;quot;action&amp;quot;, &amp;quot;importZip&amp;quot;)] &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; request.entity = new MultipartEntityWrapper(parts, request.params)
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; response.success = { resp, reader -&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;The wrapper is missing some functionaliy regarding request.params but it worked for my usecase. 
&lt;br&gt;&lt;br&gt;Thanks again for your help and this nice piece of software in general!
&lt;br&gt;&lt;br&gt;Tobias
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HTTPBuilder-multipart-message-tp26497453p26509974.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509931</id>
	<title>Re: ConfigSlurper: several environments, several pages. How?</title>
	<published>2009-11-25T01:45:40Z</published>
	<updated>2009-11-25T01:45:40Z</updated>
	<author>
		<name>Jochen Theodorou</name>
	</author>
	<content type="html">MichaelM schrieb:
&lt;br&gt;&amp;gt; OK, this is what I have come up with for the configuration file. It relies on
&lt;br&gt;&amp;gt; variable &amp;quot;environment&amp;quot; being available (is this a documented feature?):
&lt;br&gt;&lt;br&gt;I think the documentation is missing that feature, you could fill a 
&lt;br&gt;request to correct the documentation. As you found yourself out (but for 
&lt;br&gt;others reading this) environment is a property of ConfigSlurper itself 
&lt;br&gt;and can be set by for example using the String based constructor. So
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; ----------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; config = new ConfigSlurper(&amp;quot;test&amp;quot;).parse(new File('config.cfg').toURL())
&lt;br&gt;&amp;gt;&amp;gt; println config.baseUrl &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // testServer/
&lt;br&gt;&amp;gt;&amp;gt; println config.pageConfig.newEmp.url &amp;nbsp; // localhost/emp.jsp
&lt;br&gt;&amp;gt;&amp;gt; ----------------------------------------
&lt;br&gt;&lt;br&gt;will use &amp;quot;test&amp;quot; for environment.
&lt;br&gt;&lt;br&gt;bye blackdrag
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jochen &amp;quot;blackdrag&amp;quot; Theodorou
&lt;br&gt;The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)
&lt;br&gt;&lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ConfigSlurper%3A-several-environments%2C-several-pages.-How--tp26497495p26509931.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509889</id>
	<title>Re: where to post groovy scripts</title>
	<published>2009-11-25T01:42:57Z</published>
	<updated>2009-11-25T01:42:57Z</updated>
	<author>
		<name>Guillaume Laforge-2</name>
	</author>
	<content type="html">Hi Jim,
&lt;br&gt;&lt;br&gt;If you want to contribute documentation, you can certainly register on
&lt;br&gt;Confluence, to help us improve the online documentation.
&lt;br&gt;And if you want to share scripts with the world (friends, colleagues,
&lt;br&gt;etc), you can also use the Groovy Web Console:
&lt;br&gt;&lt;a href=&quot;http://groovyconsole.appspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groovyconsole.appspot.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Guillaume
&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 10:40, jim northrop
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509889&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;james.b.northrop@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Hi again -
&lt;br&gt;&amp;gt; guess i am too new to understand this, but is there some place/space where i
&lt;br&gt;&amp;gt; can upload a bunch of groovy scripts for public use ? or maybe a tutorial.
&lt;br&gt;&amp;gt; i'm working to join confluence as someone told me it was needed.
&lt;br&gt;&amp;gt; Any advice appreciated.
&lt;br&gt;&amp;gt; ta
&lt;br&gt;&amp;gt; jim
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Guillaume Laforge
&lt;br&gt;Groovy Project Manager
&lt;br&gt;Head of Groovy Development at SpringSource
&lt;br&gt;&lt;a href=&quot;http://www.springsource.com/g2one&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.springsource.com/g2one&lt;/a&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/where-to-post-groovy-scripts-tp26509859p26509889.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509859</id>
	<title>where to post groovy scripts</title>
	<published>2009-11-25T01:40:21Z</published>
	<updated>2009-11-25T01:40:21Z</updated>
	<author>
		<name>jnorthr</name>
	</author>
	<content type="html">Hi again -&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;guess i am too new to understand this, but is there some place/space where i can upload a bunch of groovy scripts for public use ? or maybe a tutorial. i&amp;#39;m working to join confluence as someone told me it was needed. &lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Any advice appreciated.&lt;/div&gt;&lt;div&gt;ta&lt;/div&gt;&lt;div&gt;jim&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/where-to-post-groovy-scripts-tp26509859p26509859.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509847</id>
	<title>Re: Nested class inheritance used to work</title>
	<published>2009-11-25T01:40:16Z</published>
	<updated>2009-11-25T01:40:16Z</updated>
	<author>
		<name>Roshan Dawrani-2</name>
	</author>
	<content type="html">Yes, sounds good. So, the request for raising an issue is still valid :-)&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 25, 2009 at 3:08 PM, Jochen Theodorou &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509847&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blackdrag@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Roshan Dawrani schrieb:&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Right, I missed that static/non-static thing and just tried the given code as is on 1.7-beta-1 thinking that is what pre milestone 1.0 was pointing to (given that inner class support was never in support before 1.7.x)&lt;br&gt;

&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;
maybe it would be a good idea to check the static access, no need to wait till runtime.&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
bye blackdrag&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Jochen &amp;quot;blackdrag&amp;quot; Theodorou&lt;br&gt;
The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)&lt;br&gt;
&lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
   &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-class-inheritance-used-to-work-tp26507381p26509847.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509828</id>
	<title>Re: Nested class inheritance used to work</title>
	<published>2009-11-25T01:38:35Z</published>
	<updated>2009-11-25T01:38:35Z</updated>
	<author>
		<name>Jochen Theodorou</name>
	</author>
	<content type="html">Roshan Dawrani schrieb:
&lt;br&gt;&amp;gt; Right, I missed that static/non-static thing and just tried the given 
&lt;br&gt;&amp;gt; code as is on 1.7-beta-1 thinking that is what pre milestone 1.0 was 
&lt;br&gt;&amp;gt; pointing to (given that inner class support was never in support before 
&lt;br&gt;&amp;gt; 1.7.x)
&lt;br&gt;&lt;br&gt;maybe it would be a good idea to check the static access, no need to 
&lt;br&gt;wait till runtime.
&lt;br&gt;&lt;br&gt;bye blackdrag
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jochen &amp;quot;blackdrag&amp;quot; Theodorou
&lt;br&gt;The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)
&lt;br&gt;&lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-class-inheritance-used-to-work-tp26507381p26509828.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509822</id>
	<title>Re: External Content with BuilderSupport</title>
	<published>2009-11-25T01:37:36Z</published>
	<updated>2009-11-25T01:37:36Z</updated>
	<author>
		<name>Jochen Theodorou</name>
	</author>
	<content type="html">iamthechad schrieb:
&lt;br&gt;&amp;gt; I can use ConfigSlurper if I change my configuration definition. I'm
&lt;br&gt;&amp;gt; not 100% tied to what I'm using now, so it may be easier to make the
&lt;br&gt;&amp;gt; change.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've spent enough time with this over the last couple of days that now
&lt;br&gt;&amp;gt; I really just want to know if it's at all possible to pass a plain
&lt;br&gt;&amp;gt; string/eternally loaded content into a builder.
&lt;br&gt;&lt;br&gt;ConfigSlurper does this, so it is possible.
&lt;br&gt;&lt;br&gt;[...]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; def textClosure = { &amp;quot;Some Entry&amp;quot; (property1:value1, property2: value2) }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; builder.foo(textClosure)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; because textClosure is a closure.
&lt;br&gt;&lt;br&gt;you should try:
&lt;br&gt;&lt;br&gt;def textClosure = { &amp;quot;Some Entry&amp;quot; (property1:value1, property2: value2) }
&lt;br&gt;textClosure.delegate = builder
&lt;br&gt;&lt;br&gt;and then
&lt;br&gt;&lt;br&gt;builder.foo(textClosure)
&lt;br&gt;&lt;br&gt;or
&lt;br&gt;&lt;br&gt;textClosure()
&lt;br&gt;&lt;br&gt;depending on what you want to have.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; If I do this:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; def text = '&amp;quot;Some Entry&amp;quot; (property1:value1, property2: value2)'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; def textClosure = { text }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; builder.foo(textClosure)
&lt;br&gt;&lt;br&gt;text is a String, putting the curly braces around it makes it a Closure 
&lt;br&gt;that returns that string only. What you would need is something like:
&lt;br&gt;&lt;br&gt;testClosure = {
&lt;br&gt;&amp;nbsp; &amp;nbsp;evaluate text
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;to get the string executed. Usually this can be done using GroovyShell. 
&lt;br&gt;But since you need it for your Builder you have to do more. 
&lt;br&gt;ConfigSlurper#parse(Script,URL) shows the meta class stuff needed for 
&lt;br&gt;this once you have a Script. To get a script you can use 
&lt;br&gt;GroovyClassLoader#parseClass, as ConfigSlurper does, or use GroovyShell 
&lt;br&gt;as I mentioned before.
&lt;br&gt;&lt;br&gt;but ConfigSlurper looks really like what you actually want to do.
&lt;br&gt;&lt;br&gt;bye blackdrag
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jochen &amp;quot;blackdrag&amp;quot; Theodorou
&lt;br&gt;The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)
&lt;br&gt;&lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe from this list, please visit:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/External-Content-with-BuilderSupport-tp26503466p26509822.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509727</id>
	<title>Re: ConfigSlurper: several environments, several pages. How?</title>
	<published>2009-11-25T01:31:49Z</published>
	<updated>2009-11-25T01:31:49Z</updated>
	<author>
		<name>MichaelM</name>
	</author>
	<content type="html">OK, this is what I have come up with for the configuration file. It relies on variable &amp;quot;environment&amp;quot; being available (is this a documented feature?):
&lt;br&gt;&lt;br&gt;----------------------------------------
&lt;br&gt;switch (environment) {
&lt;br&gt;&amp;nbsp; case 'dev':
&lt;br&gt;&amp;nbsp; &amp;nbsp; baseUrl = &amp;quot;devServer/&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; break
&lt;br&gt;&amp;nbsp; case 'test':
&lt;br&gt;&amp;nbsp; &amp;nbsp; baseUrl = &amp;quot;testServer/&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; break
&lt;br&gt;&amp;nbsp; default:
&lt;br&gt;&amp;nbsp; &amp;nbsp; baseUrl = &amp;quot;localhost/&amp;quot;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;pageConfig {
&lt;br&gt;&amp;nbsp; newEmp &amp;nbsp;{ url = &amp;quot;${baseUrl}emp.jsp&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; newDept { url = &amp;quot;${baseUrl}emp.jsp&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;} 
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;MichaelM wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I have a configuration file like this:
&lt;br&gt;&lt;br&gt;----------------------------------------
&lt;br&gt;baseUrl = &amp;quot;localhost/&amp;quot;
&lt;br&gt;&lt;br&gt;// Override for specific environments
&lt;br&gt;environments {
&lt;br&gt;&amp;nbsp; dev { baseUrl = &amp;quot;devServer/&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; test{ baseUrl = &amp;quot;testServer/&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;pageConfig {
&lt;br&gt;&amp;nbsp; newEmp &amp;nbsp;{ url = &amp;quot;${baseUrl}emp.jsp&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; newDept { url = &amp;quot;${baseUrl}emp.jsp&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;Read it with this script:
&lt;br&gt;&lt;br&gt;----------------------------------------
&lt;br&gt;config = new ConfigSlurper(&amp;quot;test&amp;quot;).parse(new File('config.cfg').toURL())
&lt;br&gt;println config.baseUrl &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // testServer/
&lt;br&gt;println config.pageConfig.newEmp.url &amp;nbsp; // localhost/emp.jsp
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;I understand why the last line contains localhost. But I could use some advice on how to restructure the config file so that it produces the desired results. The config file will contain 5 environments and 20 pages, so I'm trying to prevent 5x20 configuration lines.
&lt;br&gt;&lt;br&gt;Thanks for your suggestions.
&lt;br&gt;M.
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ConfigSlurper%3A-several-environments%2C-several-pages.-How--tp26497495p26509727.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509748</id>
	<title>Re: Nested class inheritance used to work</title>
	<published>2009-11-25T01:31:23Z</published>
	<updated>2009-11-25T01:31:23Z</updated>
	<author>
		<name>Roshan Dawrani-2</name>
	</author>
	<content type="html">Right, I missed that static/non-static thing and just tried the given code as is on 1.7-beta-1 thinking that is what pre milestone 1.0 was pointing to (given that inner class support was never in support before 1.7.x)&lt;br&gt;&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 25, 2009 at 2:58 PM, Jochen Theodorou &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509748&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;blackdrag@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Roshan Dawrani schrieb:&lt;div class=&quot;im&quot;&gt;&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
If the try the same code on 1.7-beta-1 groovyconsole, I get the error:&lt;br&gt;
-----------------------------------&lt;br&gt;
1 compilation error:&lt;br&gt;
&lt;br&gt;
unable to resolve class A&lt;br&gt;
at line: 5, column: 4&lt;br&gt;
-----------------------------------&lt;br&gt;
&lt;br&gt;
In any case, can you please file a bug?&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;
that is fixed already, it will now compile... still it will not run, since moo is a static method and A not a static nested class.&lt;br&gt;
&lt;br&gt;
Also I wonder what this pre milestone 1 is... Is that before Groovy 1.0?&lt;br&gt;
&lt;br&gt;
bye blackdrag&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Jochen &amp;quot;blackdrag&amp;quot; Theodorou&lt;br&gt;
The Groovy Project Tech Lead (&lt;a href=&quot;http://groovy.codehaus.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groovy.codehaus.org&lt;/a&gt;)&lt;br&gt;
&lt;a href=&quot;http://blackdragsview.blogspot.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://blackdragsview.blogspot.com/&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe from this list, please visit:&lt;br&gt;
&lt;br&gt;
   &lt;a href=&quot;http://xircles.codehaus.org/manage_email&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://xircles.codehaus.org/manage_email&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nested-class-inheritance-used-to-work-tp26507381p26509748.html" />
</entry>

</feed>
