Skip to content

Commit

Permalink
[ gradle ] Fix building issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Jul 31, 2019
1 parent 633669e commit 269c8d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ intellij {
if (!isCI) {
setPlugins("PsiViewer:192-SNAPSHOT", "java")
tasks["buildSearchableOptions"]?.enabled = false
}
} else setPlugins("java")
}

java {
Expand Down Expand Up @@ -138,8 +138,8 @@ val generateCode = task("generateCode") {

fun grammar(name: String): Pair<GenerateParser, GenerateLexer> {
val lowerCaseName = name.toLowerCase()
val parserRoot = Paths.get("org", "ice1000", "tt", "psi", lowerCaseName)!!
val lexerRoot = Paths.get("build", "gen", "org", "ice1000", "tt", "psi", lowerCaseName)!!
val parserRoot = Paths.get("org", "ice1000", "tt", "psi", lowerCaseName)
val lexerRoot = Paths.get("build", "gen", "org", "ice1000", "tt", "psi", lowerCaseName)
fun path(more: Iterable<*>) = more.joinToString(File.separator)
fun bnf(name: String) = Paths.get("grammar", "$name.bnf").toString()
fun flex(name: String) = Paths.get("grammar", "$name.flex").toString()
Expand Down

0 comments on commit 269c8d9

Please sign in to comment.