Download the zip file for add-ons and copy it to the Web Space Server installation directory.
cp webspace-10-fcs-addon-samples.zip webspace-for-gfv2/
cd webspace-for-gfv2/
Extract the zipped folder for samples.
unzip webspace-10-fcs-addon-samples.zip
Change to the /webspace/samples directory.
cd /webspace/samples
Install the samples.
To install a single sample (for example, socialspace.psar), type
ant -f install-gfv2.xml
Buildfile: install-gfv2.xml show-user-warning: [input] Ant must be 1.7 or greater. JAVA_HOME must be set to JDK 1.5 or greater. [RETURN to continue or CONTROL-C to stop] set-glassfish-properties: [input] Enter GlassFish Directory [/opt/webspace-gfv2-sunos/glassfish2] /<install-dir>/glassfish [input] Enter GlassFish Domain (include full path to domain) [/<install-dir>/glassfish/domains/domain1] set-psar-properties: [input] Enter psar file (include full path) [samples/sample.psar] /<install-dir>/webspace-for-gfv2/webspace/samples/samples/socialspace.psar
To install all samples, type
ant -f install-all-gfv2.xml
Buildfile: install-all-gfv2.xml show-user-warning: [input] Ant must be 1.7 or greater. JAVA_HOME must be set to JDK 1.5 or greater. [RETURN to continue or CONTROL-C to stop] set-glassfish-properties: [input] Enter GlassFish Directory [/opt/webspace-gfv2-sunos/glassfish2] /<install-dir>/glassfish [input] Enter GlassFish Domain (include full path to domain) [/<install-dir>/glassfish/domains/domain1] install: [echo] Stopping GlassFish... [echo] Execute /477/glassfish/bin/asadmin stop-domain if install hangs.
Restart theGlassFish server.