Skip to content

Commit

Permalink
Remove unused gradle tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene Gleyzer committed Jul 28, 2023
1 parent 4096719 commit c6c714f
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions manualTests/build.gradle.kts
Expand Up @@ -105,50 +105,11 @@ tasks.register<JavaExec>("runOne") {

jvmArgs("-showversion", "-Xms1024m", "-Xmx1024m", "-ea")

systemProperties.put("xvm.db.impl", System.getProperty("xvm.db.impl"))

classpath(
"${javatools.buildDir}/classes/java/main",
"${javatools.buildDir}/resources/main",
"${javatools.buildDir}/classes/java/test")

args("src/main/x/$name.x")
mainClass.set("org.xvm.runtime.TestConnector")
}

tasks.register<JavaExec>("host") {
group = "Test"
description = "Host a \"testName\" test"

dependsOn(xdk.tasks["build"])

val name = if (project.hasProperty("testName")) project.property("testName") else ""

systemProperties.put("xvm.db.impl", System.getProperty("xvm.db.impl"))

classpath(javatoolsJar)

val opts = listOf<String>(
"-L", "${xdk.buildDir}/xdk/lib/",
"-L", "${xdk.buildDir}/xdk/javatools/javatools_turtle.xtc",
"-L", "${xdk.buildDir}/xdk/javatools/javatools_bridge.xtc",
"${xdk.buildDir}/xdk/lib/host.xtc")

mainClass.set("org.xvm.tool.Runner")

if (name == "") {
args(opts)
}
else {
args(opts + "build/$name.xtc")

doLast {
val console = "$buildDir/${name}/console.log"
if (file(console).exists()) {
exec() {
commandLine = listOf<String>("cat", console)
}
}
}
}
}

0 comments on commit c6c714f

Please sign in to comment.