How to deploy with Ant portlet to remote WebSphere Portal?

How to deploy with Ant portlet for remote WebSphere Portal 6.0 (Linux)?

+4
source share
2 answers

You must do this using XmlAccess Ant tasks. See Redbook applications. Enterprise 5 scalability deployment guidelines for WebSphere Portal version .

+2
source

We do this locally, not remotely, with an ant task that does the following:

1) copy the portlet war file to the PortalApps Portal directory (since you do it remotely, you will need its FTP or something, and not just copy it locally, like we do).

2) Executes the xmlaccess script (in our case xmlaccess.bat in your case xmlaccess.sh) in the xml access file called "update.xmlaccess" in a subdirectory of the current directory with the name "xmlaccess".

Here is a code clip from our ant task. Some of the values โ€‹โ€‹here are variables specific to our script, but the names should be simple enough to figure out what they are doing:

<target name="deploy" depends="war" description="deploy the application"> <copy file="${project.base}/target/${package.name}.war" todir="${portal.base}/installableApps" /> <echo message="Deploying ${project.name} to WebSphere Portal." /> <exec executable="${portal.base}/bin/xmlaccess.bat"> <arg line='-in "xmlaccess/update.xmlaccess" -user ${wps.admin.user} -pwd ${wps.admin.password} -url ${wps.admin.url} -out "xmlaccess/deploymentresults.xmlaccess"' /> </exec> </target> 
+2
source

All Articles