Here is an small script I wrote to javadoc and create a WAR file from my
classes. Very short and sweet but might give you an idea:
Create a WAR file:
<?xml version="1.0"?>
<project name="buildWAR" default="dist" basedir=".">
<property name="src" value="jsp" />
<property name="build" value="build" />
<property name="dist" value="dist" />
<target name="prepare">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="dist" depends="prepare">
<mkdir dir="${dist}/lib"/>
<jar jarfile="${dist}/lib/buildWAR-${DSTAMP}.jar"
basedir="${src}" />
</target>
</project>
Javadoc (based on the example from the documentation):
<?xml version="1.0"?>
<project name="buildWAR" default="dist" basedir=".">
<property name="src" value="jsp" />
<property name="build" value="build" />
<target name="prepare">
<tstamp/>
<mkdir dir="docs/api"/>
</target>
<target name="dist" depends="prepare">
<javadoc packagenames="com.home.product.*"
sourcepath="source"
destdir="docs/api"
author="true"
version="true"
use="true"
windowtitle="Home Tag Libraries"
doctitle="<h1>Tag Libraries</h1>"
bottom="<i>Copyright © 2000 Home
Technology. All Rights Reserved.</i>"
stylesheetfile="slaManage.css">
<link
href="http://developer.java.sun.com/developer/products/xml/docs/api/"/>
<classpath>
<pathelement path="D:\progra~1\jdk1.3\lib"/>
</classpath>
</javadoc>
</target>
</project>
Anthony Ikeda,
Web Application Developer,
Proxima Technology,
Level 13,
181 Miller Street,
North Sydney
Australia
PH: +612-9458-1718
Mob: 041 624 5143
> -----Original Message-----
> From: Saket Raizada [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 10 January 2001 6:42 AM
> To: '[EMAIL PROTECTED]'
> Subject: new ANT on the hill
>
>
> hi ,
> I am just wetting my feet in the world of Ant
> Can somebody provide me with a simple XML file which shows
> ANT in Action and
> simultaneouly utilizes most of the commonly used commands to compile a
> project.
> It would be lovely if it has some basic documentation.
> thanks in advance
> -Saket
>