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

Grapes broken in 2.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.3.0
    • 2.3.1
    • Grape
    • None
    • Linux; Groovy master; GroovyFX master; JDK8u5

    Description

      The code:

      #! /usr/bin/env groovy
      
      @Grab('org.codehaus.groovyfx:groovyfx:0.4.0-SNAPSHOT')
      import static groovyx.javafx.GroovyFX.start
      
      import javafx.scene.paint.Color
      
      start {
        stage title: 'Hello World', visible: true, {
          scene width: 250, height: 80, fill: Color.web('#d0c4b0'), {
            text x: 10, y: 30, text: 'Hello World.', font: '24pt "Ocean Sans MT"'
          }
        }
      }
      

      when executed, cause the groovyfx-0.4.0-SNAPSHOT.jar artefact to be grabbed from my local Maven cache and put into the Grapes cache. However it failed with:

      Caused by: java.lang.ClassNotFoundException: groovyx.javafx.GroovyFX
      at javafx.application.Application.launch(Application.java:237)

      If I run the code with:

      groovy -cp .:$HOME/.groovy/grapes/org.codehaus.groovyfx/groovyfx/jars/groovyfx-0.4.0-SNAPSHOT.jar helloWorld_groovyfx_text.groovy

      Then it works as expected. This implies the artefact is fine but the Grapes manipulation of classpath is not.

      Attachments

        Issue Links

          Activity

            People

              melix Cédric Champeau
              russel Dr. Russel Winder
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: