Skip to content

Commit 772567c

Browse files
committed
Build system indicators, Language keys and filtering SLF4J warnings
1 parent efd03db commit 772567c

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

app/src/processing/app/gradle/GradleJob.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class GradleJob{
4949
scope.launch {
5050
try {
5151
state.value = State.BUILDING
52+
service?.editor?.statusMessage("Building sketch", EditorStatus.NOTICE)
5253

5354
GradleConnector.newConnector()
5455
.forProjectDirectory(folder)

app/src/processing/app/gradle/GradleService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class GradleService(
6464

6565
private fun startAction(vararg tasks: String) {
6666
if(!active.value) return
67+
editor?.let { println(Language.text("gradle.using_gradle")) }
6768

6869
val job = GradleJob()
6970
job.service = this

app/src/processing/app/ui/EditorConsole.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ private boolean suppressMessage(String what, boolean err) {
257257
} else if (what.contains("__MOVE__")) {
258258
// Don't display the "Move" message that is used to position the sketch window
259259
return true;
260+
}else if (what.startsWith("SLF4J: ")) {
261+
// Don't display the SLF4J messages
262+
return true;
260263
}
261264

262265
} else { // !err

build/shared/lib/languages/PDE.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ preferences.launch_programs_in = Launch programs in
232232
preferences.launch_programs_in.mode = mode
233233
preferences.file = More preferences can be edited directly in the file:
234234
preferences.file.hint = (Edit only when Processing is not running.)
235+
preferences.use_modern_build_system = Use modern build system (see Processing GitHub Wiki more details)
235236

236237
# Sketchbook Location (Frame)
237238
sketchbook_location = Select new sketchbook folder
@@ -321,6 +322,8 @@ debugger.type = Type
321322

322323
# Gradle
323324
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.
325+
gradle.using_gradle = Building sketch using the new build system. (See settings to switch to the legacy build system.)
326+
gradle.using_eclipse = Building sketch using the legacy build system. (See settings to switch to the new build system.)
324327

325328
# ---------------------------------------
326329
# Toolbars

java/src/processing/mode/java/Compiler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class Compiler {
5252
* @throws SketchException Only if there's a problem. Only then.
5353
*/
5454
static public boolean compile(JavaBuild build) throws SketchException {
55+
System.out.println(Language.text("gradle.using_eclipse"));
5556

5657
// This will be filled in if anyone gets angry
5758
SketchException exception = null;

0 commit comments

Comments
 (0)