As anew green user can anyone help me getting the Groovy Console 2.4.6 to
fire up.
I have very little knowledge of Java so Im look for detailed help.
I have looked at the startGroovy.bat placing pauses in the code and found
where it fails but I don’t have the knowledge to go further.
There is
Contains works, but depending on your situation you might need to normalize
data. If you don't know where your line breaks are, for example if you want to
find "the cow jumped over the moon" but the string is "I read a book. It is
called the Cow\nJumped Over the Moon", in this case you need to
I think what you are suggesting is close to this example in the docs:
http://groovy-lang.org/objectorientation.html#_dynamic_methods_in_a_trait
Am I right?
2016-03-18 16:51 GMT+01:00 Gerald Wiltse :
> Expando is a pretty cool object. And if we extend it, we get it's
I believe I have a simple application which shows the problem. You can
find it here:
https://github.com/dwclark/deopt-storm
The README should cover how to use it. The original application involved
a dynamic state machine. I have tried to preserve the basics of how the
program would execute
Are you calling groovyStart directly? That script takes a built program as a
parameter (like one you build). If you want to run Groovy Console that comes
with Groovy, you need to run groovysh.bat (for command line version) or
groovyConsole.bat (for GUI version).
Jason Winnebeck
-Original
Curious...it worked on both my Windows 10 home machine and my Windows 7
work machine. What's you're JAVA_HOME environment variable set to? Is it
a JDK?
I'm thinking maybe your JAVA_HOME isn't set, and you can't pass where Java
is as an arg because groovy.c
I understand you are green that's fine.
I don't use the installer, so I didn't have groovyConsole.exe, but I did try
the installer. My account is not an admin so I installed outside of Program
Files, and for whatever reason I got no start menu entries, but all of the
files did copy down. If I
Thanks Jason
Told you I was green
The windows insall added Start GroovyConsole to the start menu the
properties being "C:\Program Files
(x86)\Groovy\Groovy-2.4.6\bin\groovyConsole.exe".
However running the GroovyConsole.bat does indeed start up the console. At
least I know my Java_Home is ok!
Ideal would be to have a small application showing the problem. With an
actual test we could analyze the problem much better. It is possible the
issue is related to https://bugs.openjdk.java.net/browse/JDK-8151981,
but there are also possible bugs in our invokedynamic usage. What I
could
On 15.03.2016 17:01, David Clark wrote:
if it is in native code, it might not be showing properly actually
We don't have any JNI code in our code base. Is there something else
native I could/should be looking at?
you are not using JNI, yes, but the method you mentioned is implemented
Yes indeed. Just as Tim posted here, the basics of this functionality can
be manually.
http://stackoverflow.com/questions/7078855/groovy-dynamically-add-properties-to-groovy-classes-from-inside-class-methods
However, his comment points out the fact that groovy expando is a nicely
polished and
Expando is a pretty cool object. And if we extend it, we get it's really
nice "behavior". Unfortunately, as extending = inheritance, thus extending
expando precludes us from extending our true parent classes. This is why
implementing interfaces and traits is often a better choice than
inheriting,
On 16.03.2016 20:31, David Clark wrote:
If I can think of a way to reproduce the problem with a small script or
application I will definitely post it to the list. I really have no idea
what would cause this problem. If you have any suggestions about what
types of application behavior would
13 matches
Mail list logo