宇而靜...

Simple Ant Example 본문

Development/Java

Simple Ant Example

우™ 2008. 4. 30. 18:30

<?xml version="1.0"?>

<project name="MDMS" default="compile" basedir="D:/Business/Project/MDMS/WEB-INF" >
 <property name="src.dir" value="${basedir}/src" />
 <property name="classes.dir" value="${basedir}/classes/" />
 <property name="jar.dir" value="D:\Business\Project\MDMS\WEB-INF\lib" />


 <target name="compile" depends="init, clean">
  <mkdir  dir="${classes.dir}/classes"/>
  <javac srcdir="${src.dir}" destdir="${classes.dir}" classpath="${jar.dir}/servlet-api.jar;
                         ${jar.dir}/commons-logging-api-1.1.1.jar;
                         ${jar.dir}/cos.jar"/>
 </target>


 <target name="init" >
  <echo message="--------- Building MDMS Project ---------"/>
  <echo message="----- Ant Script created by sungwoo -----"/>
  <echo message="-----------------------------------------"/>

 </target>


 <target name="clean" description="Delete old build and dist directories">
  <delete dir="${classes.dir}/"/>
 </target>


</project>