Building the Optimized Code Debugging the Build Script Configuring Site Studio to Use Optimized Code

13-4 Oracle Fusion Middleware Technical Reference Guide for Site Studio -- END:SCRIPT -- are compressed, concatenated, and referenced as -- BEGIN:SCRIPT -- script type=textjavascript src=..wcm.sitestudio.form.composite.jsscript -- END:SCRIPT -- Similarly, the following CSS references within the following comment syntax: -- BEGIN:CSS -- link href=..basewcm.base.css rel=stylesheet type=textcss link href=wcm.sitestudio.form.css rel=stylesheet type=textcss link href=..customsitestudiowcm.sitestudio.form.css rel=stylesheet type=textcss -- END:CSS -- are compressed, concatenated, and referenced as -- BEGIN:CSS -- link href=wcm.sitestudio.form.composite.css rel=stylesheet type=textcss -- END:CSS --

13.4.3 Building the Optimized Code

To run the build process on Windows, double-click the shell-build shortcut in the following location: \tools\optimize\shell-build Use the following command line to run the build process on other Site Studio supported platforms, including Windows: java.exe -cp ..\rhino\rhino1_7R2\js.jar org.mozilla.javascript.tools.shell.Main build.js When running the build process from the command line, it is important to ensure that the execution working directory is that of the build scripts directory. For instance, if executing the build from a shell, be sure to change directories to that of the build script \tools\optimize before executing the command line. The process can also be run from the Manage Fragment Libraries page in Site Studio Administration. Click Compress Contributor JavaScript to start the process.

13.4.4 Debugging the Build Script

To run the visual debugger on Windows, double-click the shell-debug shortcut in the following location: \tools\optimize\shell-debug Use the following command line to run the visual debugger on other supported platforms, including Windows: java.exe -cp ..\rhino\rhino1_7R2\js.jar org.mozilla.javascript.tools.debugger.Main build.js When running the visual debugger from the command line, it is important to ensure that the debuggers execution working directory is that of the build scripts directory. For example, if executing the debugger from a shell, be sure to change directories to that of the build script \tools\optimize before executing the command line. Site Studio Performance Tuning 13-5

13.4.5 Configuring Site Studio to Use Optimized Code

Once the optimized Contributor source code is built, Site Studio can be configured to use the optimized source code by changing the SSContributorSourceDir value. This value can be set in the following configuration file: CONTENT_SERVER_INSTALL_DIR \custom\SiteStudio\SiteStudio.cfg Within sitestudio.cfg, set SSContributorSourceDir to the value wcm_min: SSContributorSourceDir=wcm_min

13.4.6 Customizations and the Build Process