<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://permalink.gmane.org/gmane.comp.lang.groovy.user">
    <title>gmane.comp.lang.groovy.user</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34644"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34643"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34642"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34641"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34640"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34639"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34638"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34637"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34636"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34635"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34634"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34633"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34632"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34631"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34630"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34629"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34628"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34627"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34626"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34625"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34644">
    <title>Re: [groovy-user] GPath with dot in a String</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34644</link>
    <description>given the requirement is a configurable, nested GPath, I could think of the
following way to achieve:

def a = [b:[c:[d:"a.b.c.d"], c1:"a.b.c1"]]
println a.'b.c.d' // ideal solution, so ppl can't use dot as String key,
normal java property or xml node name will not contain a dot anyway
println a.'b.c1' //ideal solution

def readBC0D = {t-&gt; t.b.c.d} // or def bc0d = { delegate.b.c.d} and add to
metaclass
def readBC1 = {t-&gt; t.b.c1}
println readBC0D(a)
println readBC1(a)

println a.with{readBC0D(it)}
println a.with{readBC1(it)}

so instead of defining a String to represent GPath, I define a closure to
hold the GPath. Is it the best way?

btw, is it good for Groovy to support eval a GPath? if so, I could fire a
JIRA issue.

Regards,
mingfai

On Fri, Jul 25, 2008 at 4:17 PM, Mingfai &lt;mingfai.ma-Re5JQEeQqe8AvxtiuMwx3w&lt; at &gt;public.gmane.org&gt; wrote:

</description>
    <dc:creator>Mingfai</dc:creator>
    <dc:date>2008-07-25T08:36:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34643">
    <title>Re: [groovy-user] GPath with dot in a String</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34643</link>
    <description>Let me see if I could explain. I'm trying to extract some values from an
object graph (say, to a Map). The extraction path may be in different level
of the object graph, e.g. a.b.c and a.b.c.d, and I would want the extraction
path be configurable.

If there is such an API that I've mentioned, it should be straightforward.
it's sound useful to me. otherwise, i wonder i can hardcode the paths in a
closure.

Regards,
mingfai

On Fri, Jul 25, 2008 at 3:57 PM, Jochen Theodorou &lt;blackdrag-BA+cFGlbTmA&lt; at &gt;public.gmane.org&gt; wrote:

</description>
    <dc:creator>Mingfai</dc:creator>
    <dc:date>2008-07-25T08:17:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34642">
    <title>Re: [groovy-user] GPath with dot in a String</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34642</link>
    <description>Mingfai schrieb:

I see some rather alternatives to achieve this, but I doubt you want to 
go that path. May I ask what you want this for? Maybe I can find an 
alternative way

bye blackdrag

</description>
    <dc:creator>Jochen Theodorou</dc:creator>
    <dc:date>2008-07-25T07:57:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34641">
    <title>[groovy-user] GPath with dot in a String</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34641</link>
    <description>hi,

I wonder if it is possible to define a full GPath (with dot(s)) in String
and retrieve the value. e.g.

def a = [b:[c:'value']]
println a.b.c // work, print 'value'
println a.'b'.c // work, print 'value'
println a.'b.c' // it behaves correctly to show 'null' and I wish to find an
alternative way to achieve this to retrieve the 'value'

Is there an API similar to obj.getAsGPath(a, 'b.c')

Thank you very much

regards,
mingfai
</description>
    <dc:creator>Mingfai</dc:creator>
    <dc:date>2008-07-25T07:31:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34640">
    <title>Re: [groovy-user] groovysh tab completion</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34640</link>
    <description>
No sweat. How about the next best thing. Is there a method or property for a
groovy object that reports
all the properties and methods that can be applied to it? \n in groovysh
seems to come close.
</description>
    <dc:creator>mgc</dc:creator>
    <dc:date>2008-07-25T00:52:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34639">
    <title>Re: [groovy-user] groovysh tab completion</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34639</link>
    <description>No eta on that atm, due to the primitive parser support in groovysh to  
detect valid mulit-line syntax.  As of right now the compiler does not  
provide adequate information about partially and fully complete  
Grroovy syntax, making it near impossible to implement more  
interactive completion... sorry :-(

--jason


On Jul 25, 2008, at 12:48 AM, mgc wrote:



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Jason Dillon</dc:creator>
    <dc:date>2008-07-24T23:44:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34638">
    <title>RE: [groovy-user] Inheritance for XMLMarkupBuilder?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34638</link>
    <description>
Perhaps you want to do something like this.
-Alex


import groovy.xml.MarkupBuilder


abstract class Shape {
int x
int y

abstract String getTag()

Map getAttributes() {
[x:x, y:y]
}

void generateXml(MarkupBuilder bldr) {
bldr.invokeMethod(getTag(), getAttributes())
}

void generateXml(MarkupBuilder bldr, Closure closure) {
bldr.invokeMethod(getTag(), [getAttributes(), closure])
}
}


class Square extends Shape {
int size

String getTag() {
"square"
}

Map getAttributes() {
super.getAttributes() + [size:size]
}
}

def bldr = new MarkupBuilder(out)

bldr.drawing(width:320, height:200) {
new Square(x:0, y:0, size:20).generateXml(bldr)
}


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Alexander Veit</dc:creator>
    <dc:date>2008-07-24T23:10:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34637">
    <title>Re: [groovy-user] question about how to execute a command line batch via groovy function?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34637</link>
    <description>
I guess you have several options. I would probably start
with something like:

def mh = System.getenv('MAVEN_HOME')
"cmd /c $mh/bin/mvn -s temp-settings.xml $args".execute()

which will work provided maven doesn't produce too
much output. If it does produce too much output windows
freezes up. A known buffering issue for windows.
See link below for ways to get around that:

http://groovy.codehaus.org/Process+Management

In particular, you might want to look at using waitFor()
and/or consumeProcessOutput().

Cheers, Paul. 

Mick Knutson wrote:


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Paul King</dc:creator>
    <dc:date>2008-07-24T23:06:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34636">
    <title>Re: [groovy-user] [ANN] New version of the Groovy Eclipse plugin</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34636</link>
    <description>Yeay!  :-)



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Chris Banford</dc:creator>
    <dc:date>2008-07-24T21:59:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34635">
    <title>[groovy-user] [ANN] New version of the Groovy Eclipse plugin</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34635</link>
    <description>Hi all,

The Groovy Eclipse team released an updated version of the Groovy
Eclipse plugin.

In this new release, the main points of interest:
- the plugin has been updated to use Groovy 1.5.6
- and it is also working with the recent Eclipse 3.4

You can find the Groovy Eclipse plugin as a Zip file here:
http://dist.codehaus.org/groovy/distributions/update/GroovyEclipse.zip

And you can point your Eclipse update center at the following location:
http://dist.groovy.codehaus.org/distributions/update/

Upcoming version of the plugin will feature the first refactorings
(extract method).
You can discover more on the topic thanks to the students working on
this project as part of their Bachelor thesis at University of applied
sciences, in Rapperswil, Switzerland, here:
http://sifsstud4.hsr.ch/trac/GroovyRefactoring

Also, don't forget to read Groovy plugin developer James Ervin's words
on the roadmap of the plugin:
http://iacobus.blogspot.com/2008/07/roadmap-for-groovy-eclipse-work.html

Congratulations to everybod</description>
    <dc:creator>Guillaume Laforge</dc:creator>
    <dc:date>2008-07-24T21:28:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34634">
    <title>[groovy-user] question about how to execute a command line batch via groovy function?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34634</link>
    <description>I have a batch file executing:
%MAVEN_HOME%/bin/mvn -s temp-settings.xml %*

How would I execute this in a groovy function?

---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
</description>
    <dc:creator>Mick Knutson</dc:creator>
    <dc:date>2008-07-24T20:43:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34633">
    <title>[groovy-user] Q: Windows Installer /D option</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34633</link>
    <description>
I must be doing something stupid. I cannot get the /D option in the installer
to work -- it keeps using "C:\Program Files\Groovy" as the install
directory. I have tried "/D:c:\Groovy", "/D=c:\Groovy", and "/D c:\Groovy",
none of which worked.

Any ideas?
</description>
    <dc:creator>grkuntzmd</dc:creator>
    <dc:date>2008-07-24T20:22:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34632">
    <title>[groovy-user] groovysh tab completion</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34632</link>
    <description>
From google and this forum, I infer that groovysh doesn't tab complete
objects and object methods/properties, but
that it's coming. What's the ETA? Tab completion ala irb or ipython would be
quite worthwhile. Pl. advise. Thanks.
</description>
    <dc:creator>mgc</dc:creator>
    <dc:date>2008-07-24T17:48:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34631">
    <title>[groovy-user] Inheritance for XMLMarkupBuilder?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34631</link>
    <description>Hi,

I'm creating an XML builder.  One of the classes I want to write XML for 
is an extension of another class.  Is there a way to get the base class 
to be responsible for writing its own attributes in the XML?

Example:  Suppose we're writing XML to represent some shapes in a 
drawing.  In my builder I call Square.generateXml(xmlBuilder).  The 
Square class clearly has access to all of the attributes, but since 
Circle and Rectangle also use x,y I'd rather let the Shape base class 
handle writing those values.

&lt;drawing width="320" height="200"&gt;
    &lt;square x="0" y="0" size="20"/&gt;
&lt;/drawing&gt;

In this example, Square would write the size, but Shape would write x 
and y.  Only, I can't quite figure out how to do that.  Any help?

Thanks,
Dave


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>David C. Hicks</dc:creator>
    <dc:date>2008-07-24T17:32:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34630">
    <title>Re: [groovy-user] xml roundtrip of comments and cdata</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34630</link>
    <description>
any kind groovy-users, who can provide a 
code-snippet solving this problem ?

thanx &amp; have a nice day


Raphaël Piéroni-2 wrote:

</description>
    <dc:creator>Helmut Denk</dc:creator>
    <dc:date>2008-07-24T09:09:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34629">
    <title>RE: [groovy-user] methodMissing surprise</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34629</link>
    <description>
Try this (works for me):

-----

ExpandoMetaClass.enableGlobally()

//------Delegator class------
class Delegator 
{
protected Map values = [:]
private Set allowableCalls

def setValues( map )
{
this.allowableCalls = map.keySet()
this.values = map
}

def registerProperty( name )
{
def getset = name[ 0 ].toUpperCase() + name.substring( 1 )

metaClass."get${getset}" = { -&gt; println "Getting $name"; return delegate.values[ name ] }
println "Added getter get$getset"

metaClass."set${getset}" = { Object value -&gt; println "Setting $name"; delegate.values[ name ] = value }
println "Added setter set$getset"
}

def propertyMissing( String name )
{
println 'propertyMissing called with name ' + name
registerProperty( name )
return this."$name"
}

//Provisional  Need something better
def propertyMissing( String name, value )
{
println 'propertyMissing setter called with name ' + name
registerProperty( name )
this."$name" = value
}

def methodMissing( String name, args )
{
</description>
    <dc:creator>Bloois, Rene de</dc:creator>
    <dc:date>2008-07-24T08:53:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34628">
    <title>Re: [groovy-user] Binding as the user requesting the update</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34628</link>
    <description>I'm sorry - this message is destined for the gldapo user's list.

Sorry for the noise!

jr

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Joel Reed</dc:creator>
    <dc:date>2008-07-24T01:42:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34627">
    <title>[groovy-user] Binding as the user requesting the update</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34627</link>
    <description>I'm building a web application that queries a directory server. Most of 
the time I can do so anonymously, but for updates, I want to bind using 
the username and password of the logged in user.

Ideally, I could write:

def ds = GldapoDirectory.newInstance(
    "example", [ url: "ldap://ds.example.com", userDn: session.username, 
password: session.password ]
)

ds.updateEntry("dc=example,dc=com,o=root", [ name: "Example Inc." ])

But I seem to have to create a list of 
javax.naming.directory.ModificationItems. Which looks painful, but may 
be the best solution?

Alternatively, I could use something like:

def org = Organization.getByDn("dc=example,dc=com,o=root")
org.name = "Example Inc."
org.update()

But I can't seem to get a new, per user/update directory instance with 
the schemas loaded so Organization can get the right methods injected.

Any ideas on the best way to use Gldapo to solve this use case?

jr

---------------------------------------------------------------------
To unsubscribe from this li</description>
    <dc:creator>Joel Reed</dc:creator>
    <dc:date>2008-07-24T01:39:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34626">
    <title>Re: [groovy-user] source id</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34626</link>
    <description>Danno will quickly chime if this isn't the preferred way to do it.

The registered ids and their corresponding components are registered with
the builder in a map called variables. Run the find closure on this map.

import groovy.swing.SwingBuilder
import javax.swing.WindowConstants as WC
def swing = new SwingBuilder()
def frame = swing.frame(layout:new java.awt.FlowLayout(),size:[200,200],
defaultCloseOperation:WC.DISPOSE_ON_CLOSE){
    button(id:'btn', actionPerformed:{evt -&gt; })
    button(id:'btnw', actionPerformed:{evt -&gt;
       println swing.btn == evt.getSource()
        println swing.variables.find{it.value == evt.getSource() }
    })
}
frame.show()


On Wed, Jul 23, 2008 at 8:11 AM, Finn Herpich &lt;
finn.herpich-HLWg83l9DMevRySba1qPKDqC5zpoNJ7mdz/iME4q6zg&lt; at &gt;public.gmane.org&gt; wrote:

</description>
    <dc:creator>James Williams</dc:creator>
    <dc:date>2008-07-23T20:16:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34625">
    <title>[groovy-user] source id</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34625</link>
    <description>Hi everyone,

when I create a textField and add something like 

... id:"testField", focusLost: this.&amp;focusListener ...

how can I determine the id of the event source?

I inspected the object with ideas debug mode but couldn't find anything  
helpful.

cheers

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Finn Herpich</dc:creator>
    <dc:date>2008-07-23T15:11:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.groovy.user/34624">
    <title>Re: [groovy-user] MethodClosure weird behaviour</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.groovy.user/34624</link>
    <description>
this with every object that you generate"(?) Aren't you better off
actually 'generating' a list and then running an 'each' with your
command/action closure.


Definitely not. If the list is really small, this is OK. But if the list is big, it is wasting memory and time.

The solution for me is:

generator {
   // do something...
}

The only problem is exiting the closure before all the values are processed. But this is something missing in the Groovy language itself.

________________________________
Pierre


----- Original Message ----
From: Saager Mhatre &lt;saager.mhatre-Re5JQEeQqe8AvxtiuMwx3w&lt; at &gt;public.gmane.org&gt;
To: user-i9PBDF1N6cxnkHa44VUL00B+6BGkLq7r&lt; at &gt;public.gmane.org
Sent: Wednesday, July 23, 2008 8:13:40 AM
Subject: Re: [groovy-user] MethodClosure weird behaviour


Basically, Pierre, I don't get your generator. They seem to say, "do this with every object that you generate"(?) Aren't you better off actually 'generating' a list and then running an 'each' with your command/action closure.

Anyway, we're al</description>
    <dc:creator>Pierre Thibault</dc:creator>
    <dc:date>2008-07-23T12:54:59</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.lang.groovy.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.groovy.user</link>
  </textinput>
</rdf:RDF>
