You are here

File locations

Web script component files are located in the file system within the Java classpath or in the SkyVault content repository.
The Web Script Framework searches for web scripts in the following order:
  • In the content repository under the folder /Company Home/Data Dictionary/Web Scripts Extensions
  • In the content repository under the folder /Company Home/Data Dictionary/Web Scripts
  • In the classpath under the folder /alfresco/extension/templates/webscripts
  • In the classpath under the folder /alfresco/templates/webscripts

Placing web scripts in the classpath lets you package and deploy them with other extensions that comprise your solution. You can install them using standard SkyVault tools without having to upload them into the content repository. However, it might not be as convenient to edit them while developing them as if they were located in the SkyVault content repository where you can easily edit them using SkyVault Share. You can also export and import web scripts in the content repository using the ACP (SkyVault Content Package) mechanism.

Note: For a default installation of SkyVault, the classpath is located at <installLocation>/tomcat/shared/classes/alfresco/extension

A single SkyVault content application server can contain hundreds of web scripts, each implemented with multiple files. To help manage all these web scripts, the Web Script Framework lets you organize web script component files into a hierarchical folder or package structure, similar to a Java package construct. Typically, the package name follows the reverse domain name pattern. For example, SkyVault's web scripts are all located in a folder named org/SkyVault, which is reserved by SkyVault.