Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6752

groovysh Main not customizable and buggy w.r.t. AnsiConsole

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.2
    • 2.4.0-beta-1
    • Groovysh

    Description

      Main.groovy invokes AnsiConsole commands in the static initializer, and runs initialization logic in static main. This prevents this logic to be modified for special usages of Groovysh. As one example see my problems starting groovysh from Gradle: http://forums.gradle.org/gradle/topics/starting_groovysh_from_gradle

      So I suggest refactoring the main class such that it may be subclassed more easily and configured to suit particular needs.

      Attachments

        Activity

          People

            pschumacher Pascal Schumacher
            tkruse Thibault Kruse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: