<project name= "BULLETIN_BOARD" default= "tomcat-start" basedir= "." >
<property name= "source.encoding" value= "Windows-31J" />
<property environment= "env" />
<property name= "source.dir" value= "./" />
<property name= "tomcat.home" value= "C://tomcat6.0" />
<property name= "target.dir" value= "${tomcat.home}/webapps/kotaiSystem" />
<property name= "class.dir" value= "${target.dir}/WEB-INF/classes" />
<target name= "prepare" >
<mkdir dir= "${target.dir}" />
<mkdir dir= "${target.dir}/css" />
<mkdir dir= "${target.dir}/js" />
<mkdir dir= "${target.dir}/jsp" />
<mkdir dir= "${target.dir}/WEB-INF" />
<mkdir dir= "${target.dir}/WEB-INF/lib" />
<mkdir dir= "${class.dir}" />
<copy todir= "${target.dir}" >
<fileset dir= "${source.dir}" includes= "index.jsp" />
</copy>
<copy todir= "${target.dir}/css" >
<fileset dir= "${source.dir}/css" />
</copy>
<copy todir= "${target.dir}/js" >
<fileset dir= "${source.dir}/js" />
</copy>
<copy todir= "${target.dir}/jsp" >
<fileset dir= "${source.dir}/jsp" />
</copy>
<copy todir= "${target.dir}/WEB-INF" >
<fileset dir= "${source.dir}/WEB-INF" />
</copy>
<copy todir= "${target.dir}/WEB-INF/lib" >
<fileset dir= "${source.dir}/WEB-INF/lib" />
</copy>
</target>
<target name= "clean" >
<delete dir= "${target.dir}" />
<delete dir= "${tomcat.home}/work" />
</target>
<target name= "compile" depends= "prepare" >
<javac encoding= "${source.encoding}" srcdir= "${source.dir}/WEB-INF/src"
destdir= "${class.dir}"
debug= "on" optimize= "off" deprecation= "off" >
<classpath>
<pathelement path= "${class.dir}" />
<fileset dir= "${source.dir}/WEB-INF/lib" includes= "*.jar" />
</classpath>
</javac>
</target>
</project>