if (binary instanceof JvmBinarySpec) {
JvmBinarySpec jvmBinary = (JvmBinarySpec) binary;
textOutput.formatln(" platform: %s", jvmBinary.getTargetPlatform().getName());
textOutput.formatln(" tool chain: %s", jvmBinary.getToolChain().getDisplayName());
if (binary instanceof JarBinarySpec) {
JarBinarySpec jarBinary = (JarBinarySpec) binary;
textOutput.formatln(" Jar file: %s", fileResolver.resolveAsRelativePath(jarBinary.getJarFile()));
}
if (binary instanceof ClassDirectoryBinarySpec) {
ClassDirectoryBinarySpec classDirectoryBinary = (ClassDirectoryBinarySpec) binary;
textOutput.formatln(" classes dir: %s", fileResolver.resolveAsRelativePath(classDirectoryBinary.getClassesDir()));
textOutput.formatln(" resources dir: %s", fileResolver.resolveAsRelativePath(classDirectoryBinary.getResourcesDir()));