gwt执行ajax,使用GWT开发AJAX应用程序

<?xml version="1.0" encoding="UTF-8"?>

<project name="gwtproj" default="all">

<property file="gwtproj.properties"/>

<!—工程的顶级目录与ant文件存在的位置-->

<dirname property="module.gwtproj.basedir" file="${ant.file}"/>

<!--目录在顶级目录内的./classes-->

<property name="gwtproj.output.dir" value=

"${module.gwtproj.basedir}/classes"/>

<!--这个目标调用MyForm-compile以创建./www目录下的所有的内容-->

<target name="gwt-compile" depends=

"compile.production.classes"

description="use gwt's compiler">

<delete>

<fileset dir="${web.deploy.location}" includes="**/*"/>

</delete>

<exec executable=

"${module.gwtproj.basedir}/MyForm-compile"

failοnerrοr="true"/>

<copy todir="${web.deploy.location}">

<fileset dir=

"${module.gwtproj.basedir}/www">

</fileset>

</copy>

</target>

<target name="compile.production.classes" description=

"Compile the gwtproj production classes">

<mkdir dir="${gwtproj.output.dir}"/>

<javac destdir="${gwtproj.output.dir}" debug=

"on" failοnerrοr="true" nowarn=

"off" memoryMaximumSize="128m" fork=

"true" executable="${module.jdk.home.gwtproj}/bin/javac">

<classpath refid="gwtproj.module.classpath"/>

<src refid="gwtproj.module.sourcepath"/>

</javac>

</target>

<!--把Java servlet类复制到web应用程序-->

<target name="deploy.classes" depends="gwt-compile"

description="copy classes to web directory">

<copy todir="${web.classes.location}">

<fileset dir="${gwtproj.output.dir}">

</fileset>

</copy>

</target>

<target name="all" depends="deploy.classes"

description="build all"/>

</project>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值