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

Bug in AntBuilder - DemuxOutputStream should be used

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6-beta-1
    • Fix Version/s: 1.8.1, 1.7.11
    • Component/s: Ant integration
    • Labels:
      None

      Description

      There is a problem in AntBuilder - output from some tasks is not redirected to Ant, but is stilll printed out to STDERR.
      Thus it is impossible to use Ant logging subsystem to redirect output to log file.

      For instance, javac warnings are printed directly to console (actually, to STDERR).

      Ant itself uses DemuxOutputStream for STDOUT and STDERR redirection.
      AntBuilder uses DemuxInputStream for input handling, but it does not redirect output streams.

        Attachments

        1. AntBuilder.patch
          0.4 kB
          Sergey Bondarenko
        2. Build.groovy
          0.0 kB
          Sergey Bondarenko
        3. build.xml
          0.1 kB
          Sergey Bondarenko
        4. CompilationWarning.java
          0.1 kB
          Sergey Bondarenko

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              enterit Sergey Bondarenko
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: