<?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://blog.gmane.org/gmane.comp.lang.groovy.user">
    <title>gmane.comp.lang.groovy.user</title>
    <link>http://blog.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://comments.gmane.org/gmane.comp.lang.groovy.user/35327"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35322"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35319"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35306"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35305"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35301"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35300"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35294"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35293"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35290"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35286"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35272"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35267"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35262"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35260"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35259"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35256"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35242"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35240"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.lang.groovy.user/35237"/>
      </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://comments.gmane.org/gmane.comp.lang.groovy.user/35327">
    <title>[groovy-user] using groovy code over COM</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35327</link>
    <description>Hi,

is it possible to create groovy objects, register them as COM components and access them from within other languages like VBA?
I'm not talking about using COM components out of groovy, but the other direction.

Best regards
Alex


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com </description>
    <dc:creator>Alex Alebende</dc:creator>
    <dc:date>2008-08-21T15:50:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35322">
    <title>[groovy-user] problem with GStringTemplateEngine and how to debug gdk</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35322</link>
    <description>Hi all,

GStringTemplateEngine has a problem with double quotes in templates.

Here's an example, one line templates:

&lt;%=[1,2,3].join(" ")%&gt;

works.

${[1,2,3].join(' ')}

works.

but

${[1,2,3].join(" ")} doesnt work, produces


org.eclipse.core.runtime.CoreException[0]:
org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed, C: 2: unexpected char: '\' &lt; at &gt; line 2, column 97.
1 error


I think GStringTemplateEngine adds \ to quote the double quotes, but
I'm not sure.
The gdk in my project comes from the groovy nature, can I add a source
attachment to it?

thanks
vlad

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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Vlad Ciubotariu</dc:creator>
    <dc:date>2008-08-21T15:05:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35319">
    <title>[groovy-user] problem with GStringTemplateEngine and how to debug gdk</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35319</link>
    <description>Hi all,

GStringTemplateEngine has a problem with double quotes in templates.

Here's an example, one line templates:

&lt;%=[1,2,3].join(" ")%&gt;

works.

${[1,2,3].join(' ')}

works.

but

${[1,2,3].join(" ")} doesnt work, produces


org.eclipse.core.runtime.CoreException[0]:
org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed, C: 2: unexpected char: '\' &lt; at &gt; line 2, column 97.
1 error


I think GStringTemplateEngine adds \ to quote the double quotes, but
I'm not sure.
The gdk in my project comes from the groovy nature, can I add a source
attachment to it?

thanks
vlad

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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Vlad Ciubotariu</dc:creator>
    <dc:date>2008-08-21T14:28:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35306">
    <title>[groovy-user] Q: Avoiding XPath - using GPath</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35306</link>
    <description>
I played with this yesterday for about 1/2 hour, but could not come up with
the right GPATH code


I have an XML document with the following structure:



&amp;lt;data&amp;gt;
  &amp;lt;common-tables&amp;gt;
    &amp;lt;table name="address"/&amp;gt;
    &amp;lt;table name="phone"/&amp;gt;
  &amp;lt;/common-tables&amp;gt;

  &amp;lt;special-tables&amp;gt;
    &amp;lt;table name="person"/&amp;gt;
  &amp;lt;/special-tables&amp;gt;

  &amp;lt;other-tables&amp;gt;
    &amp;lt;table name="business"/&amp;gt;
  &amp;lt;/other-tables&amp;gt;
&amp;lt;/data&amp;gt;


I was trying to come up with GPath code that lets me get the name attributes
from the table elements, but only if they are under the "common-tables" or
"special-tables", excluding those under the "other-tables".


I tried both XmlParser and XmlSlurper, and all combinations of findAll that
I could think of.


I am a Groovy-Newbie (I should trademark that :-)) and searched the Groovy
home, as well as all of my Groovy books.

Any ideas?


-----
G. Ralph Kuntz, MD
Chief Software Architect
meridianEMR, Inc.
</description>
    <dc:creator>grkuntzmd</dc:creator>
    <dc:date>2008-08-21T11:55:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35305">
    <title>[groovy-user] Groovy in the Enterprise</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35305</link>
    <description>Hello,
 
Yesterday, in my ongoing effort to promote Groovy in my work, I held a technical presentation for my collegues.  It was well recieved and people seemed interested in the lagnuage.  There where a number of questions that came out of the session and I was hoping maybe the people on this mialing list would be willing to offer their two cents.  Below is a section of a mail I received any responses would be greatly appreciated.  
 
----

Based on the "dynamic" nature of the language 2 things that came to mind that I would probably be interested in if I was an IT manager (particularly in financial organisations) were testing and security.

In relation to the testing I was wondering how can we ensure a sufficient level of code coverage in the testing of any application.  Are there scenarios that could easily be missed because we don't simulate the conditions that cause some piece of code/method to get dynamically generated and executed thus giving rise to very unexpected behaviour in an application.  I think there were similar type concerns in the early days of Inversion of Control (i.e. if the framework is calling the code do we know all the points it wil call it) that have never been an issue, so it may be the same here, but nevertheless if I was that IT Manager I'd want to know.

In relation to security, I was wondering if the black hat guys are sitting out there with ways to hack into organisations and finding ways to dynamically run snippets of code in the Groovy environment.  Its always an issue trying to stop people getting in to your environment in the first place, but do applicaitons based on this type of technology make it any easier for the bad guys to do damage once they are in??

----

 

Thanks

James Hughes | Senior Software Engineer | Kainos | M: +353 (0)877 931 634 | j.hughes-fZ2kPDQGsinQT0dZR+AlfA&lt; at &gt;public.gmane.org
 
P Please consider the environment and do not print this mail unless necessary 


--------------------------------------------------------------------
This e-mail is intended solely for the addressee and is strictly confidential; if you are not the addressee please destroy the message and all copies. Any opinion or information contained in this email or its attachments that does not relate to the business of Kainos 
is personal to the sender and is not given by or endorsed by Kainos. Kainos is the trading name of Kainos Software Limited, registered in Northern Ireland under company number: NI19370, having its registered offices at: Kainos House, 4-6 Upper Crescent, Belfast, BT7 1NT, 
Northern Ireland. Registered in the UK for VAT under number: 454598802 and registered in Ireland for VAT under number: 9950340E. This email has been scanned for all known viruses by MessageLabs but is not guaranteed to be virus free; further terms and conditions may be 
found on our website - www.kainos.com 


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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>James Hughes</dc:creator>
    <dc:date>2008-08-21T11:52:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35301">
    <title>[groovy-user] Q: slashes in slash strings</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35301</link>
    <description>
If I want to include slashes ('/') in slash-quoted strings, do I need to
escape them with backslashes? In other words, if I need to create a Regex
that matches a *nix-like path, should I use /x\/y/ or /x/y/?


Thanks.


-----
G. Ralph Kuntz, MD
Chief Software Architect
meridianEMR, Inc.
</description>
    <dc:creator>grkuntzmd</dc:creator>
    <dc:date>2008-08-21T11:40:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35300">
    <title>[groovy-user] Q: MOP, aspects, setter methods</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35300</link>
    <description>
I am a Groovy-Newbie and this is a theoretical question


In a project I am working on, we have POJOs with setters of the following
form:



// Java Code
public class Person {
  private String name;

  // Set the name value only if it changes, then mark the POJO dirty
  public void setName(String name) {
    if ((name == null) ? this.name != null : !name.equals(this.name)) {
      this.name= name;
      this.dirty = true;
    }
  }
}


Without arguing the philosophy of this approach, is it possible to use MOP
in Groovy to automatically "inject" the equality checks and dirty flag
setting (ala aspects)? As it stands, each of these setters needs unit
testing because it contains "logic" code (as in Dierk K&amp;ouml;nig's interview
on unit testing with Sven Haiges in the Grails podcast series). If the
boilerplate setter code could be injected, these methods would not each need
separate units tests.


-----
G. Ralph Kuntz, MD
Chief Software Architect
meridianEMR, Inc.
</description>
    <dc:creator>grkuntzmd</dc:creator>
    <dc:date>2008-08-21T11:27:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35294">
    <title>[groovy-user] Get a list of properties</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35294</link>
    <description> 
Hi,
 
Maybe someon can help me with this.  It seems like it should be obvious but I am drawing a blank.  Assuming i have a class
 
class Simple{
    def prop1,prop2,prop3
}
 
How would I get a list of property names ["prop1","prop2","prop3"]?
 
Thanks
 
James


--------------------------------------------------------------------
This e-mail is intended solely for the addressee and is strictly confidential; if you are not the addressee please destroy the message and all copies. Any opinion or information contained in this email or its attachments that does not relate to the business of Kainos 
is personal to the sender and is not given by or endorsed by Kainos. Kainos is the trading name of Kainos Software Limited, registered in Northern Ireland under company number: NI19370, having its registered offices at: Kainos House, 4-6 Upper Crescent, Belfast, BT7 1NT, 
Northern Ireland. Registered in the UK for VAT under number: 454598802 and registered in Ireland for VAT under number: 9950340E. This email has been scanned for all known viruses by MessageLabs but is not guaranteed to be virus free; further terms and conditions may be 
found on our website - www.kainos.com 


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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>James Hughes</dc:creator>
    <dc:date>2008-08-21T10:10:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35293">
    <title>[groovy-user] adding inheritance of a class definition after parsing</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35293</link>
    <description>hi folks.

i guess this is a rather unusual request:

currently, i am parsing class "user"-classes from plain script files. works great.
to allow each of these classes to have certain default members and methods,
each of the userclass definitions inherits from a default parent class using "extends"
keyword. the default parent class is written in java, the user classes are in groovy.

now i want to make all user classes to extend the default parent class, but without
the users having to type "extends DefaultParent" all the time (so having "extends DefaultParent"
implicitly).

is there a runtime way of assigning an inheritance (other than modifying the script
source as a string before parsing it)?

thanks,

regards,

David


________________________________________________________________________
Schon gehört? Bei WEB.DE gibt' s viele kostenlose Spiele:
http://games.entertainment.web.de/de/entertainment/games/free/index.html


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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>david kment</dc:creator>
    <dc:date>2008-08-21T09:56:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35290">
    <title>[groovy-user] [ANN] Gradle 0.3 is released</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35290</link>
    <description>Hi,

we are pleased to announce the release of Gradle 0.3, a Groovy based  
build system.

To learn more see: www.gradle.org

Here is a summary of the most interesting new features and improvements:

- Gradle provides now a separate JDK 1.4. compatible distributions.
- We have improved the handling and naming conventions for archive  
tasks. See user's guide (UG) 9.7.3.
- The War plugin is now much more flexible regarding library  
handling. Gradle provides now a provided configuration to add  
libraries that should be used for compile and testing, but should not  
be bundled with the war. See UG 11.
- After going through a lot of pain with the windows start scripts we  
have decided to get rid of them and replace them with exe commands  
generated by launch4j. Thanks to Adam Pohorecki for contributing the  
foundations for this.
- To improve the responsiveness of Gradle the compiled build and  
settings files are now cached. For how to control the cache, see UG 4.6.
- Every task action has now access to the graph of the tasks to be  
executed. See UG 2.10.
- The wrapper task is now much more configurable regarding where the  
involved files are stored. See UG 16.
- We have started to implement a listener framework around the Gradle  
lifecycle. You can now register for example an afterEvaluateListener  
with a project which gets called after a project's build script is  
evaluated. For an example see UG 14.2.3.
- The Test task generates now JUnit HTML reports.
- Gradle enables now to execute tasks via their absolute path. See UG  
14.4.
- You can now define default tasks. See UG 2.9.
- You can define now global exclude for dependencies. See UG 12.2.6.
- Due to Groovydoc problems, we were not able to provided reasonable  
API doc in the past. This has changed now. For a big part of our  
public API we provide now Javadoc. With the release of 0.4 we will be  
able to provide this for all our API.

For our roadmap see: http://gradle.org/roadmap.html

Cheers,

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org



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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Hans Dockter</dc:creator>
    <dc:date>2008-08-21T07:37:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35286">
    <title>[groovy-user] Variable exists</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35286</link>
    <description>Sorry from what I'm sure is a FAQ (I checked the FAQ and tried to
search the mailing list archives first; no luck),

How do I test for a variable being defined? I tried the obvious:

if (foo == null)
  foo = new Foo()

But Groovy barfs on this, complaining that 'foo' is not a property of
my anonymous script object.

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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Eric Tetz</dc:creator>
    <dc:date>2008-08-21T06:37:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35272">
    <title>[groovy-user] Groovy JDBC issues</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35272</link>
    <description>
Hi,
 I am new to groovy and rite now working in a groovy project. I have been
stuck up with calling a stored procedure from groovy code. I am able to run
the stored procedure but not able to retreive the output from th stored
procedure. i am working on this issue for more than two days. I would be
grateful if any could help me out.

My code is 

 def row = sql.execute("{call Web_User_Insert(?,?,?,?,?,?,?,?,?,?)}",
                        [webuser.firstName,webuser.lastName,
webuser.username,
                        
webuser.password,webuser.emailAddress,0,0,0,lastInsertId,failureCode])

I am able to run the code and changes are reflected. But my question is when
i run this procedure i need to get back two outputs lastInsertId and failure
code.

please help me out.

Thanks.
</description>
    <dc:creator>rajnarasimhan</dc:creator>
    <dc:date>2008-08-20T19:14:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35267">
    <title>[groovy-user] implementing GroovyInterceptable behaves differently in closures and methods</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35267</link>
    <description>I'm trying to understand tracing via invokeMethod, and I'm having behavior I
don't understand.
In the code (included at the end, ripped of unashamedly from GINA) I have a
closure and a
method that both call another method 'outer', which calls 'inner'. I
expected them both to show
tracing for both outer and inner, but only the method does. The closure
traces the inner
method, but not the outer.

What is it that I'm completely failing to understand?

I'm using Groovy 1.5.6

The larger task I'm trying to accomplish is to be able to use the excellent
runtimeLogging plugin to allow me to turn on tracing on-the-fly for my
Grails app.
 What I want is a superclass that I can use for controllers as well as some
files in the /src directory to have all the code in one place. That is, I
can
subclass my controllers as well as other classes and get detailed tracing
all
at once. It seems to be working reasonably well, except for this issue. If
there
are other ways to make this work, I'd be happy to use them instead &lt;G&gt;.

But this issue seems to be a pure Groovy issue that's at the heart of my
problem.

Thanks
Erick

************program output

  Entering shouldTraceOuterAndInnerClosure
    Entering inner
    Leaving inner
  Leaving shouldTraceOuterAndInnerClosure

  Entering shouldTraceOuterAndInnerMethod
    Entering outer
      Entering inner
      Leaving inner
    Leaving outer
  Leaving shouldTraceOuterAndInnerMethod

*************end program output

****************code starts
import org.codehaus.groovy.runtime.StringBufferWriter
import org.codehaus.groovy.runtime.InvokerHelper

class Traceable implements GroovyInterceptable {
    private static int indent = 1
    Writer writer = new PrintWriter(System.out)
    Object invokeMethod(String name, Object args) {
        def result
        def metaClass = InvokerHelper.getMetaClass(this)
        writer.write("\n" + '  ' * indent + "Entering $name")
        ++indent
        result = metaClass.invokeMethod(this, name, args)
        --indent
        writer.write("\n" + '  ' * indent + "Leaving $name")
        return result
    }
}

class Whatever extends Traceable {
    int outer() {
        return inner()
    }

    int inner() {
        return 1
    }

    def shouldTraceOuterAndInnerClosure = {
        return outer()
    }

    int shouldTraceOuterAndInnerMethod() {
        return outer()
    }

}


def log = new StringBuffer()
def traceMe = new Whatever(writer : new StringBufferWriter(log))

traceMe.shouldTraceOuterAndInnerClosure()

traceMe.shouldTraceOuterAndInnerMethod()

println log.toString()

*****************program ends**************
</description>
    <dc:creator>Erick Erickson</dc:creator>
    <dc:date>2008-08-20T15:33:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35262">
    <title>[groovy-user] GroovyRowResult Coercion</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35262</link>
    <description>I was wondering is it possible given that the GroovyRowResult is essentailly a map if I could coerce it into an object eg
 
say I have a table FAX_DETAILS(FAXCODEID, NSC, FAX_NUMBER, BRANCH_NAME, ADDRESS1)
 
Could I potential have a FaxDetailEntry class and cast each row into it?
 
I tried a few ways but no luck.
 
Does anyone have any experince of doing something like this?
 
James.


--------------------------------------------------------------------
This e-mail is intended solely for the addressee and is strictly confidential; if you are not the addressee please destroy the message and all copies. Any opinion or information contained in this email or its attachments that does not relate to the business of Kainos 
is personal to the sender and is not given by or endorsed by Kainos. Kainos is the trading name of Kainos Software Limited, registered in Northern Ireland under company number: NI19370, having its registered offices at: Kainos House, 4-6 Upper Crescent, Belfast, BT7 1NT, 
Northern Ireland. Registered in the UK for VAT under number: 454598802 and registered in Ireland for VAT under number: 9950340E. This email has been scanned for all known viruses by MessageLabs but is not guaranteed to be virus free; further terms and conditions may be 
found on our website - www.kainos.com 


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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>James Hughes</dc:creator>
    <dc:date>2008-08-20T11:10:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35260">
    <title>[groovy-user] Change in behaviour - is this a compiler regression?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35260</link>
    <description>Hi,

This is a groovy issue, but came about in a Grails app. I just  
upgraded my Grails 1.0.2 app that uses Dierk's Radeox plugin and  
Groovy 1.5.4, to Grails 1.0.3 which uses Groovy 1.5.6. The compiler  
choked on this code in the plugin:

class GroovyMacro extends org.radeox.macro.Preserved {

     String name               = "groovy"
     String description        = "formatting Groovy code"
     String[] paramDescription = ["no params, Groovy code goes inside  
a pair of groovy tags"];

     GroovyMacro() {
         '[]{}*-\\'.each { addSpecial(it as char) }
     }

     void execute(Writer writer,  
org.radeox.macro.parameter.MacroParameter params) {
         writer &lt;&lt; "&lt;PRE&gt;"
         writer &lt;&lt; replace(params.content)
         writer &lt;&lt; "&lt;/PRE&gt;"
     }
}

It fails to compile this class because:

/Users/marc/.grails/1.0.3/projects/Copella/generated-java-source/ 
GroovyMacro.java:8: GroovyMacro is not abstract and does not override  
abstract method getName() in org.radeox.macro.BaseMacro
public class GroovyMacro
        ^

Basically it looks like with Groovy 1.5.4, the auto-generated  
getName() implementation was accepted as an implementation of the  
radeox abstract base class's "String getName()". In Groovy 1.5.6 this  
seems broken.

Is this a bug I need to Jira?

Marc




~ ~ ~
Marc Palmer
Grails &gt; Groovy &gt; Java
http://www.grailsrocks.com






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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Marc Palmer</dc:creator>
    <dc:date>2008-08-20T09:41:19</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35259">
    <title>[groovy-user] all groovlets in one location problem.</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35259</link>
    <description>Hi groovy users!


Could anybody please help me with correct Tomcat configuration?
I have several Tomcat instances with th same application installed.
And I need all groovlets to be located in one place (let's say,
D:/DevTools/GroovyScripts).

Is there any way to configure several webapp instances under different
Tomcats to use the same location for all groovlets?

Any help is appreciated!

Regards,
Sergey Bondarenko.

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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Sergey Bondarenko</dc:creator>
    <dc:date>2008-08-20T09:23:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35256">
    <title>AW: [groovy-user] [GMaven] how to create an empty groovy project</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35256</link>
    <description>Thanks for the link. Found the solution in the pom.xml of the proxyomatic svn. 
I had to specify the version of gmaven archetype. The command:

#&gt; C:\source\stpm&gt;mvn archetype:generate -DarchetypeGroupId=org.codehaus.groovy.maven.archetypes -DarchetypeArtifactId=gmavenarchetype-basic

becomes with the newest version of gmaven to:

#&gt; C:\source\stpm&gt;mvn archetype:generate -DarchetypeGroupId=org.codehaus.groovy.maven.archetypes -DarchetypeArtifactId=gmavenarchetype-basic -DarchetypeVersion=1.0-rc-3

Rgds
Alex


----- Ursprüngliche Mail ----


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 

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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Alex Alebende</dc:creator>
    <dc:date>2008-08-20T08:24:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35242">
    <title>[groovy-user] assert isString or isChar</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35242</link>
    <description>
Hi

Is there a method in groovy to find out if a variable is a string or a
single character?

example:

if a varialble x="abcd"

if i write x.isString() it should return true and vice versa

if i write x[0].isChar it should return true and vice versa

I tried everything....groovy just doesnt seem to have that kinda method.
plzzzzz help!!!

Thanks
</description>
    <dc:creator>Great</dc:creator>
    <dc:date>2008-08-20T03:06:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35240">
    <title>[groovy-user] MalformedParameterizedTypeException when no modifier on instance variable</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35240</link>
    <description>Ok, I have more information about what was causing the failure I mention below.  The three independent projects had very similar refactorings on the same day, so ignore the fact that it happened to multiple projects.

Basically GMaven is puking when I have an instance variable in my class that doesn't have a modifier.  Here's an excerpt of one class that's causing the failure:

class TestBaseSpring extends AssertionContextGroovyTestCase {
protected final static Logger logger = Logger.getLogger(TestBaseSpring.class)
private final static String HARNESS_BEAN_FILE = "spring-config.xml";
private final static String LOCAL_BEANS_FILE_DEFAULT = "test-spring-config.xml";
private final static String ENV_SYSTEM_PROP = "local.beans.filename";


public static ConfigObject testConfig
public static ApplicationContext spring

 ManagedDataServiceTestClient&lt;Media&gt; client // this causes the failure

(... etc)

If I give client a modifier, e.g. public/private/protected, it all compiles fine.  Why would this be?




 -------------- Original message ----------------------
From: ttop123-Wuw85uim5zDR7s880joybQ&lt; at &gt;public.gmane.org


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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>ttop123-Wuw85uim5zDR7s880joybQ&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2008-08-19T23:54:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35237">
    <title>[groovy-user] using ampersand in an HTML builder?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35237</link>
    <description>I'm trying to do the following in an HTML builder.

script(type:"text/javascript", "hello &amp;&amp; goodbye")

The HTML builder duly escapes my ampersand, making invalid Javascript.

The "right" answer would be to put the javascript in a separate file
and use the src attribute, but for reasons too painful to enumerate
here, I cannot do that.

Is there any way to send unescaped strings from an HTML builder?

thanks,
Bryan

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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Bryan Larsen</dc:creator>
    <dc:date>2008-08-19T21:04:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.lang.groovy.user/35233">
    <title>[groovy-user] Groovy website question?</title>
    <link>http://comments.gmane.org/gmane.comp.lang.groovy.user/35233</link>
    <description>As I can see groovy's official homepage is a wiki, on almost all wiki
sites i visited there was a link to newly added pages and latest
changes.

I can't find those features on groovy's hompage?
If the features exist but are disabled can they please be enabled?

Regards
Ali

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

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Ali M.</dc:creator>
    <dc:date>2008-08-19T16:22:57</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>
