我的build.xml文件内容如下:

smallduzi
02-09-04 2 371

thirdparty/libs/jdbc1.jar
thirdparty/libs/jdbc2.jar
build/main/com/myco/myapp/Servlet.class
src/metadata/myapp.xml
src/html/myapp/index.html
src/jsp/myapp/front.jsp
src/graphics/images/gifs/small/logo.gif
src/graphics/images/gifs/large/logo.gif

then the war file myapp.war created with

build.xml文件:
<war warfile="myapp.war" webxml="src/metadata/myapp.xml">
<fileset dir="src/html/myapp"/>
<fileset dir="src/jsp/myapp"/>
<lib dir="thirdparty/libs">
<exclude name="jdbc1.jar"/>
</lib>
<classes dir="build/main"/>
<zipfileset dir="src/graphics/images/gifs"
prefix="images"/>
</war>

用ant运行提示第一行有错误,为什么

还有ear怎样设置,有没有完整的例子,多谢.

smallduzi
2002-09-04 17:03

错误提示:
file:d:/antexample/cmp-cmr/section2/final/build.xml:1: Config file is not of expected XML type

why10k
2002-09-04 19:42

不知道你写的是什么.如果前面的东东就是你的build.xml的话,编译结果说的很清楚->你的配置文件不是xml文件.