Archive for the 'Groovy' Category

Copacetic

Sunday, October 23rd, 2005

I’ve always had an Ant target called “copacetic” that I’d fire off before a check in. It would run compile and test my work. This has become the working name of my continuous integration system, which I’ll tell you a bit about.
I’ve got a standard project structure now, inspired by the abilities of Ivy, that […]

Groovy Pipes

Sunday, October 23rd, 2005

Here’s an example on OS X, using the build-in OS X artifical feline
intelligence simulation program, otherwise known as “cat”.
def cat = ‘cat’.execute()

Thread.start { System.out << cat.in }
Thread.start { System.err << cat.err }

cat << “Meow, World!n”

cat.out.close()
cat.waitForOrKill(0)
That is rougly translated to…
// Execute cat.
def cat = ‘cat’.execute()

// Direct the output, which is an (in)put buffer, to stdout.
Thread.start { […]