ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject build.xml
Date Sat, 04 Jan 2003 12:45:15 GMT

what changes i have to make in the following build.xml to have a 
compilation of all source files, every time i run ant.

<project name="ofsy" default="compileweb" basedir=".">
  <target name="init">
    <property file="../"/>
    <property name="build.compiler" value="classic"/>
    <property name="tomcat.deploy" value="${tomcat.home}/webapps"/>
    <property name="tomcat.conf" value="${tomcat.home}/conf"/>
    <property name="work.webtier" value="${tomcat.deploy}/ofsy"/>

  <target name="prepare" depends="init">
    <mkdir dir="${work.webtier}"/>
    <copy todir="${work.webtier}">
      <fileset dir="web"/>
    <mkdir dir="${work.webtier}/WEB-INF"/>
    <copyfile src="etc/web.xml" dest="${work.webtier}/WEB-INF/web.xml"/>
    <mkdir dir="${work.webtier}/WEB-INF/classes"/>
    <copy todir="${tomcat.conf}/framework">
      <fileset dir="etc/conf"/>

  <target name="compileweb" depends="prepare">
    <javac srcdir="src" destdir="${work.webtier}/WEB-INF/classes"
           debug="on" optimize="off" deprecation="off"/>

  <target name="docweb" depends="compileweb">
    <javadoc packagenames="com.*" sourcepath="src" destdir="doc/api" />



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message