Win a copy of Java by Comparison (eBook) this week in the Java in General forum!

Bob Smitheeeee

Greenhorn
+ Follow
since Jul 26, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bob Smitheeeee

Update: the above does work, I had an error in bootstrap.groovy that was keeping the schema from being generated in thed DB. I have to say that groovy error messages are pretty sparse and hard to decipher. Seems like dynamic languages in general have less helpful error reporting imo. Although I've only used jython much before groovy.
5 years ago
Using Grails, what's the correct way to map this?





5 years ago
Windows eol is \r\n. It happens with \n only as well. Without adding \r\n the output is:



Edit: corrected output.
5 years ago

Gregg Bolinger wrote:If you're going to use Groovy, then go all out man!



Thanks Greg, did you try the code I post to observe the behavior? I'm looking for anyone who has an explanation, because it seems like a bug to me.
5 years ago
Hi, I need some help with the following script. It inserts 2 newlines instead of 1 as I think it should:



Outputs:



This is a windows machine. Any ideas? Thanks!
5 years ago