Announcement Announcement Module
Collapse
No announcement yet.
Unable to generate entities using ant script Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to generate entities using ant script

    Hi i am trying to generate POJO's using ant script but unable to generate it...
    Here is my target of build.xml..

    <target name="hibernate">
    <taskdef name="hibernatetool"
    classname="org.hibernate.tool.ant.HibernateToolTas k"
    classpathref="toolslib" />

    <hibernatetool destdir="dirname" >
    <annotationconfiguration configurationfile="dirname/hibernate.cfg.xml">
    <fileset dir="D:/sameer/proj/IDMS/src">
    <include name="dirname/hibernate.revenge.xml"/>
    </fileset>
    </annotationconfiguration>
    <!-- list exporters here -->
    <hbm2java jdk5="true" ejb3="true" destdir="dirname" >

    </hbm2java>

    </hibernatetool>
    </target>

    I am getting BUILD SUCCESSFUL but when i do a verbose then "Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found." message is displayed with build successful

    Does the above error have any impact?

    Please let me know what needs to be done.

    Thanks
Working...
X