ant-user mailing list archives

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

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="../os.properties"/>
    <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>

  <target name="prepare" depends="init">
    <mkdir dir="${work.webtier}"/>
    <copy todir="${work.webtier}">
      <fileset dir="web"/>
    </copy>
    <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"/>
    </copy>
  </target>

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

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

</project>

 


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message