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

script cant find class in same directory with "-cp ."

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.0-JSR-4
    • 1.5
    • None
    • n/a

    Description

      StartSOD.groovy
      ++++++++++++
      new SOD().;

      SOD.groovy
      ++++++++++
      class SOD{

      }

      E:\home\sod\script>groovy -cp . StartSOD.groovy
      StartSOD.groovy: 6: unable to resolve class SOD
      @ line 6, column 5.
      SOD sod = new SOD();

      E:\home\sod\script>groovy -cp .;SOD.groovy StartSOD.groovy

      <RUNS FINE>

      Attachments

        Activity

          People

            paulk Paul King
            coltnz Colin Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: