Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Printing ClientLibrary to a File in my system


Level 3

Hi ,

I want to print clientLibrary to my file system.
For example If I give categories="",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="";

HtmlLibraryManager m = getService(slingRequest);

m.writeJsInclude(slingRequest, out, st);

1 Reply