Skip to content

Commit

Permalink
AA: Clean stale outputs before running
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-yuan committed Aug 29, 2023
1 parent b841b59 commit 5044d4f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ interface KspAAWorkParameter : WorkParameters {
abstract class KspAAWorkerAction : WorkAction<KspAAWorkParameter> {
override fun execute() {
val gradleCfg = parameters.config

// Clean stale files for now.
// TODO: support incremental processing.
gradleCfg.outputBaseDir.get().deleteRecursively()
gradleCfg.cachesDir.get().deleteRecursively()

val processorClassloader = URLClassLoader(
gradleCfg.processorClasspath.files.map { it.toURI().toURL() }.toTypedArray(),
SymbolProcessorProvider::class.java.classLoader
Expand Down

0 comments on commit 5044d4f

Please sign in to comment.