我正在尝试使用ant构建一个java项目。我必须从jar目录的基础目录中排除特定目录。这是代码段。
<target name="jar" depends="wsdl2java,oss.init,oss.request.compile">
<copy todir="${build.lib.dir}">
<fileset dir="${oss.lib.dir}" includes="**/*.*" excludes="**/weblogic.jar"/>
</copy>
<copy todir="${build.conf.dir}">
<fileset dir="${oss.conf.dir}" includes="**/*.*"/>
</copy>
<copy todir="${oss.build.dir}">
<fileset dir="${oss.run.dir}" includes="**/*.*"/>
</copy>
<jar destfile="${oss.build.dir}/osstool2.5.5.jar" basedir="${oss.class.dir}" excludes="**/dms/*">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
<attribute name="Created-By" value="${owner}"/>
<attribute name="Class-Path" value=". lib/antlr-runtime-3.0.1.jar.jar lib/log4j.jar
lib/commons-discovery-0.2.jar lib/commons-logging-1.1.1.jar
lib/spring.jar lib/axis.jar lib/axis-ant.jar lib/jaxrpc-api.jar
lib/webserviceclient.jar lib/webserviceclient+ssl.jar
lib/wlclient.jar lib/wsdl4j-1.5.1.jar lib/wsse.jar lib/ala-castor.jar lib/log4j.jar lib/log4j.jar lib/xercesImpl.jar
lib/ala-nbi-commons-1.3.0.jar lib/ala-nbi-notification-plugins.jar lib/ala-nbi-webservice-client-1.3.0.jar
lib/axis.jar lib/axis-ant.jar lib/dom4j-1.6.1.jar lib/jaxrpc-api.jar lib/webserviceclient.jar lib/webserviceclient+ssl.jar
lib/wlclient.jar lib/wsdl4j-1.5.1.jar lib/wsse.jar lib/commons-logging.jar">
</attribute>
</manifest>
</jar>
</target>
我在这里缺少什么? 提前谢谢。