ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr_pompeii <dr_pomp...@yahoo.com>
Subject rookie - problem with xdoclet 2 - ANT doesnt work!!
Date Tue, 13 Mar 2007 12:20:29 GMT

Hello guys

i have a problem with xdoclet to create the hbm.xml files related with the
composite keys

after see in google it seems that the solution is xdoclet2

well after read the information, like
http://www.hibernate.org/284.html, i try do use the example configuration
and well
i used to work only with ant, and i have the
xdoclet-plugins-1.0.3.tar.gz, the last version since 2005

here my build.xml

[code]
<project name="manoloTest" basedir="." default="hibernate" >
   <property name="xdoclet2.lib.dir" value="${basedir}/MyLib/xdoclet2/lib"/>
       <target name="xdoclet2">
           <mkdir dir="${basedir}/target/xdoclet2/persistence"/>
           <path id="xdoclet2.task.classpath">
              <!-- Add the xdoclet2 plugins jar here -->
               <pathelement
location="${xdoclet2.lib.dir}/../plugins/xdoclet-plugin-hibernate-1.0.jar"/>
              <!--    <pathelement location="${xdoclet2.lib.dir}/"/>           
-->
              <pathelement
location="${xdoclet2.lib.dir}/xdoclet-2.0.4.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/generama-1.2.1.jar"/>              
              <pathelement
location="${xdoclet2.lib.dir}/nanocontainer-ant-1.0-beta-3.jar"/>              
              <pathelement
location="${xdoclet2.lib.dir}/nanocontainer-1.0-beta-3.jar"/>              
              <pathelement
location="${xdoclet2.lib.dir}/picocontainer-1.0.jar"/>              
              <pathelement
location="${xdoclet2.lib.dir}/qdox-20051211.114207.jar"/>              
              <pathelement location="${xdoclet2.lib.dir}/velocity-1.4.jar"/>       
      
              <pathelement
location="${xdoclet2.lib.dir}/commons-jelly-20050813.225330.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/commons-jelly-tags-define-1.0.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/commons-jelly-tags-jsl-1.0.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/commons-jelly-tags-xml-20050823.222913.jar"/>
              
              <pathelement
location="${xdoclet2.lib.dir}/commons-beanutils-1.7.0.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/commons-collections-3.1.jar"/>
              <pathelement
location="${xdoclet2.lib.dir}/commons-jexl-1.0.jar"/>
                <pathelement
location="${xdoclet2.lib.dir}/commons-logging-1.0.4.jar"/>
              
            <pathelement location="${xdoclet2.lib.dir}/dom4j-1.6.jar"/>
            <pathelement
location="${xdoclet2.lib.dir}/jaxen-1.1-beta-4.jar"/>
           <pathelement location="${xdoclet2.lib.dir}/saxpath-1.0-FCS.jar"/>
              <pathelement location="${xdoclet2.lib.dir}/xerces-2.4.0.jar"/>
              
           </path>

           <taskdef  name="xdoclet2" 
classname="org.xdoclet.ant.XDocletTask"
                    classpathref="xdoclet2.task.classpath"  />
       </target>
       <target name="hibernate" depends="xdoclet2">
           <xdoclet2>
               <!-- defines the file handled by xdoclet2 -->
               <fileset dir="${basedir}/src">
                   <include name="**/*.java"/>
               </fileset>

               <!-- defines the processing of a plugin -->
               <component
                  
classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin"
                   destdir="${basedir}/src"
                   version="3.0"
                   />
           </xdoclet2>
       </target>   
</project>
[/code]


if i excute ant hibernate , i recieve this error


/WEB-INF/build.xml:37: Class Not Found: Classloader URLs (classpath):

well the line is <xdoclet2>

what is wrong?? , i have references to the all 19 jar files of the lib
distribution and the plugin for hibernate

pls help, my boss have a gun and i need resolve this problem

thanks so much for advanced
-- 
View this message in context: http://www.nabble.com/rookie---problem-with-xdoclet-2---ANT-doesnt-work%21%21-tf3395558.html#a9453169
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message