CNET中国旗舰网站

ZDNet China | CNET科技资讯网 | 政府采购 | 行业网站联盟





 
标题: [转贴] Ajax in action 原代码properties.xml错误
mz89757053
元老
Rank: 12Rank: 12Rank: 12



UID 304999
精华 0
积分 100023
帖子 8340
威望 46660
ZD币 9886 元
阅读权限 245
注册 2008-3-10
状态 离线
  楼主
发表于 2008-3-18 10:55  资料  个人空间  短消息  加为好友 
开发者在线

Ajax in action 原代码properties.xml错误

在看Ajax   in   action的随书source,遇到了难题。   
  在第11张的source中有properties.xml文件,如下:   
  <!--   Ajax   in   Action   :   properties   for   ant   build   file   -->   
  <property   name="src"   value="src"/>   
  <property   name="build"   value="web-inf/classes"/>   
  <property   name="lib"   value="web-inf/lib"/>   
  <property   name="dist"   value="dist"/>   
   
  编译器抱错:the   markup   in   the   document   following   the   root   element   must   be   well-formed   
  我认为是xml格式错误,加上<properties>后说缺<target>,这好象就不对了,他是properties文件,而且我怎么加都不对。   
  在build.xml中是在project内用   &properties;   来调用该文件   
  以前都是用*.properties的方式来定义,所以实在没弄懂,导致在build的时候无法定位文档路径   
  还有在build.xml中引用properties.xml也抱错,说无法找到该文件。   
  这两个文件在同一目录下。   
  请赐教!




顶部
热点频道推荐: C/S开发| 数据库| WEB开发| 嵌入式| 项目管理|
 



当前时区 GMT+8, 现在时间是 2008-12-5 15:27

  Powered by Discuz! 5.5.0 © 2001-2007 Comsenz Inc.
Processed in 3.287923 second(s), 3/4 queries

清除 Cookies - 联系我们 - ZDNetChina中文社区 - 无图版