my xdoclet could not generate some file ,here is the build.xml ,I think
somewhere of the red color is error
,help me quickly
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="XDoclet Examples" default="jar" basedir=".">
<property name="xdoclet.root.dir" value="${basedir}/.."/>
<property file="${xdoclet.root.dir}/build.properties"/>
<property file="build-dist.properties"/>
<property name="ejb.prefix" value="blah"/>
<!-- =================================================================== -->
<!-- Define the class path -->
<!-- =================================================================== -->
<path id="samples.class.path">
<fileset dir="${doclet.lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${j2ee.lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${spring.lib.dir}">
<include name="*.jar"/>
</fileset>
<fileset dir="${hibernate.lib.dir}">
<include name="*.jar"/>
</fileset>
</path>
<!-- =================================================================== -->
<!-- Initialise -->
<!-- =================================================================== -->
<target name="init">
<tstamp>
<format property="TODAY" pattern="d-MM-yy"/>
</tstamp>
<taskdef
name="xdoclet"
classname="xdoclet.DocletTask"
classpathref="samples.class.path"
/>
<taskdef
name="pojoejbdoclet"
classname="xdoclet.modules.pojoejb.EjbDocletTask"
classpathref="samples.class.path"
/>
</target>
<!-- =================================================================== -->
<!-- Prepares the directory structure -->
<!-- =================================================================== -->
<target name="prepare" depends="init">
<mkdir dir="${samples.classes.dir}"/>
<mkdir dir="${samples.gen-src.dir}"/>
<mkdir dir="${samples.meta-inf.dir}"/>
</target>
<!-- sample package summary -->
<target name="summary" depends="init">
<xdoclet destdir="${samples.gen-src.dir}">
<fileset dir="${samples.src.dir}" includes="**/*.java" />
<template templateFile="summary.xdt"
destinationfile="summary.txt" />
</xdoclet>
</target>
<!-- =================================================================== -->
<!-- Invoke XDoclet's ejbdoclet -->
<!-- =================================================================== -->
<target name="ejbdoclet" depends="prepare">
<pojoejbdoclet
destdir="${samples.gen-src.dir}"
mergedir="{samples.merge.dir}"
excludedtags="@version,@author,@todo"
addedtags="@xdoclet-generated at ${TODAY},@copyright The XDoclet
Team,@author XDoclet,@version ${version}"
ejbspec="2.0"
force="${samples.xdoclet.force}"
verbose="false"
>
<fileset dir="${samples.src.dir}">
<include name="**/business/impl/*.java"/>
</fileset>
<packageSubstitution packages="business.impl"
substituteWith="service.ejb"/>
<pojoremoteinterface/>
<pojohomeinterface/>
<pojosession/>
<pojodeploymentdescriptor
destdir="${samples.meta-inf.dir}"
validatexml="true"
mergedir="${samples.merge.dir}"
description=""
>
</pojodeploymentdescriptor>
<weblogic
version="7.0"
xmlencoding="UTF-8"
destdir="${samples.meta-inf.dir}"
validatexml="false"
datasource="java:/samplesDataSource"
mergedir="${samples.merge.dir}"
persistence="weblogic"
/>
</pojoejbdoclet>
</target>
<!-- =================================================================== -->
<!-- Compiles all the classes -->
<!-- =================================================================== -->
<target name="compile" depends="ejbdoclet">
<javac
destdir="${samples.classes.dir}"
classpathref="samples.class.path"
includes="com/dao/*.java,com/dao/hibernate/*.java,
com/service/ejb/*.java,com/domain/*.java,
com/util/*.java,com/exception/*.java"
debug="on"
deprecation="on"
optimize="off"
>
<src path="${samples.src.dir}"/>
<src path="${samples.gen-src.dir}"/>
</javac>
</target>
<!-- =================================================================== -->
<!-- Main -->
<!-- =================================================================== -->
<target name="jar" depends="compile">
<copy todir="${samples.classes.dir}">
<fileset dir="${samples.src.dir}">
<include name="**/*.xml" />
<include name="*.properties" />
</fileset>
</copy>
<jar jarfile="${module.jar.file}">
<fileset dir="${samples.classes.dir}">
<include name="**/*.class"/>
<include name="*.properties"/>
<include name="**/*.xml"/>
</fileset>
</jar>
</target>
<!-- =================================================================== -->
<!-- Clean -->
<!-- =================================================================== -->
<target name="clean">
<delete dir="${samples.dist.dir}"/>
</target>
</project>
朱永生
2007-03-25
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user