Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added information specific to installation of SSP to sites

...

Eventually, the same automated configuration will be added to the 1.2.x and 1.1.x.  Until then, the manual process for just building these versions is:

1) cd over to the directory with your ssp.jsb3 file:
 %> cd {src_root}/src/main/webapp

2) Run the sencha tool (note the dot at the end):
 %> sencha build -p ssp.jsb3 -d . 

3) Add the resulting files to git:
 %> git add app-all.js all-classes.js

MANUAL PROCESS FROM PERSPECTIVE OF INSTALLATION

There are a couple of instances where the manual process plus some additional steps would need to be employed:
A)  In the process of applying an upstream SSP patch or upgrade that contains Javascript code changes
B)  When the overlay in ssp-platform includes customized Javascript code (currently, since Configuration.js is still the mechanism through which much of this site-specific customization happens, this will be very common until all of the configuration settings are pushed to the SSP config table.)
%> cd {ssp-src}
# Builds and installs the ssp.war file in the local maven repository
%> mvn -Dmaven.test.skip=true clean install
%> cd {platform-src}/uportal-portlets-overlay/ssp
# Builds the ssp.war file for the overlay project in ssp-platform
%> mvn clean package
%> cd /target/ssp
# Builds the minified versions of app-all.js and all-classes.js
%> sencha build -p ssp.jsb3 -d .
# Copy the minified versions to the src/main/webapp directory for ssp in the overlay
%> cp app-all.js ../../src/main/webapp/
%> cp all-classes.js ../../src/main/webapp/
%> cd ../../
# Make sure it looks like all-classes.js and app-all.js have been modified
%> git status
# Add, commit, and push those changes
%> git add src/main/webapp/app-all.js src/main/webapp/all-classes.js
%> git commit -m "NOJIRA Update aggregated/minified js to include overlay code"
%> git push <remote-name> <branch-name>
%> cd {platform-src}
# Then build and deploy platform as usual