I have a windows server environment that runs a number of Java Gradle projects. Each is distributed using ./gradlew distZip and run using the batch file this command creates: [distribution name].bat. Each running project has a cmd window open on the server, and at times it is confusing to know which cmd window is attached to which running project.
To mitigate this I add a TITLE command to the batch script, which adds the title to the bar at the top of the window. Something like this:
@rem add a title to the project cmd window
TITLE My Gradle Project Name
This got me wondering if there a configuration option in the project to add a line like this to the batch file automatically. I searched through the Gradle docs and it looks like this might be possible through Project properties, but I haven't been able to dig anything specific up.
Does anyone know how to do this in a Java Gradle project?
