Thursday, October 24, 2013

Deploy Theme static resources using configengine with out using webdav client

This config engine task is used to deploy theme static resources to webdav folders without actually using webdav client. (useful when promoting from dev to test or prod environments for administrators).

To deploy theme using Configuration task create a zip file with all your static resources organized by type in to folders. lets call it testtheme.zip









and copy this zip file to a temp folder on your server.

and execute the following command based on your operating system.

./ConfigEngine.sh webdav-deploy-zip-file -DTargetURI=dav:/fs-type1/themes/ 
     -DZipFilePath=/tmp/testtheme.zip
 
./ConfigEngine.bat webdav-deploy-zip-file -DTargetURI=dav:/fs-type1/themes/ 
     -DZipFilePath=/tmp/testtheme.zip
 you should also pass 
  • WasUserid The WebSphere® Application Server user ID
  • WasPassword The WebSphere Application Server password
  • PortalAdminId The portal administrator user ID
  • PortalAdminPwd The portal administrator password 
 as parameters if these values are not already specified in wkplc.properties file. 
 
webdav-deploy-zipfile task by default will replace the existing contents of the specified
target folder with the contents in the zip file. if you want to avoid accidentally deleting
any of the necessary files/folders use optional UpdateMode paramater with value as merge
so that this taks will merge the contents of the zip file with the content thats already 
there in the target folder.  

the resulting command should me something like this.

./ConfigEngine.sh webdav-deploy-zip-file -DTargetURI=dav:fs-type1/themes 
-DZipFilePath=/tmp/testTheme.zip -DUpdateMode=merge
 
 
this task can also be used to deploy skins,iwidgets and layouts also using these
below values for  -DTargetURI
 

dav:fs-type1/layout-templates/
dav:fs-type1/iwidgets/myWidget/
dav:fs-type1/skins/