Skip to content

Commit

Permalink
Fix relative paths (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbooms authored May 9, 2022
1 parent 75b37ab commit f4399f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/kotlin/com/cjbooms/fabrikt/model/Destinations.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.cjbooms.fabrikt.model

import java.nio.file.Path
import java.nio.file.Paths

object Destinations {

val MAIN_KT_SOURCE: Path = Path.of("/src/main/kotlin/")
val MAIN_RESOURCES: Path = Path.of("/src/main/resources")
private val PATH_ROOT: Path = Paths.get("")
val MAIN_KT_SOURCE: Path = PATH_ROOT.resolve("src/main/kotlin/")
val MAIN_RESOURCES: Path = PATH_ROOT.resolve("src/main/resources")

fun modelsPackage(basePackage: String): String = "$basePackage.models"
fun controllersPackage(basePackage: String): String = "$basePackage.controllers"
Expand Down

0 comments on commit f4399f8

Please sign in to comment.