max wrote:
if you just edit or create a org.hibernate.eclipse/hibernate-log4j.properties then it will work.
Okay - I'm clearly stupid or something.
My build script:
Code:
<path id="hibernate-tools-classpath">
<pathelement location="${lib}/hibernate-tools.jar"/>
<pathelement location="${lib}/velocity-1.4.jar"/>
<pathelement location="${lib}/velocity-tools-generic-1.1.jar"/>
<pathelement location="${lib}/jtidy-r8-21122004.jar"/>
<pathelement location="${lib}/hibernate3.jar"/>
<pathelement location="${lib}/ojdbc14.jar"/>
<pathelement location="${lib}/commons-logging.jar"/>
<pathelement location="${lib}/dom4j-1.6.1.jar"/>
<pathelement location="${lib}/ehcache-1.1.jar"/>
<pathelement location="${lib}/commons-collections-3.0.jar"/>
<pathelement location="${lib}/cglib-nodep-2.1_3.jar"/>
<pathelement location="."/>
</path>
<target name="init">
</target>
<target name="clean">
<delete verbose="true" dir="${publishto}"/>
</target>
<target name="export" >
<echo>Looking for libraries in ${lib}</echo>
<taskdef
name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask">
<classpath>
<path refid="hibernate-tools-classpath"/>
</classpath>
</taskdef>
<hibernatetool destdir="${publishto}">
<classpath>
<path refid="hibernate-tools-classpath"/>
</classpath>
<jdbcconfiguration configurationfile="hibernate.cfg.xml" revengfile="hibernate.reveng.xml" />
<hbm2java jdk5="false" ejb3="false"/>
<hbm2hbmxml/>
<hbm2doc/>
</hibernatetool>
</target>
The jar files are being read correctly as the process actually does run.
The working directory (".") contains:
Code:
build.xml
hibernate.cfg.xml
hibernate.reveng.xml
org/hibernate/eclipse/hibernate-log4j.properties
hibernate-log4j.properties looks like:
Code:
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d [%t] %-5p %c - %m\n
log4j.rootCategory=DEBUG,console
log4j.category.org.hibernate=DEBUG, console
log4j.additivity.org.hibernate=false
I'm still simply not able to control the output of the logging.
(Which I need to be able to do to explain why certain database types aren't being converted to Java types as expected).