This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks.register("printBuild") { // Register task named printBuild | |
doLast { // What should be executed - action | |
// Open a file in BufferedReader | |
try (BufferedReader br = new BufferedReader(new FileReader(layout.buildDirectory.dir("resources/main/git.properties").get().getAsFile()))) { | |
String line; | |
while ((line = br.readLine()) != null) { | |
System.out.println(line); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This script is used on monitoring page to mark the job id which is older that one day. | |
*/ | |
$(document).ready(function() { markOld();}); | |
function markOld() { | |
console.log("Start listening on changes"); | |
$(".container h1:first").css("color","red"); | |
$(document).on("DOMSubtreeModified", ".container h1:first", function () { | |
console.log("items changed"); |
When you open any terminal window this file will be run. Therefore, if you wish to have a permanent environment variable in all of your terminal windows you have to add the following
Same as bashrc you have to put the mentioned command line at the end of this file to have your environment variable in the every log in of your OS.
<dependency>
<groupId>org.springframework.boot</groupId>
spring-boot-starter-data-redis
NewerOlder