Hi--

Has anyone been able to integrate xdoclet ebjdoclet with Eclipse and its ant
installation (eclipse/plugins/org.apache.ant_1.5.2)?  Eclipse ant will
recognize the packageSubstitution subtask, but all others (commented out in
the antfile below) generate the following error:

BUILD FAILED: file:F:/Personal/Java/proj/hbrm/build.xml:65: Can't create a
dataobject element under ejbdoclet. Make sure the jar file containing the
corresponding subtask class is on the classpath specified in the <taskdef>
that defined {2}.

Here is the current antfile:

<?xml version="1.0"?>
<project name="xdoclet" default="xdoclet-generate" basedir=".">

   <property file=".ant.properties" />
   <property file="${user.home}/.ant.properties" />
   <property name="Name" value="Template"/>
   <property name="version" value="1.1"/>
   
   <property name="src.dir" value="${basedir}/src"/>
   <property name="src.homebrew.dir" value="${src.dir}/homebrew"/>
   <property name="src.ejb.dir" value="${src.homebrew.dir}/ejb"/>
   <property name="src.xdoclet.dir" value="${src.ejb.dir}/xdoclet"/>
   <property name="bin.dir" value="${basedir}/bin"/>

   <target name="init">
      <echo message="build.compiler = ${build.compiler}"/>
      <echo message="user.home = ${user.home}"/>
      <echo message="java.home = ${java.home}"/>
      <echo message="ant.home = ${ant.home}"/>
      <echo message="jboss.home = ${jboss.home}"/>
      <echo message="xdoclet.home = ${xdoclet.home}"/>
      <echo message="java.class.path = ${java.class.path}"/>
      <echo message="src.dir = ${src.dir}"/>
      <echo message="src.homebrew.dir = ${src.homebrew.dir}"/>
      <echo message="src.ejb.dir = ${src.ejb.dir}"/>
      <echo message="src.xdoclet.dir = ${src.ejb.dir}/xdoclet"/>
      <echo message=""/>
      
      <available property="jdk1.3+" classname="java.lang.StrictMath" />
   </target>
   
        <path id="xdoclet.class.path">
                <fileset dir="${xdoclet.home}/lib">
                        <include name="*.jar"/>
                </fileset>
                
                <fileset dir="${xdoclet.home}/target/lib">
                        <include name="*.jar"/>
                </fileset>
        </path>
   
   <!-- ===================================================================
-->
   <!-- Generates the necessary EJB classes and deployment descriptors
-->
   <!-- ===================================================================
-->
        <target name="xdoclet-generate" depends="init">
                <taskdef
                        name="ejbdoclet"
                        classname="xdoclet.modules.ejb.EjbDocletTask"
                        classpathref="xdoclet.class.path"/>
                                          
                <ejbdoclet
                        destDir="${src.dir}"
                        excludedTags="@version,@author"
                        addedTags="true"
                        ejbSpec="${ejb.version}"
                        mergeDir="${src.resources.dir}/xdoclet"
                        force="${xdoclet.force}"
                        verbose="true">
                         
                        <fileset dir="${src.dir}">
                                <include name="**/*Bean.java"/>
                        </fileset>
                         
                        <packageSubstitution packages="session,entity"
substituteWith="interfaces"/>
                        <dataobject/>
                        <!-- <localinterface/>
                        <localhomeinterface/>
                        <remoteinterface/>
                        <homeinterface/>
                        <entitypk/>
                        <entitybmp/>
                        <entitycmp/>
                        <deploymentdescriptor
destdir="${bin.dir}/META-INF"/>
                        
                        <jboss version="${jboss.version}"
                                xmlencoding="UTF-8"
                                typemapping="${type.mapping}"
                                datasource="${datasource.name}"
                                destdir="${bin.dir}/META-INF"
                                validateXml="false"/> -->
                </ejbdoclet>
        </target>
</project>

This antfile processed normally from the command line, where I use ant
1.5.3-1.  Ths antfile specifies the ejbdoclet classpath to all jars in my
CVS build of xdoclet 1.2b3 in ${xdoclet.home} lib and target/lib
directories.

If this post seems to be fitting the wrong group, I apologize.  However, I
figured maybe someone has made it work using Eclipse.

Thanks!
Matt Hanson


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to