Skip to content

Commit

Permalink
Removing headless from development branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Hello-zoka committed Dec 3, 2024
1 parent d2df269 commit 0fceb59
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 411 deletions.
38 changes: 1 addition & 37 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.models.ProductRelease
import org.jetbrains.intellij.platform.gradle.tasks.RunIdeTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.io.FileOutputStream
import java.net.URL
Expand Down Expand Up @@ -236,7 +235,7 @@ intellijPlatform {
}
freeArgs = listOf(
"-mute",
"TemplateWordInPluginId,ForbiddenPluginIdPrefix"
"TemplateWordInPluginId,ForbiddenPluginIdPrefix",
)
}
}
Expand Down Expand Up @@ -416,40 +415,5 @@ tasks.register<Copy>("copyJUnitRunnerLib") {
*/
fun String?.orDefault(default: String): String = this ?: default

/**
* This code sets up a Gradle task for running the plugin in headless mode
*
* @param root The root directory of the project under test.
* @param file The file containing unit under test.
* @param cut The class under test.
* @param cp The classpath of the project.
* @param llm The model used for the test generation task.
* @param token The token for using LLM.
* @param prompt a txt file containing the LLM's prompt template
* @param out The output directory for the project.
* @param enableCoverage flag to enable/disable coverage computation
*/
tasks.create<RunIdeTask>("headless") {
val root: String? by project
val file: String? by project
val cut: String? by project
val cp: String? by project
val junitv: String? by project
val llm: String? by project
val token: String? by project
val prompt: String? by project
val out: String? by project
val enableCoverage: String? by project

args = listOfNotNull("testspark", root, file, cut, cp, junitv, llm, token, prompt, out, enableCoverage.orDefault("false"))

jvmArgs(
"-Xmx16G",
"-Djava.awt.headless=true",
"--add-exports",
"java.base/jdk.internal.vm=ALL-UNNAMED",
"-Didea.system.path",
)
}

fun spaceCredentialsProvided() = spaceUsername.isNotEmpty() && spacePassword.isNotEmpty()
31 changes: 0 additions & 31 deletions runTestSparkHeadless.sh

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0fceb59

Please sign in to comment.