Skip to content

Commit

Permalink
add runConsole task
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiaoM committed Sep 2, 2024
1 parent de9d0ed commit 2114ec5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .run/RunConsoleKt.run.xml

This file was deleted.

9 changes: 9 additions & 0 deletions overflow-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,12 @@ dependencies {
testImplementation("net.mamoe:mirai-console")
testImplementation("net.mamoe:mirai-console-terminal")
}

tasks {
register<JavaExec>("runConsole") {
mainClass.set("RunConsoleKt")
workingDir = File(project.projectDir, "run")
classpath = sourceSets.test.get().runtimeClasspath
standardInput = System.`in`
}
}
24 changes: 24 additions & 0 deletions overflow-core/runConsole.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="runConsole" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="runConsole" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<RunAsTest>false</RunAsTest>
<method v="2" />
</configuration>
</component>

0 comments on commit 2114ec5

Please sign in to comment.