protected boolean hasSources() {
   for (LanguageSourceSet sourceSet : getSource()) {
     if (!sourceSet.getSource().isEmpty()) {
       return true;
     }
     if (sourceSet.hasBuildDependencies()) {
       return true;
     }
   }
   return false;
 }
예제 #2
0
 public static void addSourceSetToCompile(
     PlatformScalaCompile compile, LanguageSourceSet sourceSet) {
   compile.dependsOn(sourceSet);
   compile.source(sourceSet.getSource());
 }