Skip to content

Binding to suppress print output not supported by pod #72

@Kaspazza

Description

@Kaspazza

I'm using tools bbuild for building pom.xml, which prints messages to *err* using tools deps utils function e.g. here.
I would like to have control on what's printed, so I did simple:

(let [s (new java.io.StringWriter)]
(binding [*out* s *err* s] (clj-build-api/write-pom params)))

This binding takes no effect and there is no way to suppress the messages due to pod not being affected by binding.

Temporary solution:
After starting, evaluating
(require 'clojure.tools.deps.util.io :reload)
makes binding to work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions