请教xdoclet高手

<!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --> <? xml version="1.0" encoding="UTF-8" ?>
< project  name ="xdoclet-hibernate-zfv"  default ="init"  basedir ="." >
    
< property  name ="project.src"  value ="./src"   />
    
< property  name ="project.lib"  value ="D:/workspace/xcomr/web/WEB-INF/lib"   />
    
< property  name ="pojo.package"  value ="org/roadway/wisp/zd/po"   />
    
< property  name ="xdoclet.root"  value ="E:/user_hvp"   />
    
< property  name ="xdoclet.lib"  value ="${xdoclet.root}/xdoclet-1.2.3"   />
    
< property  name ="endtags"  value ="@xdoclet-generated at ${TODAY}"   />
    
< path  id ="classpath" >
        
< fileset  dir ="${xdoclet.lib}" >
            
< include  name ="*.jar"   />
        
</ fileset >
        
< fileset  dir ="${project.lib}" >
            
< include  name ="*.jar"   />
        
</ fileset >
    
</ path >
    
< target  name ="init" >
        
< taskdef  name ="hibernatedoclet"  classname ="xdoclet.modules.hibernate.HibernateDocletTask"  classpathref ="classpath"   />
    
</ target >
    
< target  name ="generate-mapping"  depends ="init" >
        
< hibernatedoclet  destdir ="${project.src}"  excludedtags ="@version,@author,@todo,@see"  addedtags ="${endtags}"  force ="false"  verbose ="true" >
            
< fileset  dir ="${project.src}" >
                
< include  name ="${pojo.package}/Person.java"   />
            
</ fileset >
            
< hibernate  version ="3.0"  xmlencoding ="gb2312"   />
        
</ hibernatedoclet >
    
</ target >
    
< target  name ="generate-schema-mysql"  depends ="init" >
        
< taskdef  name ="hibernatedoclet"  classname ="xdoclet.modules.hibernate.HibernateDocletTask"  classpathref ="classpath"   />
        
< taskdef  name ="schemaexport"  classname ="org.hibernate.tool.hbm2ddl.SchemaExportTask"  classpathref ="classpath"   />
        
< property  name ="hibernate.dialect"  value ="org.hibernate.dialect.MySQLInnoDBDialect"   />
        
< property  name ="hibernate.format_sql"  value ="true"   />
        
< property  name ="hibernate.use_sql_comments"  value ="true"   />
        
< schemaexport  quiet ="no"  text ="yes"  drop ="no"  delimiter =";"  output ="${project.src}/${pojo.package}/table-mysql-schema.sql" >
            
< fileset  dir ="${project.src}" >
                
< include  name ="${pojo.package}/*.hbm.xml"   />
            
</ fileset >
        
</ schemaexport >
    
</ target >
</ project >

问题:上面的 generate-mappin和 generate-schema-mysql单独运行,能正确生成文件,但depends="init"之后,不能生成文件.请高手指教.

你可能感兴趣的:(sql,Hibernate,xml,mysql,Web)