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

Script output does not appear in console

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP Home, Eclipse 3.2 and 3.3, Java 6 (build 1.6.0-b105)

      Description

      // if run from command line output appears; but nothing appears in console when run in Eclipse...

      import javax.net.ssl.*;

      def factory = SSLSocketFactory.getDefault();
      def socket = factory.createSocket("www.sun.com", 443);
      def writer = new BufferedWriter(new OutputStreamWriter(socket.outputStream));
      def reader = new BufferedReader(new InputStreamReader(socket.inputStream));
      writer << 'GET / HTTP/1.0\n\n'
      writer.flush();
      reader.eachLine

      {println it}

      writer.close();
      reader.close();

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jimruley Jim Ruley
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: