清理 ManagedProcess::getPid() (#2660)
* Delete getPID0 * Delete blank line
This commit is contained in:
@@ -13,20 +13,4 @@ dependencies {
|
||||
api("org.nanohttpd:nanohttpd:2.3.1")
|
||||
api("org.apache.commons:commons-compress:1.25.0")
|
||||
compileOnlyApi("org.jetbrains:annotations:24.1.0")
|
||||
compileOnlyApi("com.github.burningtnt:BytecodeImplGenerator:b45b6638eeaeb903aa22ea947d37c45e5716a18c")
|
||||
}
|
||||
|
||||
tasks.getByName<JavaCompile>("compileJava") {
|
||||
val bytecodeClasses = listOf(
|
||||
"org/jackhuang/hmcl/util/platform/ManagedProcess"
|
||||
)
|
||||
|
||||
doLast {
|
||||
javaexec {
|
||||
classpath(project.sourceSets["main"].compileClasspath)
|
||||
mainClass.set("net.burningtnt.bcigenerator.BytecodeImplGenerator")
|
||||
System.getProperty("bci.debug.address")?.let { address -> jvmArgs("-agentlib:jdwp=transport=dt_socket,server=n,address=$address,suspend=y") }
|
||||
args(bytecodeClasses.map { s -> project.layout.buildDirectory.file("classes/java/main/$s.class").get().asFile.path })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user