Highlighted

Printing ClientLibrary to a File in my system

sripadap4996627

07-10-2017

Hi ,

I want to print clientLibrary to my file system.
For example If I give categories="abc.xyz.js",then it should print the js files for that particular clientlibs.

I tried to implement using   HtmlLibraryManager m = getService(slingRequest); , but it didn't work.
No idea where I have made mistake.

Please find the piece of code below :

Writer out = new PrintWriter("E:\\abc.txt", "UTF-8");

String st="abc.xyz.js";

HtmlLibraryManager m = getService(slingRequest);

m.writeJsInclude(slingRequest, out, st);

Replies