Subversion Repositories general

Rev

Blame | Last modification | View Log | RSS feed

<project name="SimpleChat" default="deploy" basedir=".">

  <property name="build.compiler" value="jikes"/>

  <property name="src"       location="src"/>
  <property name="classes"   location="classes"/>
  <property name="classpath" value=""/>

  <target name="compile">
    <mkdir dir="${classes}" />

    <javac
      srcdir="${src}"
      destdir="${classes}"
      classpath="${classpath}:${classes}"
      debug="on"
      extdirs="lib:webapp/WEB-INF/lib"
    />
  </target>

  <target name="deploy" depends="compile">
    <copy todir="webapp/WEB-INF/classes">
      <fileset dir="classes"/>
    </copy>

    <copy todir="webapp/WEB-INF/classes">
      <fileset
        dir="${src}"
        includes="**/*.properties"
        excludes="**/*_*.properties"
      />
    </copy>

    <delete>
      <fileset dir="webapp/WEB-INF/classes" includes="**/*_*.properties"/>
    </delete>

    <native2ascii
      encoding="Cp1251"
      src="${src}"
      dest="webapp/WEB-INF/classes"
      includes="**/*_ru.properties"
    />

    <native2ascii
      encoding="ISO8859_1"
      src="${src}"
      dest="webapp/WEB-INF/classes"
      includes="**/*_de.properties"
    />

   <copy todir="webapp/WEB-INF/classes" file="conf/log4j.properties" />
  </target>

  <target name="clean">
    <delete dir="${classes}"/>
    <delete dir="webapp/WEB-INF/classes"/>
  </target>

  <target name="all" depends="clean,deploy" />

</project>