Ant deploytask usage
Deploy your par files via an ant task directly to any given SAP Enterprise Portal. This is especially useful when using continious integration in your project.
Installing the task
The purpose of the deploytask is simply to have the functionality to deploy par files from an Ant script. I order for this to work you of course need to place dynpageplus-sapep-deploytask-1.0.jar within reach of the classloader for Ant. This is easiest done simply by putting the file in <ANT_HOME>/lib, or if you'er using the Ant embedded in eclipse, just add the jarfile to Ant's runtime classpath under Window -> prefrence -> Ant.
To obtain the needed jar file you could eather check the project out of CVS and build it, or you can download the binary version here: dynpageplus-sapep-deploytask-1.0.jar.
Writing the taskdef and using it
Another thing you need to do is to write a <taskdef> for your buildscript. This should look something like this:
<taskdef classname="net.sf.dynpageplus.ant.Deploytask name="deployer"/>
If you have the dynpageplus-sapep-deploytask-1.0.jar located anywhere else than <ANT_HOME>/lib, then you need to refrence it in a nested <classpath> element.
Next you need to use the depoyer in a target. That could look something like this:
<target name="deploy"> <echo>Deploying par file</echo> <deployer host="portal.company.com" port="50000" username="administrator" password="password" parfile="path-to-par-file"/> </target>
I've included the <target> for completeness.