Skip to content

Commit 8f81c0f

Browse files
authored
Don't fail semanticDbData if classes dir does not exist (#4249)
Fixes https://github.com/joan38/mill-scalafix#213 Pull request: #4249
1 parent 7fbad41 commit 8f81c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scalalib/src/mill/scalalib/SemanticDbJavaModule.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ object SemanticDbJavaModule {
224224

225225
// copy over all found semanticdb-files into the target directory
226226
// but with corrected directory layout
227-
os.walk(classesDir, preOrder = true)
227+
if (os.exists(classesDir)) os.walk(classesDir, preOrder = true)
228228
.filter(os.isFile)
229229
.foreach { p =>
230230
if (p.ext == "semanticdb") {

0 commit comments

Comments
 (0)