How to know whether you are running inside a gradle daemon -


We have a situation where we take a Joint Instrument inside VM that runs slowly.

However, it fails in a very bad way when we are operating inside a Graydale Damon: we are not able to completely get rid of jetty insulation, so it is possible to die with the Crowdell process Will happen. (However, this is not really a big concern, because we do not want gradle daemons in this CI integration test case).

So, we want to know whether the current work is going on inside a Graydale Damon, or not - so that we can throw an exception or otherwise inform the user that it is wrong The method is, please un-demonize it.

Name one of your thread "Daemon threads" so that you allow a hack, it Can work:

  def isDaemon = Thread.allStackTraces.keySet.any {it.name.contains "Daemon"};    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -