+

Search Tips   |   Advanced Search

Task webdav-deploy-zip-file

This task uploads archive or compressed files to portal WebDAV folders used by themes and iWidgets. The target folder is DAV URI, for example:

    dav:fs-type1/iwidgets/myWidget/

By default, this task replaces the referenced target folder by the extracted contents of the referenced archive or compressed file. As a result, files or folders contained in the referenced WebDAV folder are deleted before the new content is added. If you want to avoid this behavior and merge the contents, set the optional UpdateMode parameter to the value merge. If you add this setting, the task merges the contents of the archive or compressed file into the content that exists at the target URI.

If you have a portal cluster installation, start the task on the primary node only. Starting the task on a secondary node has no effect.

If the WebDAV folder referenced by the target URI does not exist yet, the task creates it. In this case, make sure to have a trailing slash ( / ) at the end of the target URI.

Parameters specified on command line or in wkplc.properties

    WasUserid The WebSphere Application Server user ID.
    WasPassword The WebSphere Application Server password.
    PortalAdminId The WebSphere Portal administrator user ID.
    PortalAdminPwd The WebSphere Portal Express administrator password.

Mandatory parameters specified on the command line only:

    TargetURI The URI of the WebDAV folder where we want the archive or compressed file to be extracted.
    ZipFilePath The file system path to the archive or compressed file. Do not use in combination with ZipFileClassPath.
    ZipFileClassPath The Java class path to the archive or compressed file. Do not use in combination ZipFilePath.

Optional parameters specified on the command line only:

    UpdateMode Default is replace. To merge the content of the archive or compressed file with the content that exists at the target URI, set merge. In this case files that do not yet exist are created, existing files are updated, and no files are deleted.
    VirtualPortalContext
    VirtualPortalHost
    Use one of these two parameters to identify a virtual portal. Only pages contained in the specified virtual portal are refreshed. If you omit this parameter, no virtual portal page layout is refreshed.

Example:

Upload the file foo.zip to the public folder of the file store by using either one of the following options:

  • Copy the file foo.zip to the portal class path, for example

      AppServer/lib/ext

  • Copy the file myWidget.zip to the temporary directory /tmp on the portal server node.

  • Run the webdav-deploy-zip-file configuration task

      ./ConfigEngine.sh webdav-deploy-zip-file -DTargetURI=dav:fs-type1/iwidgets/myWidget/ 
                                               -DZipFilePath=/tmp/myWidget.zip