}
//TODO: Refactor out common code for Native and Jvm
private static class MarkBinariesBuildable implements Action<JarBinarySpec> {
public void execute(JarBinarySpec jarBinarySpec) {
JavaToolChainInternal toolChain = (JavaToolChainInternal) jarBinarySpec.getToolChain();
boolean canBuild = toolChain.select(jarBinarySpec.getTargetPlatform()).isAvailable();
((JarBinarySpecInternal) jarBinarySpec).setBuildable(canBuild);
}