Rev 196 | Rev 212 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<project name="del" xmlns:artifact="urn:maven-artifact-ant" basedir=".">
<target name="init">
<property file="local.properties" />
<property name="server-url" value="${server-url}" />
<property name="server-login" value="${server-login}" />
<property name="server-password" value="${server-password}" />
<property name="server-dir" value="${server-dir}" />
<property name="gwt-path" value="${gwt-path}" />
</target>
<target name="gwt-compile" depends="init">
<java classname="com.google.gwt.dev.Compiler" fork="true">
<arg line="-logLevel INFO" />
<arg line="-style OBF" />
<arg value="org.tela_botanica.del.Del" />
<classpath>
<path>
<pathelement location="${gwt-path}/gwt-user.jar" />
<pathelement location="${gwt-path}/gwt-dev.jar" />
<pathelement location="${gwt-path}/validation-api-1.0.0.GA-sources.jar" />
<pathelement location="${gwt-path}/validation-api-1.0.0.GA.jar" />
<pathelement location="src" />
<fileset dir="war/WEB-INF/lib">
<include name="**/*.jar" />
<include name="**/*.xml" />
</fileset>
</path>
</classpath>
</java>
</target>
<target name="generate-vocabulary" depends="init">
<java classname="com.google.gwt.i18n.tools.I18NSync" fork="true">
<arg value="org.tela_botanica.del.client.i18n.Vocabulary" />
<classpath>
<path>
<pathelement location="${gwt-path}/gwt-user.jar" />
<pathelement location="${gwt-path}/gwt-dev.jar" />
<pathelement location="src" />
</path>
</classpath>
</java>
</target>
<target name="build-and-deploy-test" depends="gwt-compile">
<ftp action="del" server="${server-url}" remotedir="${server-dir}" userid="${server-login}" password="${server-password}">
<fileset dir="war">
<include name="**" />
</fileset>
</ftp>
<ftp server="${server-url}" remotedir="${server-dir}" userid="${server-login}" password="${server-password}">
<fileset dir="war" excludes="*.svn">
<include name="del.css" />
<include name="del.html" />
</fileset>
</ftp>
<ftp server="${server-url}" remotedir="${server-dir}/del" userid="${server-login}" password="${server-password}">
<fileset dir="war/del" excludes="*.svn" />
</ftp>
<ftp server="${server-url}" remotedir="${server-dir}/img" userid="${server-login}" password="${server-password}">
<fileset dir="war/img" excludes="*.svn" />
</ftp>
<ftp server="${server-url}" remotedir="${server-dir}/WEB-INF" userid="${server-login}" password="${server-password}">
<fileset dir="war/WEB-INF" excludes="*.svn">
<exclude name="lib/*.jar" />
</fileset>
</ftp>
<!--
<scp password="${server-password}" todir="${server-login}@${server-url}:${server-dir}" trust="true" verbose="true">
<fileset dir="war" excludes="*.svn" />
</scp>
-->
</target>
<target name="build-and-deploy-local" depends="gwt-compile">
<copy todir="${local-deploy-path}">
<fileset dir="war" excludes="*.svn" />
</copy>
</target>
</project>