xDoclet & Spring

来源:互联网 发布:会计软件哪种好 编辑:程序博客网 时间:2024/05/17 21:45
<?xml version="1.0" encoding="GB18030"?>

<project name="adfTrial" basedir="." default="springMap">
    <property name="src.java" location="JavaSource" />
    <property name="web-inf" location="WebContent/WEB-INF" />
    <path id="classpath.build">
        <fileset dir="WebContent/WEB-INF/lib" />
    </path>

    <target name="springMap">
        <taskdef name="springdoclet"
            classname="xdoclet.modules.spring.SpringDocletTask"
            classpathref="classpath.build" />
        
        <springdoclet destDir="${web-inf}" force="true">
            <fileset dir="${src.java}"/>
            <springxml validatexml="true"/>
        </springdoclet>
    </target>
</project>

需要使用xDoclet web module
原创粉丝点击