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>
source share