Hi Markus,
here an example from our side:
Code:
<project name="default" default="build">
<description>build</description>
FIRST STEP VARIABLES WILL BE DEFINED
<property name="dist" location="../dist"/>
<property name="weblib" location="../webcontent/WEB-INF/lib"/>
<!-- if bcommjni is not in same workspace as webterminal then you have to change path -->
<property name="bcommjni" location="../../bcommjni" />
LAST STEP NEW FILE WILL BE CREATED
<target name="build" description="build" depends="clean">
<mkdir dir="${dist}"/>
<!-- copy rmiserver.jar if doesnt exist-->
<copy file="${bcommjni}/rmiserver.jar" todir="${weblib}">
</copy>
<jar destfile="${dist}/NAME.war">
<fileset dir="../webcontent">
<include name="**/**"/>
<exclude name="**/**.java"/>
</fileset>
</jar>
</target>
SECOUND STEP FURTHER FILE WILL BE DELETED
<target name="clean" depends="">
<!-- distverzeichnis löschen-->
<delete quiet="yes">
<fileset dir="${dist}"/>
</delete>
</target>
</project>
hope you understand this code
the most things are self-explanatory.
under eclipse create an ant-file (.xml) and you can run it as "ANT BUILD".
regards