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());
 }