The Portal Server software sets up a default portal under the portal1 ID. It customizes, configures, and deploys all portlet applications for this portal using default values and values provided at install time. The default portal is a special case. Thereafter, when a new portal is created, the PortalServer-DataDir/portals/portal-ID/portletapps directory is populated, the tokens.properties files are filled with default values, but the portlet applications are not deployed.
By default, the file sharing portlet application is configured to store files in a database, but it can also be configured to use the file system. In this example, the file sharing portlet in the default portal is re-configured to use the file system.
Undeploy and unconfigure the file sharing portlet application in the default portal located at /var/opt/SUNWportal/portals/portal1/portletapps/filesharing directory.
To undeploy, run ant undeploy and to unconfigure, run ant unconfig_backend.
Edit the File Sharing portlet's tokens.properties file and modify the following tokens:
Change the value of this token from Database to FileSystem.
Change the value of this token to /export/filesharing/portal1 to change the location where the files are stored on the file system.
Save the file.
Build the deployable portlet web application using the customize target ant customize.
Configure the portlet application's data sources by running ant config_backend. Here, this command will simply create the file system directories used by the portlet application.
Deploy the portlet application by running the command ant deploy.