public void clearForFullMode() throws IOException { invocation.getOutputProvider().deleteAll(); FileUtils.deleteDirectory(variantRoot); } }
try { if (!transformInvocation.isIncremental()) { transformInvocation.getOutputProvider().deleteAll();
Collection<TransformInput> inputs = transformInvocation.getInputs(); TransformOutputProvider outputProvider = transformInvocation.getOutputProvider(); if (outputProvider != null) outputProvider.deleteAll(); System.out.println("/////////////////////////begin inputs///////////////////////////////////");
outputProvider.deleteAll(); Collection<TransformInput> inputs = transformInvocation.getInputs(); if (config.inlineR && !Objects.equals(buildType, "debug")) {
outputProvider.deleteAll();
outputProvider.deleteAll();
outputProvider.deleteAll();
throw new IllegalStateException("Incremental mode is not supported yet."); } else { outputProvider.deleteAll();
/** * Performs the full shrinking run. This clears previous incremental state, creates a new * {@link ShrinkerGraph} and fills it with data read from the platform JARs as well as input * classes. Then we find "entry points" that match {@code -keep} rules from the config file, * and walk the graph, setting the counters and finding reachable classes and members. In the * last step we rewrite all reachable class files to only contain kept class members and put * them in the matching output directories. */ public void run( @NonNull Collection<TransformInput> inputs, @NonNull Collection<TransformInput> referencedClasses, @NonNull TransformOutputProvider output, @NonNull ImmutableMap<CounterSet, KeepRules> keepRules, boolean saveState) throws IOException { output.deleteAll(); buildGraph(inputs, referencedClasses); Stopwatch stopwatch = Stopwatch.createStarted(); setCounters(keepRules); logTime("Set counters", stopwatch); writeOutput(inputs, output); logTime("Write output", stopwatch); if (saveState) { mGraph.saveState(); logTime("Saving state", stopwatch); } }
outputProvider.deleteAll();
outputProvider.deleteAll();