<project name="Page" default="deploy">
    <property name="gwt.sdk" location="C:/DivJava/gwt-2.5.0"/>
    <path id="gwt.class.path">
        <pathelement location="${gwt.sdk}/gwt-user.jar"/>
        <pathelement location="${gwt.sdk}/gwt-dev.jar"/>
    </path>
    <target name="javac">
        <javac srcdir="src" destdir="bin" classpathref="gwt.class.path">
            <compilerarg value="-Xlint"/>
        </javac>
    </target>
    <target name="gwtc" depends="javac">
        <java fork="true" classname="com.google.gwt.dev.Compiler">
            <classpath>
                <pathelement location="src"/>
                <path refid="gwt.class.path"/>
                <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA.jar" />
                <pathelement location="${gwt.sdk}/validation-api-1.0.0.GA-sources.jar" />
            </classpath>
            <jvmarg value="-Xmx256M"/>
            <jvmarg value="-Dgwt.persistentunitcache=false"/>
            <arg value="test.Page"/>
        </java>
        <copy file="Page.html" todir="war"/>
        <copy file="Page.css" todir="war"/>
    </target>
    <target name="war" depends="gwtc">
        <war warfile="clisrv.war" webxml="descrip/web.xml">
            <classes dir="bin"/>
            <lib dir="${gwt.sdk}" casesensitive="yes">
                <include name="gwt-servlet*.jar"/>
            </lib>
            <fileset dir="war"/>
        </war>
    </target>
    <target name="deploy" depends="gwtc">
        <copy file="clisrv.war" todir="/Apache/apache-tomcat-7.0.14/webapps"/>
    </target>
    <target name="zip" depends="gwtc">
        <zip destfile="clisrv.zip">
             <zipfileset prefix="src" dir="src"/>
             <zipfileset prefix="descrip" dir="descrip"/>
             <zipfileset dir="." includes="*.html,*.css,*.xml,*.war"/>
        </zip>
    </target>
</project>
