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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0-JSR-4
    • Fix Version/s: 1.5
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: