Build system indicators, Language keys and filtering SLF4J warnings

This commit is contained in:
Stef Tervelde
2025-07-02 20:34:37 +02:00
parent efd03dba54
commit 772567c540
5 changed files with 9 additions and 0 deletions
@@ -49,6 +49,7 @@ class GradleJob{
scope.launch {
try {
state.value = State.BUILDING
service?.editor?.statusMessage("Building sketch", EditorStatus.NOTICE)
GradleConnector.newConnector()
.forProjectDirectory(folder)
@@ -64,6 +64,7 @@ class GradleService(
private fun startAction(vararg tasks: String) {
if(!active.value) return
editor?.let { println(Language.text("gradle.using_gradle")) }
val job = GradleJob()
job.service = this
@@ -257,6 +257,9 @@ public class EditorConsole extends JScrollPane {
} else if (what.contains("__MOVE__")) {
// Don't display the "Move" message that is used to position the sketch window
return true;
}else if (what.startsWith("SLF4J: ")) {
// Don't display the SLF4J messages
return true;
}
} else { // !err
@@ -232,6 +232,7 @@ preferences.launch_programs_in = Launch programs in
preferences.launch_programs_in.mode = mode
preferences.file = More preferences can be edited directly in the file:
preferences.file.hint = (Edit only when Processing is not running.)
preferences.use_modern_build_system = Use modern build system (see Processing GitHub Wiki more details)
# Sketchbook Location (Frame)
sketchbook_location = Select new sketchbook folder
@@ -321,6 +322,8 @@ debugger.type = Type
# Gradle
gradle.instructions = About this file: \nProcessing creates this file when you run your sketch. \nIt configures the tools needed to build and export your code. \nLearn more: [Gradle Primer link]\n \nTo customize this file: \n1. Delete the line above that begins with '@processing-auto-generated'. \nThis will prevent Processing from overwriting this file in the future. \n2. Make your desired changes.
gradle.using_gradle = Building sketch using the new build system. (See settings to switch to the legacy build system.)
gradle.using_eclipse = Building sketch using the legacy build system. (See settings to switch to the new build system.)
# ---------------------------------------
# Toolbars
@@ -52,6 +52,7 @@ public class Compiler {
* @throws SketchException Only if there's a problem. Only then.
*/
static public boolean compile(JavaBuild build) throws SketchException {
System.out.println(Language.text("gradle.using_eclipse"));
// This will be filled in if anyone gets angry
SketchException exception = null;