James Strachan | 21 Jan 2004 05:43
Picon
Favicon

groovy-dev & groovy-user added to Gmane

Just a heads up - thanks to Marcus Ahnve both groovy-dev and 
groovy-user are now available on gmane so that folks can use their news 
reader to monitor the mailing list if folks prefer that to using email.

     * News URL: news://news.gmane.org/gmane.comp.lang.groovy.devel
     * Web URL: http://news.gmane.org/gmane.comp.lang.groovy.devel

     * News URL: news://news.gmane.org/gmane.comp.lang.groovy.user
     * Web URL: http://news.gmane.org/gmane.comp.lang.groovy.user

Begin forwarded message:

> From: admin <at> gmane.org (Gmane Administrator)
> Date: 20 January 2004 22:39:22 GMT
> To: groovy-dev-admin@...
> Subject: groovy-dev added to Gmane
>
> We have received a request for adding the
> groovy-dev@... mailing list to the Gmane mail-to-news
> gateway/archive. A subscription request message has been sent. If this
> is contrary to your wishes, please send a mail to admin <at> gmane.org
> saying so, and the list will be removed from Gmane.
>
> Gmane is a mail-to-news portal that never expires its messages.  It
> therefore also functions as a mailing list archive.  It's a
> bi-directional gateway, but Gmane verifies that its users' email
> addresses are valid before passing the messages through the
> news-to-mail gateway.  (Groups can also be made "read-only", which
> means that Gmane won't forward any messages at all to the mailing
> list.)
(Continue reading)

James Strachan | 21 Jan 2004 05:41
Picon
Favicon

Re: Maven Build


On 20 Jan 2004, at 19:17, Norman Kabir wrote:

> I'm trying to resolve an issue involving the Maven XML file. Upon 
> compiling the tests, I get the following error:
>
> BUILD FAILED
> File...... file:/C:/src/groovy-core/
> Element... groovyc
> Line...... 183
> Column.... 112
> Compile failed: 
> org.codehaus.groovy.syntax.lexer.UnterminatedStringLiteralException: 
> Unterminated string literal at 9:1
> Total time: 9 seconds

Hmm, its strange it doesn't give any more details of the file name that 
it couldn't compile. I wonder if typing

	maven -e grooovy:compile-tests

helps to display the actual file ti can't compile?

Basically this sounds like it can't compile a .groovy file; I'm just 
not sure which one :)

James
-------
http://radio.weblogs.com/0112098/
(Continue reading)

James Strachan | 21 Jan 2004 06:37
Picon
Favicon

Re: Patch: "groovy.bat -classpath"

Great stuff, patch applied again. Could you double check I applied it  
correctly. If so I'll replace the other unix & windows scripts with  
these, as supplying the classpath is handy for all of them.

BTW I guess we could change the scripts to accept the current CLASSPATH  
variable as well. e.g. use $CP;$CLASSPATH (or the % equivalent for  
windows) so then if folks have already setup their CLASSPATH variable  
we should use that as well?

On 20 Jan 2004, at 21:49, Jonathan Carlson wrote:

> Thanks James for patching the unix script.  It looks fine to me.  It  
> accepts -cp or -classpath or neither just fine.
>
> Below is a groovy.bat file patch, but it is ugly (I'm not a Windows  
> batch file expert, to say the least).  It works as I've tested it.  I  
> won't feel bad if others step in and clean it up.
>
> Thanks again,
>
> Jonathan
>
>
> diff -u -r1.3 groovy.bat
> --- groovy.bat  5 Sep 2003 20:44:08 -0000       1.3
> +++ groovy.bat  20 Jan 2004 21:59:23 -0000
>  <at>  <at>  -65,7 +65,12  <at>  <at> 
>  if "%eval[2+2]" == "4" goto 4NT_args
>
>   <at> rem Regular WinNT shell
(Continue reading)

James Strachan | 21 Jan 2004 09:09
Picon
Favicon

Re: Backwards range problem

On 20 Jan 2004, at 17:55, Rod Cope wrote:
> The new backwards range stuff is great - thanks!
>
> It looks like one test case slipped through the cracks:
>
>    a = [1,2,3,4,5]
>    a[1..-3] gives [3, 2] instead of [2, 3] as expected

Aha, thanks. I had a funny feeling there was a use case somewhere I'd 
not thought of - and if anyone would spot it I thought you'd be the 
man! :)

I've added this test case for lists & strings along with the patch to 
fix it. Many thanks Rod.

James
-------
http://radio.weblogs.com/0112098/
Robert Fuller | 21 Jan 2004 11:11
Favicon

Should Binding be behind an interface?

I was thinking it might be useful to be able to have a Binding
implementation which is backed by a PicoContainer.

Or am I being obtuse?

--

-- 
Robert Fuller
Applepie Solutions Ltd. (Ireland)
http://www.aplpi.com
zohar.melamed | 21 Jan 2004 12:36
Favicon

import xxx.*


Hi

Is it just me or does having
import javax.swing.*;
not compile due the * ?

On another note, I'm refactoring the SyntaxException rooted
to uniformly store error location details.

Cheers
Z

This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
(Continue reading)

Guillaume Laforge | 21 Jan 2004 12:54
Picon
Favicon

RE: import xxx.*

>Is it just me or does having
>import javax.swing.*;
>not compile due the * ?

Yep, * is not supported.
You have to import each and every class !

Guillaume Laforge
Paul Hammant | 21 Jan 2004 13:48

Static Main(..) ??

Summary :

  There is no need for a static entry point for a new language. static 
main( .. ) sucks in Java, why not hide it for Groovy ?

The front page example :

  class Foo {
    // etc
    static void main(args) {
      values = [1, 2, 3, "abc"]
      foo = new Foo()
      foo.closureExample(values)
      foo.doSomething()
    }
  }

Could just as easily be ..

  class Foo implements Mainable {
    // etc
    main(args) {
      values = [1, 2, 3, "abc"]
      closureExample(values)
      doSomething()
    }
  }

or 

(Continue reading)

Guillaume Laforge | 21 Jan 2004 14:34
Picon
Favicon

RE: Static Main(..) ??


Like that after all, without the "implements" ?

  class Foo {
    // etc
    main(args) {
      values = [1, 2, 3, "abc"]
      closureExample(values)
      doSomething()
    }
  }

That could certainly be possible I guess.

Guillaume Laforge
John Wilson | 21 Jan 2004 15:12
Picon

Re: Maven Build


On 21 Jan 2004, at 04:41, James Strachan wrote:

>
> On 20 Jan 2004, at 19:17, Norman Kabir wrote:
>
>> I'm trying to resolve an issue involving the Maven XML file. Upon 
>> compiling the tests, I get the following error:
>>
>> BUILD FAILED
>> File...... file:/C:/src/groovy-core/
>> Element... groovyc
>> Line...... 183
>> Column.... 112
>> Compile failed: 
>> org.codehaus.groovy.syntax.lexer.UnterminatedStringLiteralException: 
>> Unterminated string literal at 9:1
>> Total time: 9 seconds
>
>
> Hmm, its strange it doesn't give any more details of the file name 
> that it couldn't compile. I wonder if typing
>
> 	maven -e grooovy:compile-tests
>
> helps to display the actual file ti can't compile?
>
> Basically this sounds like it can't compile a .groovy file; I'm just 
> not sure which one :)
>
(Continue reading)


Gmane