Deploying the web script
The web script components are now ready. In order to make them work together, these need to be deployed now. In your Alfresco installed directory, perform the following steps:
- Create a folder named
example
at the locationtomcat\shared\classes\alfresco\extension\templates\webscripts
. - Put
contentlocation.get.desc.xml
,contentlocation.get.json.ftl
, andcontentlocation.get.xml.ftl
at the locationtomcat\shared\classes\alfresco\extension\templates\webscripts\example
. - Put
custom-example-webscripts-context.xml
at the locationtomcat\shared\classes\alfresco\extension
. - Create folders
com
|example
|content
at the locationtomcat\webapps\alfresco\WEB-INF\classes
. - Put the compiled Java class
ContentLocationWebscript.class
at the location ...
Get Learning Alfresco Web Scripts now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.