i an using eclipse and i have an ant build file i'm using to reverse engineer a schema. i have the ant build set up as an External Tool in eclipse, with no additional configuration beyond the default. ultimately, the hibernatetool task successfully reverse engineers the schema i'm interested in (which indicates that i'm doing *something* right), but i can't for the life of me get hibernatetool to log output. no matter what i do, i always get this error:
Code:
Buildfile: C:\Documents and Settings\km623\Desktop\antreveng.xml
[hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
[hibernatetool] log4j:WARN Please initialize the log4j system properly.
it's driving me up a wall. i am just trying to use the standard "log4j.properties" file included with the hibernate tools distribution, and no matter where i put it, it gets ignored. i've searched the forums here pretty thoroughly (i think) and the solutions seems to be "put log4j.properties in the classpath", so i explicity specified a classpath for it in my build and it still doesn't work.
Code:
<project>
<path id="hibernate-tools">
<fileset dir="C:\Program Files\eclipse-SDK-3.1.1-win32\eclipse\plugins\org.hibernate.eclipse_3.1.0.beta2\lib\tools">
<include name="*.jar" />
</fileset>
<fileset dir="C:\Program Files\eclipse-SDK-3.1.1-win32\eclipse\plugins\org.hibernate.eclipse_3.1.0.beta2\lib\hibernate">
<include name="*.jar" />
</fileset>
<fileset dir="C:\Program Files\Java\Oracle 10g 10.2.0.1.0 JDBC">
<include name="*.jar" />
</fileset>
</path>
<path id="hibernate-log4j-config">
<pathelement location="C:\Documents and Settings\km623\eclipse\workspace\testhibernate\src\log4j.properties"/>
</path>
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask">
<classpath refid="hibernate-tools"/>
</taskdef>
<hibernatetool destdir="C:\Documents and Settings\km623\Desktop\testantreveng\">
<classpath refid="hibernate-log4j-config"/>
<jdbcconfiguration configurationfile="C:\Documents and Settings\km623\eclipse\workspace\testhibernate\src\hibernate.cfg.xml"/>
<hbm2java ejb3="true" />
<hbm2hbmxml/>
</hibernatetool>
</project>
any suggestions? disclaimer: i am not an ant guru. plus, i'm sure i'm just doing something really dumb, which is even more frustrating, ha ha...