Sun Java System Portal Server 7.1 Developer Sample Guide

ProcedureTo Restore Developer Sample Display Profile

  1. Copy Developer Sample configuration files to a custom directory.

    Copy the template files from PortalServer-base/samples/portals/shared to a custom directory, remove the .template extension, and substitute the tokens in each file. For example, type:

    mkdir /tmp/mydir
    cp /opt/SUNWportal/samples/portals/shared/input.properties.template
     /tmp/mydir/input.properties
    cp /opt/SUNWportal/samples/portals/shared/password.properties.template
     /tmp/mydir/password.properties
  2. Specify values for the input.properties and password.properties files.

    Edit the input.properties file and replace all the tokens that begin and end with % with the appropriate Portal Server software settings. Edit the password.properties file and replace all the tokens that begin and end with % with the appropriate administrator password value.

  3. Run ant to install the Developer Sample.

    For example, to install the Developer Sample:

    • On Solaris, type:

      export JAVA_HOME=/usr/jdk/entsys-j2se
      /usr/sfw/bin/ant -buildfile PortalServer-base/samples/portals/developer/build.xml 
      -Dconfig.location PortalServer-DataDir/tmp -logfile 
      PortalServer-DataDir/tmp/dslog.txt
    • On Linux, type:

      export JAVA_HOME=/usr/jdk/entsys-j2se
      /opt/sun/bin/ant -buildfile 
      PortalServer-base/samples/portals/developer/build.xml 
      -Dconfig.location /var/opt/sun/portal/tmp -logfile 
      /var/opt/SUNWportal/tmp/dslog.txt