Rev 30 | Blame | 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="*">
<include name="**" />
</fileset>
</ftp>
<ftp server="${server-url}" remotedir="${server-dir}" userid="${server-login}" password="${server-password}">
<fileset dir="war" excludes="*.svn" />
</ftp>
</target>
<target name="build-and-deploy-local" depends="gwt-compile">
<copy todir="${local-deploy-path}">
<fileset dir="war" excludes="*.svn" />
</copy>
</target>
</project>