Skip to content

Commit

Permalink
fix(config): 🔧 add additional information for Java and Scala
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Jan 18, 2024
1 parent 8e1658a commit 891f22d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/executors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ execute = "/usr/bin/mono {out_file}"

[java]
# $java_home should be set to the directory containing the bin/ directory of the target java version
message = "主类需命名为 `Main`。"
src_rename = "Main.java"
out_rename = "Main.jar"
compile = "{java_home}/bin/javac Main.java && {java_home}/bin/jar -cvfe Main.jar Main ./*.class && rm -rf ./*.class"
Expand All @@ -36,6 +37,7 @@ compile = "{rustc_path}/rustc -O -o {out_file} {src_file}"

[scala]
# $scala_home and $java_home should be set to the directory containing the bin/ directory of the target scala version
message = "主类需命名为 `Main`。"
src_rename = "Main.scala"
out_rename = "Main.jar"
compile = "{scala_home}/bin/scalac Main.scala && {java_home}/bin/jar -cvfe Main.jar Main ./*.class && rm -rf ./*.class"
Expand Down

0 comments on commit 891f22d

Please sign in to comment.