Skip to content

Commit

Permalink
fix (*) skip null dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
kotlitecture committed May 2, 2024
1 parent af0cb57 commit abe1af2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion engine/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply from: "${project.rootDir}/gradle/kotlin/library.gradle"

group = 'com.kotlitecture.kotli'
version = '0.4.4'
version = '0.4.5'

dependencies {
implementation libs.kotlin.coroutines.core
Expand Down
2 changes: 2 additions & 0 deletions engine/src/main/kotlin/kotli/engine/utils/PackageUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ object PackageUtils {
* @param newPackageName The new package name to replace the old package name.
*/
fun rename(rootDir: Path, oldPackageName: String, newPackageName: String) {
if(!rootDir.exists()) return

val oldPackagePath = oldPackageName.replace('.', '/')
val newPackagePath = newPackageName.replace('.', '/')

Expand Down

0 comments on commit abe1af2

Please sign in to comment.