免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3233 | 回复: 0
打印 上一主题 下一主题

ant编译nutch的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-29 12:14 |只看该作者 |倒序浏览
今早用ant 1.5.1编译nutch,刚执行就报错退出,提示说:

  1. /nutch-0.7.2/nutch-0.7.2/build.xml:20: Unexpected element "dirname"
复制代码

build.xml如下:

  1. <?xml version="1.0"?>

  2. <project name="Nutch" default="compile">

  3.   <!-- Load all the default properties, and any the user wants    -->
  4.   <!-- to contribute (without having to type -D or edit this file -->
  5.   <property file="${user.home}/build.properties" />
  6.   <property file="${basedir}/build.properties" />
  7.   <property file="${basedir}/default.properties" />

  8.   <!-- the normal classpath -->
  9.   <path id="classpath">
  10.     <pathelement location="${build.classes}"/>
  11.     <fileset dir="${lib.dir}">
  12.       <include name="*.jar" />
  13.     </fileset>
  14.   </path>

  15.   <!-- the unit test classpath -->
  16. <dirname property="plugins.classpath.dir" file="${build.plugins}"/>

  17.   <path id="test.classpath">
  18.     <pathelement location="${test.build.classes}" />
  19.     <pathelement location="${conf.dir}"/>
  20.     <pathelement location="${test.src.dir}"/>
  21.     <pathelement location="${plugins.classpath.dir}"/>
  22.     <path refid="classpath"/>
  23.   </path>

  24.   <!-- xmlcatalog definition for xslt task -->
  25.   <xmlcatalog id="docDTDs">
  26.      <dtd publicId="-//W3C//DTD XHTML 1.0 Transitional//EN"            
  27.           location="${xmlcatalog.dir}/xhtml1-transitional.dtd"/>
  28.   </xmlcatalog>

  29.   <!-- ====================================================== -->
  30.   <!-- Stuff needed by all targets                            -->
  31.   <!-- ====================================================== -->
  32.   <target name="init">
  33.     <mkdir dir="${build.dir}"/>
  34.     <mkdir dir="${build.classes}"/>

  35.     <mkdir dir="${test.build.dir}"/>
  36.     <mkdir dir="${test.build.classes}"/>

  37.     <touch datetime="01/25/1971 2:00 pm">
  38.       <fileset dir="${conf.dir}" includes="**/*.template"/>
  39.     </touch>

  40.     <copy todir="${conf.dir}" verbose="true">
  41.       <fileset dir="${conf.dir}" includes="**/*.template"/>
  42.       <mapper type="glob" from="*.template" to="*"/>
  43.     </copy>


  44.   </target>
复制代码

我查了一些build.XML的格式,但是都没有提到dirname这个变量。
望高手指点一下。谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP