C:\Documents and
Settings\gdboling\My Documents\projects\JSFLogin\build.xml
|
<?xml version="1.0" ?>
<project name="JSFLogin" default="deploy" basedir=".">
<property name="name" value="jsflogin" />
<property name="src.dir" value="src" />
<property name="classes.dir" value="classes" />
<property name="deploy.name" value="${name}.war"/>
<property name="deploy.dir" value="deploy" />
<property name="lib.dir" value="WEB-INF\lib" />
<property name="jsp.dir" value="pages" />
<property name="resources.dir" value="resources" />
<target name="init">
<mkdir dir="${deploy.dir}" />
<mkdir dir="${classes.dir}" />
<copy todir="${classes.dir}">
<fileset dir="${resources.dir}" />
</copy>
</target>
<target name="compile" depends="init">
<javac srcdir="${src.dir}"
destdir="${classes.dir}">
<classpath>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
<target name="deploy" depends="compile">
<war destfile="${deploy.dir}/${deploy.name}" webxml="WEB-INF/web.xml">
<fileset dir="${jsp.dir}" includes="**\*" />
<lib dir="${lib.dir}" />
<classes dir="${classes.dir}" />
<webinf dir="WEB-INF" includes="**\*.xml" />
</war>
</target>
</project>