private static BinaryType getBinaryRootType(NbJavaModule module, File root) { NbOutput output = module.getProperties().getOutput(); if (GradleFileUtils.isParentOrSame(output.getBuildDir(), root)) { return BinaryType.NORMAL; } if (GradleFileUtils.isParentOrSame(output.getTestBuildDir(), root)) { return BinaryType.TEST; } return BinaryType.UNKNOWN; }
private static FileObject[] getTestSourcesOfModule(NbJavaModule module) { List<FileObject> result = module.getSources(NbSourceType.TEST_SOURCE).getFileObjects(); return result.toArray(NO_ROOTS); }