pathelement一般用于指定class目录
fileset是指向文件,一般加上<include name="**/*.jar" />

解决方案 »

  1.   

    仍然疑虑中,
     <classpath>
          <pathelement path="${classpath}"/>
          <pathelement location="lib/helper.jar"/>
        </classpath>The location attribute specifies a single file or directory relative to the project's base directory (or an absolute filename), while the path attribute accepts colon- or semicolon-separated lists of locations.原文是这么解释的,所以我认为是可以的,奇怪ant居然对这个目录和文件的pattern没有详细的说明,
    Apache Ant version 1.7.0 compiled on December 13 2006
    中测试却可以通过,刚测试,回去要看那个不通过的版本是多少,知道详细情况的麻烦指点一下。
      

  2.   

    解释的不是很清楚吗!
    “ant居然对这个目录和文件的pattern没有详细的说明”
    什么意思,能实现就好