62,620
社区成员
发帖
与我相关
我的任务
分享
<?xml version="1.0"?>
<project name="gwt-languages" default="build gwt-languages.jar" basedir=".">
<property name="srcpath" value="src" />
<property name="docpath" value="doc" />
<property name="path.classes" location="bin" />
<!-- gwt的安装包路径 -->
<property environment="env"/>
<property name="gwt.sdk" value="${env.GWT_HOME}"/>
<fail unless="gwt.sdk" message="You must set the GWT_HOME environment variable to point to your GWT SDK"/>
<property name="path.lib" location="../common-jars/jars/" />
<fail unless="path.lib" message="You must set the COMMON_JARS environment variable to point to your COMMON_JARS"/>
<path id="project.class.path">
<pathelement location="${srcpath}" />
<pathelement location="${gwt.sdk}/gwt-user.jar" />
<fileset dir="${gwt.sdk}" includes="gwt-dev*.jar" />
<!-- Add any additional non-server libs (such as JUnit) -->
<!-- 客户端引用的应用包-->
<fileset dir="${path.lib}" includes="**/*.jar" />
</path>
<target name="build gwt-languages.jar">
<echo message="build gwt-languages.jar " />
<jar destfile="gwt-languages.jar" basedir="./bin" includes="**/*" index="true">
<fileset dir="${srcpath}">
<include name="**/*.java" />
</fileset>
</jar>
<copy todir="${path.lib}" file="gwt-languages.jar" />
<echo message="复制新打的jar包到公共jar包库common-jars" />
</target>
</project>
<jar destfile="gwt-languages.jar" basedir="./bin" includes="**/*" index="true">
<fileset dir="${srcpath}">
<include name="**/*.java" />
</fileset>
</jar>
中间的fileset去掉试试。