Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Printing ClientLibrary to a File in my system

Avatar

Level 3

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);

1 Reply