October 2013
Beginner to intermediate
270 pages
5h 41m
English
tJava is a very useful component for logging purposes, because it can be used in its own sub job. This enables tJava to be used to print job status information at given points in the process. The following recipe demonstrates this.
Open the jo_cook_ch10_0070_loggingWithtJava job.
The steps for using tJava to display status messages and variables are as follows:
tJava_1 and add the following code:System.out.println("\n\nSearching directory "+context.cookbookData+"chapter10 for files matching wildcard *jo*\n\n");tJava_2 and add the following code:System.out.println("Processing file: "+((String)globalMap.get("tFileList_1_CURRENT_FILE")));tJava_3 and add the ...Read now
Unlock full access