Skip to content

Commit 5404a17

Browse files
committed
Replace commented out snapshot generation code
1 parent bcb43a9 commit 5404a17

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/kotlin/io/bazel/kotlin/builder/tasks/jvm/ClasspathSnapshotGenerator.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ class ClasspathSnapshotGenerator(
1717
) {
1818

1919
fun run() {
20-
if (outputSnapshot.exists()) { return }
20+
// if (outputSnapshot.exists()) { return }
2121
val timeSpent = measureTimeMillis {
2222
val compilationService = CompilationService.loadImplementation(this.javaClass.classLoader!!)
23-
// val snapshot =
24-
// compilationService.calculateClasspathSnapshot(
25-
// inputJar.toFile(), granularity.toClassSnapshotGranularity)
26-
// snapshot.saveSnapshot(outputSnapshot.toFile())
23+
val snapshot =
24+
compilationService.calculateClasspathSnapshot(
25+
inputJar.toFile(), granularity.toClassSnapshotGranularity)
26+
snapshot.saveSnapshot(outputSnapshot.toFile())
2727
}
2828
// TODO: Log impl
2929
// LOG.info("$timeSpent ms for input jar: $inputJar")

0 commit comments

Comments
 (0)