Yes. I'm aware of "internal" stuff being private. As the name suggests. And up to know I never complained about internal stuff changing under me. But with being past 1.0 this starts to get painful. So I figured to ask about what I should do instead.
I need it to instantiate the DefaultSourceDirectorySet. Even if I copy that over into a private copy. And I need to instantiate a DefaultJavaExecAction thingy which I use to provide a ClojureExec. This is basically a JavaExec underneath with a hardwired main class which knows what to do with the provided main "class" (actually a clojure function). Both need a FileResolver.
I cannot replace it because it is provided by a call that looks like this: getServices().get(FileResolver.class). So obviously I won't get the right thing, when I pass in "my" FileResolver.