<pathid="classpath">
构建文件最经典的classpath,其中id为类路径的名称

<filesetdir="${web.dir}/WEB-INF/lib">
<includename="*.jar"/>
</fileset>
向classpath中加入Web应用程序下的类库

<filesetdir="${tomcat.home}/common/lib">
<includename="servlet*.jar"/>
</fileset>
向classpath中加入tomcat服务器的类库

<pathelementpath="${build.dir}"/>
pathelement是用来加入单一的路径,例子中加入build.dir全个目录。
全个类路径任务的代码如下:
<pathid="classpath">
<filesetdir="${web.dir}/WEB-INF/lib">
<includename="*.jar"/>
</fileset>
<filesetdir="${tomcat.home}/common/lib">
<includename="servlet*.jar"/>
</fileset>
<pathelementpath="${build.dir}"/>
</path>














全个类路径任务的代码如下:








