Class AntInstrUtils

java.lang.Object
org.openclover.ant.AntInstrUtils

public class AntInstrUtils extends Object
  • Constructor Details

    • AntInstrUtils

      public AntInstrUtils()
  • Method Details

    • getProp

      public static String getProp(@NotNull org.apache.tools.ant.Project project, String key, String defaultValue)
    • calcInstrPatternSet

      @Nullable public static org.apache.tools.ant.types.PatternSet calcInstrPatternSet(@NotNull org.apache.tools.ant.Project project)
    • calcInstrFileSets

      @Nullable public static List<org.apache.tools.ant.types.FileSet> calcInstrFileSets(@NotNull org.apache.tools.ant.Project project)
    • createInstrDir

      public static File createInstrDir(@Nullable File basedir) throws org.openclover.runtime.api.CloverException
      Throws:
      org.openclover.runtime.api.CloverException
    • cleanUpInstrDir

      public static void cleanUpInstrDir(@Nullable File tmpDir, boolean preserveInstr)
    • sieveSourceForInstrumentation

      public static void sieveSourceForInstrumentation(@NotNull org.apache.tools.ant.Project project, @Nullable org.apache.tools.ant.types.Path srcPath, @Nullable org.apache.tools.ant.types.PatternSet instrPatternSet, @Nullable List<org.apache.tools.ant.types.FileSet> instrFileSetsList, @NotNull Collection<File> toCompile, @NotNull Collection<File> toCopy, @NotNull Collection<File> toInstrument)
    • sieveSourceByPatternSets

      public static void sieveSourceByPatternSets(@NotNull org.apache.tools.ant.Project project, @NotNull org.apache.tools.ant.types.Path srcPath, @NotNull org.apache.tools.ant.types.PatternSet instrPatternSet, @NotNull Collection<File> toCompile, @NotNull Collection<File> toCopy, @NotNull Collection<File> toInstrument)
    • sieveSourceByDirSets

      public static void sieveSourceByDirSets(@NotNull org.apache.tools.ant.Project project, @NotNull List<org.apache.tools.ant.types.FileSet> instrFileSetsList, @NotNull Collection<File> toCompile, @NotNull Collection<File> toCopy, @NotNull Collection<File> toInstrument)
    • sieveSourceByAddingAll

      public static void sieveSourceByAddingAll(@NotNull Collection<File> toCompile, @NotNull Collection<File> toCopy, @NotNull Collection<File> toInstrument)
    • sieveSrcPath

      public static void sieveSrcPath(@NotNull org.apache.tools.ant.Project project, @NotNull org.apache.tools.ant.types.PatternSet instrPatternSet, @NotNull Collection<File> toCompile, @NotNull Collection<File> toCopy, @NotNull Collection<File> toInstrument, @NotNull String srcDir)