In all my previous post under Gradle, I have executed a task by entering the below command in the command line. gradle taskName where taskName is the name of the task to be executed If we just type gradle, the output will be as shown below Output E:\Projects\GradleConcepts\package3>gradle Starting a Gradle Daemon, 1 incompatible Daemon…… Continue reading DefaultTask example
Month: September 2018
Adding Chunk Level Listeners using ChunkListener
In this post of Spring Batch, I will explain how to add chunk level listeners. In Spring Batch, items are read one at a time, but written to file as a chunk (a collection of records written as one unit). So if total records are 100 and chunk size is 50, they will be two…… Continue reading Adding Chunk Level Listeners using ChunkListener
Excluding tasks from execution
In this post of Gradle, I will show how to exclude a particular task from execution. Below is the gradle script with three tasks build.gradle task task1 { doFirst { println ‘I am task1’ } } task task2 { doFirst { println ‘I am task2’ } } task task3 { doFirst { println ‘I am…… Continue reading Excluding tasks from execution
Executing multiple tasks
In this post of Gradle, I will show how to execute multiple tasks from command line. Below is the gradle script with three tasks build.gradle task task1 { doFirst { println ‘I am task1’ } } task task2 { doFirst { println ‘I am task2’ } } task task3 { doFirst { println ‘I am…… Continue reading Executing multiple tasks
Selecting elements that are descendants of another element
In this post of JQuery, I will show how to select elements that are descendants of another element. Below is the complete html code that will be used as an example 1 <html> 2 <head> 3 https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js 4 </head> 5 <body> 6 7 function selectDescendantElement() { 8 var $element = $(‘div li’); 9 alert($element.length); 10…… Continue reading Selecting elements that are descendants of another element
Selecting elements that are direct children of another element
In this post of JQuery, I will show how to select elements that are direct childrens of another element. Below is the complete html code that will be used as an example 1 <html> 2 <head> 3 https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js 4 </head> 5 <body> 6 7 function selectElementByHierarchy1() { 8 var $element = $(‘#Items1 > li’); 9…… Continue reading Selecting elements that are direct children of another element
Adding Step Level Listeners using StepExecutionListener
In this post of Spring Batch, I will explain how to add step level listeners. Spring Batch provides a facility to add listeners at step level. The listeners are executed before the step is started and after the step is finished. This post explains how to create step level listeners and integrate them with the…… Continue reading Adding Step Level Listeners using StepExecutionListener
Quartz JobDataMap Example Part 1
In this post of Quartz scheduler, I will explain what is JobDataMap and how to use it. JobDataMap is an implementation of java Map interface. In addition to the methods of Map interface additional methods are added for storing and retrieving primitive types. JobDataMap holds data as a key value pair. It is used to…… Continue reading Quartz JobDataMap Example Part 1
Selecting elements by their tag name
In this post of JQuery, I will explain how to select elements by their tag name. The syntax is as shown below $(‘tagName’) This will return one object or collection of more than one objects based on how many elements are there in the html matching the tagname. In the below example when the button…… Continue reading Selecting elements by their tag name
Parsing xml document using DOM api
In this post I will explain how to parse a xml document using DOM api. The DOM api can also be used to create xml documents in addition to reading. The DOM compliant parser loads the entire document in memory for reading it. Once the entire xml document is loaded in the memory, we can…… Continue reading Parsing xml document using DOM api