String () { StringBuilder info = new StringBuilder(); info.append(myPid).append(" ") .append(DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT ).format(new Date(myTimestamp))).append(" ") .append(myStatus).append(" "); if(myVersion != null && !myVersion.isEmpty()) { info.append("Gradle version: ").append(myVersion); } if(myDaemonExpirationStatus != null && !myDaemonExpirationStatus.isEmpty()) { info.append("\nExpiration status: ").append(myDaemonExpirationStatus); } if(myReason != null && !myReason.isEmpty()) { info.append("\nStop reason: ").append(myReason); } if(myRegistryDir != null) { info.append("\nDaemons dir: ").append(myRegistryDir); } if(myJavaHome != null) { info.append("\nJava home: ").append(myJavaHome.getPath()); } if(myDaemonOpts != null && !myDaemonOpts.isEmpty()) { info.append("\nDaemon options: ").append(myDaemonOpts); } if(myIdleTimeout != null) { info.append("\nIdle timeout: ").append(myIdleTimeout); } return info.toString(); }