Skip to content

Commit

Permalink
Start a normal groovysh.
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhw committed Feb 28, 2009
1 parent 0507538 commit ff4c504
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/main/groovy/org/grumblesmurf/malabar/GroovyServer.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* Copyright (c) 2009 Espen Wiborg <espenhw@grumblesmurf.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA.
*/
package org.grumblesmurf.malabar;

import org.codehaus.groovy.tools.shell.Groovysh;

import org.codehaus.groovy.tools.shell.util.ANSI;

import org.codehaus.groovy.tools.shell.util.Logger;

import org.codehaus.groovy.tools.shell.IO;

class GroovyServer
{
static void main(String[] args) {
startConsole();
}

static startConsole() {
IO io = new IO();
Logger.io = io;

ANSI.enabled = false;

Groovysh console = new Groovysh(io);

console.run();
}
}

0 comments on commit ff4c504

Please sign in to comment.