Here is a little tool that helps you to integrate SDM deployment into your ANT build scripts.
Why would you need this you may ask as there is the Java Development Infrastructure that does the deployment for you?
Well, when you have the JDI installed you will probably not need this (or only on rare occasions) but for others that use ANT for building and packaging their applications this can be quite usefull. I needed it quite often for customers that were migrating their J2EE applications from another App Server like JBOSS.
So here it is: You can download it from my website and there is a small template how to use it.
Disclaimer: SAP does not take any support for this.
Here are some instructions for people that do not know ANT:
well the use of the tool is straight forward if you know the ant tool.
Prerequisites:<br /></p><ul><li> you need Java at least 1.4 installed.</li><li> you need to download ANT a java make tool from http://ant.apache.org/</li><li> Install ANT just by unzipping it. You must set JAVA_HOME environment variable to point to the path of your installation directory of java and the ANTHOME variable to the Path of the unzipped ANT.</li></ul>Add both variables to you PATH environment variable.This is for windows: %JAVA_HOME%/bin;%ANTHOME%/bin;<Rest of the PATH><p><br />now ANT should be working, verify by opening a commandline and type </p><p>commandline>ant<property name=”httpport” value=“56000”/>
<property name=”sdmport” value=“56018”/–>
<property name=”server” value=“vmw0004”/>
<property name=”httpport” value=”54100“/>
<property name=”sdmport” value=”54118“/>
<property name=”SDM_HOME” value=”C:/usr/sap/SNE/JC60/SDM“/> <pathelement location=”$/sdmAnt.jar”/>
<pathelement location=”$\program\bin\SDM.jar”/></p><p> <fileset dir=”$\program\lib”>
<include name=”*/.jar”/> host=”$”
Go to that directory with your commandline
commandline>ant -buildfile sdmAnt_build.xml