<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 line="-war"/>
            <arg value="dest"/>
            <arg line="-deploy"/>
            <arg value="notused"/>
            <arg value="test.Page"/>
        </java>
        <copy file="Page.html" todir="dest"/>
        <copy file="Page.css" todir="dest"/>
        <delete dir="notused"/>
    </target>
    <target name="deploy" depends="gwtc">
        <copy todir="/WWW/PHP">
            <fileset dir="dest"/>
        </copy>
    </target>
    <target name="zip" depends="gwtc">
        <zip destfile="clionly.zip">
             <zipfileset prefix="src" dir="src"/>
             <zipfileset dir="." includes="*.html,*.css,*.xml"/>
        </zip>
    </target>
</project>
