コード例 #1
0
 @NotNull
 @Override
 public List<AndroidProjectBuildTarget> computeAllTargets(@NotNull JpsModel model) {
   if (!AndroidJpsUtil.containsAndroidFacet(model.getProject())) {
     return Collections.emptyList();
   }
   return Arrays.asList(
       new AndroidProjectBuildTarget(AndroidBuilderKind.DEX, model),
       new AndroidProjectBuildTarget(AndroidBuilderKind.PACKAGING, model));
 }
コード例 #2
0
 @Override
 public Collection<BuildTarget<?>> computeDependencies() {
   List<BuildTarget<?>> result = new ArrayList<BuildTarget<?>>();
   if (myKind == AndroidBuilderKind.PACKAGING) {
     result.add(new AndroidProjectBuildTarget(AndroidBuilderKind.DEX, myModel));
   }
   for (JpsModule module : myModel.getProject().getModules()) {
     if (AndroidJpsUtil.getExtension(module) != null) {
       result.add(new ModuleBuildTarget(module, JavaModuleBuildTargetType.PRODUCTION));
     }
   }
   return result;
 }