ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: build.xml
Date Sat, 04 Jan 2003 14:01:54 GMT
hi,

maybe you should simply create a target "clean", and make your build depend
on "clean"
in clean delete all your class files (there is a <delete> task)

Antoine
----- Original Message -----
From: <seemanto@davlin.co.in>
To: <ant-user@jakarta.apache.org>
Sent: Saturday, January 04, 2003 1:45 PM
Subject: build.xml


> 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>
>


--
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