SAS-config-directory/Levn/Web/Staging/
directory.
For more information about redeploying web applications, see "Redeploying
the SAS Web Applications" in the "Middle-Tier Administration"
chapter of the SAS Intelligence Platform: Web Application
Administration Guide.
-Dxmlpropfile=xmlpropfile.xml
option
when you execute the PDT script.
SAS-config-directory/Levn/Web/Applications/SASBIPortlets<version>/PortletDeploymentTool/src/
.
You must specify the following parameters:
<context-root>
element in the
application.xml file in the portlet source.
<context-root>
value
in application.xml is obtained from the webapp.testportlet.contextroot
parameter in the custom.properties file.
sample.hellouser.jsr168
.
vfabrictcsvr
,
is the only supported value.
C:/SAS/EntBIServer/Lev1/Web/Staging/myportlet.ear
).
all | specifies that the View, Edit, and Help modes are supported. |
edit | specifies that the View and Edit modes are supported. |
help | specifies that the View and Help modes are supported. |
SAS-config-directory/Levn/Web/Applications/SASBIPortlets<version>/PortletDeploymentTool/src/
.
The format of the xmlpropfile.xml file is as follows:
<webapps server-type="server-type" work-dir="working-directory" > <webapp servlet-context-name="context-name" web-app-name="Web-application-name" portlet-ear-file-name="filename" portlet-ear-file-path="fully-qualified-filename" default-supported-portlet-modes="modes-value" > <portlets> <portlet name="portlet-name" supported-portlet-modes="modes-value" > <locales> <locale name="locale-code" title="portlet-title" description="portlet-description" /> </locales> </portlet> </portlets> </webapp> </webapps>
<webapps>
element,
with a <webapp>
element inside it for
each web application that you add. The TestPortlet Scripting Facility
configures each portlet as a separate web application.
specifies the properties that are common to all of the web applications in the file. You must specify the following attributes:
specifies the type
of Java application server where the SAS BI Portlets web application
is deployed. The default value, vfabrictcsvr
,
is the only supported value.
specifies the working directory where the PDT places temporary files.
specifies properties for a specific web application. You must specify the following attributes:
specifies the context
name for the portlet. The value of this parameter must match the value
of the <context-root>
element value
in the application.xml file in the portlet source.
<context-root>
value
in application.xml is obtained from the webapp.testportlet.contextroot
parameter in the custom.properties file.
specifies the name
of the WAR file for the portlet, without the .war extension. For example,
if the WAR file for your portlet is named sample.hellouser.jsr168.war,
then specify the value sample.hellouser.jsr168
.
specifies the name of the EAR file for the portlet.
specifies the full
path to the EAR file for the portlet, including the filename. You
must use the forward slash (/) character to delimit the directories
in your path (for example, C:/SAS/EntBIServer/Lev1/Web/Staging/myportlet.ear
).
specifies which portlet modes are supported by default for the portlets in this web application. Specify one of the following values:
all | specifies that the View, Edit, and Help modes are supported. |
edit | specifies that the View and Edit modes are supported. |
help | specifies that the View and Help modes are supported. |
<webapp>
element
can contain an optional <portlets>
element.
The <portlets>
element contains one
or more <portlet>
elements:
specifies the properties for a portlet. You can specify the following attributes:
specifies the name of the portlet.
specifies which portlet modes are supported by this portlet. Specify one of the following values:
all | specifies that the View, Edit, and Help modes are supported |
edit | specifies that the View and Edit modes are supported |
help | specifies that the View and Help modes are supported |
<webapp>
element.
<portlet>
element
can contain an optional <locales>
element.
The <locales>
element contains one
or more <locale>
elements:
specifies the properties for a locale. You must specify the following values:
specifies the name of the locale.
specifies the locale-specific title for the portlet. The value of this attribute is an escaped-UTF-8 ASCII string.
specifies the locale-specific description for the portlet. The value of this attribute is an escaped-UTF-8 ASCII string.
<webapps server-type="vfabrictcsvr" work-dir="c:/temp/pdt-test" > <webapp servlet-context-name="HelloUserJSR168PortletSample" web-app-name="sample.hellouser.jsr168" portlet-ear-file-name="sample.hellouser.jsr168.ear" portlet-ear-file-path="C:/SAS/Config/Lev1/Web/Staging/sample.hellouser.jsr168.ear" default-supported-portlet-modes="all" > </webapp> <webapp servlet-context-name="HelloUserJSR168PortletSample2" web-app-name="sample2.hellouser.jsr168" portlet-ear-file-name="sample2.hellouser.jsr168.ear" portlet-ear-file-path="C:/SAS/Config/Lev1/Web/Staging/sample2.hellouser.jsr168.ear" default-supported-portlet-modes="all" > <portlets> <portlet name="HelloUserSample2" supported-portlet-modes="view help"> <locales> <locale name="zh_CN" title="\u4e66\u7b7e" description="\u7528\u6765\u7ba1\u7406\u4e66\u7b7e\u7684 Portlet" /> <locale name="en" title="CheckWindowStateNormalTestPortlet" description="The HelloUserSample 2 portlet" /> </locales> </portlet> </portlets> </webapp> </webapps>
ant -lib "%DEPLOYWIZ%"\ant-contrib.jar -lib "%DEPLOYWIZ%"\bsf.jar -lib "%DEPLOYWIZ%"\bsh.jar -Dxmlpropfile=xmlpropfile.xml
ant -lib $DEPLOYWIZ/ant-contrib.jar -lib $DEPLOYWIZ/bsf.jar -lib $DEPLOYWIZ/bsh.jar -Dxmlpropfile=xmlpropfile.xml
SAS-config-directory/Levn/Web/Staging/
directory.
For more information about redeploying web applications, see "Redeploying
the SAS Web Applications" in the "Administering SAS Web
Applications" chapter of the SAS Intelligence Platform: Middle-Tier Administration Guide.
SAS-config-directory\Levn\Web\Applications\SASPortlets<version>\Deployed
directory.
The exploded portlet directories are located in the SAS-config-directory\Levn\Web\Applications\SASPortlets<version>\Exploded
directory.
SAS-config-directory/Levn/Web/Staging/
directory.
For more information about redeploying web applications, see "Redeploying
the SAS Web Applications" in the "Administering SAS Web
Applications" chapter of the SAS Intelligence Platform: Middle-Tier Administration Guide.