[hibernate-commits] Hibernate SVN: r15026 - in entitymanager/trunk: doc/reference and 5 other directories.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Aug 11 05:39:54 EDT 2008


Author: hardy.ferentschik
Date: 2008-08-11 05:39:53 -0400 (Mon, 11 Aug 2008)
New Revision: 15026

Added:
   entitymanager/trunk/lib/build/ant-contrib-1.0b2.jar
   entitymanager/trunk/src/filters/
   entitymanager/trunk/src/filters/hsqldb.filter
   entitymanager/trunk/src/filters/mysql.filter
   entitymanager/trunk/src/test-resources/hibernate.properties
   entitymanager/trunk/src/test-resources/log4j.properties
Removed:
   entitymanager/trunk/src/test/hibernate.properties
   entitymanager/trunk/src/test/log4j.properties
Modified:
   entitymanager/trunk/build.xml
   entitymanager/trunk/common-build.xml
   entitymanager/trunk/doc/reference/build.xml
Log:
* Refactored the build files and updated common-build.xml. Also introduced the new ant extension ant-contrib.
* Now the build can run against multiple databases using filters.

Modified: entitymanager/trunk/build.xml
===================================================================
--- entitymanager/trunk/build.xml	2008-08-11 09:14:39 UTC (rev 15025)
+++ entitymanager/trunk/build.xml	2008-08-11 09:39:53 UTC (rev 15026)
@@ -216,75 +216,99 @@
 		</javac>
 	</target>
 	
-	<target name="junit" depends="compiletest,test-resources">
-		<mkdir dir="${testreports.dir}"/>
-		<mkdir dir="${classes.dir}/META-INF/services"/>
-		<copy todir="${classes.dir}">
-			<fileset dir="${resources.dir}">
-				<include name="**/*.*"/>
-			</fileset>
-		</copy>
-		<junit fork="once" printsummary="yes" haltonfailure="yes">
-			<classpath>
-				<fileset dir="${jdbc.dir}">
-					<include name="**/*.jar"/>
-					<include name="**/*.zip"/>
-				</fileset>
-				<dirset dir="${build.testresources.dir}">
-					<include name="**/*.jar"/>
-					<include name="**/*.par"/>
-				</dirset>
-				
-				<fileset dir="${build.testresources.dir}">
-					<include name="**/*.jar"/>
-					<include name="**/*.par"/>
-				</fileset>
-				<path refid="junit.classpath"/>
-				<!-- pathelement path="${classes.dir}"/ -->
-				<dirset dir="${classes.dir}">
-					<exclude name="**/pack/**.*"/>
-				</dirset>
-				
-				<!-- pathelement path="build/test.par"/ -->
-				<pathelement path="${src.dir}"/>
-				<!-- pick up properties from here -->
-				<pathelement path="${test.dir}"/>
-				<!-- pick up mappings from here -->
-			</classpath>
-			<formatter type="plain"/>
-			<formatter type="xml"/>
-			<batchtest fork="yes" todir="${testreports.dir}" haltonfailure="no">
-				<fileset dir="${classes.dir}">
-					<include name="**/*Test.class"/>
-				</fileset>
-			</batchtest>
-		</junit>
+	<target name="junit" depends="compiletest,test-resources">	
+		<for list="${targetdb}" param="db">
+			<sequential>
+				<antcall target="common-build.test-resources">
+					<param name="db" value="@{db}"/>
+				</antcall>
+				<mkdir dir="${testreports.dir}/@{db}"/>
+				<mkdir dir="${classes.dir}/META-INF/services"/>
+				<copy todir="${classes.dir}">
+					<fileset dir="${resources.dir}">
+						<include name="**/*.*"/>
+					</fileset>
+				</copy>
+				<echo>Running against db: @{db}</echo>
+				<junit fork="once" printsummary="yes" haltonfailure="yes">
+					<classpath>
+						<fileset dir="${jdbc.dir}">
+							<include name="**/*.jar"/>
+							<include name="**/*.zip"/>
+						</fileset>
+						<dirset dir="${build.testresources.dir}">
+							<include name="**/*.jar"/>
+							<include name="**/*.par"/>
+						</dirset>				
+						<fileset dir="${build.testresources.dir}">
+							<include name="**/*.jar"/>
+							<include name="**/*.par"/>
+						</fileset>
+						<path refid="junit.classpath"/>
+						<!-- pathelement path="${classes.dir}"/ -->
+						<dirset dir="${classes.dir}">
+							<exclude name="**/pack/**.*"/>
+						</dirset>
+						<!-- pathelement path="build/test.par"/ -->
+						<pathelement path="${src.dir}"/>
+						<!-- pick up properties from here -->
+						<pathelement path="${test.dir}"/>
+						<!-- pick up mappings from here -->
+					</classpath>
+					<formatter type="plain"/>
+					<formatter type="xml"/>
+					<batchtest fork="yes" todir="${testreports.dir}/@{db}" haltonfailure="no">
+						<fileset dir="${classes.dir}">
+							<include name="**/*Test.class"/>
+						</fileset>
+					</batchtest>
+				</junit>
+			</sequential>
+		</for>		
 	</target>
 	
 	<!-- Run a single unit test. -->
 	<target name="junitsingle" depends="compiletest"
 		description="Run a single test suite (requires testname and jdbc.driver properties)">
-		<mkdir dir="${testreports.dir}"/>
-		<junit printsummary="yes" fork="yes" haltonfailure="yes">
-			<classpath>
-				<fileset dir="${jdbc.dir}">
-					<include name="**/*.jar"/>
-					<include name="**/*.zip"/>
-				</fileset>
-				<path refid="lib.class.path"/>
-				<pathelement path="build/test.par"/>
-				<pathelement
-					path="target/hibernate-entitymanager/hibernate-entitymanager.jar"/>
-				<pathelement path="${src.dir}"/>
-				<!-- pick up properties from here -->
-				<pathelement path="${test.dir}"/>
-				<!-- pick up mappings from here -->
-			</classpath>
-			<formatter type="plain"/>
-			<formatter type="xml"/>
-			<test fork="yes" todir="${testreports.dir}" haltonfailure="no"
-				name="${testname}"/>
-		</junit>
+		<for list="${targetdb}" param="db">
+			<sequential>
+				<antcall target="test-resources">
+					<param name="db" value="@{db}"/>
+				</antcall>
+				<mkdir dir="${testreports.dir}/@{db}"/>
+				<echo>Running against db: @{db}</echo>
+				<junit printsummary="yes" fork="yes" haltonfailure="yes">
+					<classpath>
+						<fileset dir="${jdbc.dir}">
+							<include name="**/*.jar"/>
+							<include name="**/*.zip"/>
+						</fileset>
+						<dirset dir="${build.testresources.dir}">
+							<include name="**/*.jar"/>
+							<include name="**/*.par"/>
+						</dirset>				
+						<fileset dir="${build.testresources.dir}">
+							<include name="**/*.jar"/>
+							<include name="**/*.par"/>
+						</fileset>
+						<path refid="junit.classpath"/>
+						<!-- pathelement path="${classes.dir}"/ -->
+						<dirset dir="${classes.dir}">
+							<exclude name="**/pack/**.*"/>
+						</dirset>
+						<!-- pathelement path="build/test.par"/ -->
+						<pathelement path="${src.dir}"/>
+						<!-- pick up properties from here -->
+						<pathelement path="${test.dir}"/>
+						<!-- pick up mappings from here -->
+					</classpath>
+					<formatter type="plain"/>
+					<formatter type="xml"/>
+					<test fork="yes" todir="${testreports.dir}/@{db}" haltonfailure="no"
+						name="${testname}"/>
+				</junit>
+			</sequential>
+		</for>		
 	</target>
 	
 	<target name="jar" depends="compile"
@@ -313,11 +337,7 @@
 			resolver="local" pubrevision="latest" pubdate="${now}"
 			status="integration"/>
 	</target>
-	
-	<!-- target name="javadoc" description="Compile the Javadoc API documentation to dist dir">
-	<echo>Skipping java doc since ant's javadoc task cannot handle an alternative javadoc</echo>        	
-	</target -->
-	
+		
 	<target name="jpa-javadoc" if="jpa-present">
 		<mkdir dir="${jpa-javadoc.dir}"/>
 		<ant dir="../jpa-api" target="javadoc" inheritAll="false"/>

Modified: entitymanager/trunk/common-build.xml
===================================================================
--- entitymanager/trunk/common-build.xml	2008-08-11 09:14:39 UTC (rev 15025)
+++ entitymanager/trunk/common-build.xml	2008-08-11 09:39:53 UTC (rev 15026)
@@ -1,277 +1,248 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project name="common-build" default="dist"
-        xmlns:artifact="urn:maven-artifact-ant">
-	<description>Common properties and targets for the HibernateExt project</description>
-
-	<!-- my.basedir property can be used to refer to files/directories relatively to the common-build.xml file -->
-	<dirname property="common-build.basedir" file="${ant.file.common-build}"/>
-
-    <!-- Give user a chance to override without editing this file
-      (and without typing -D each time it compiles it) -->
-    <property file="${common-build.basedir}/build.properties"/>
-    <property file="${user.home}/.ant.properties"/>
-
-    <property name="src.dir" location="src/java"/>
-    <property name="test.dir" location="src/test"/>
-	<property name="lib.dir" location="lib"/>
-    <property name="build.dir" location="build"/>
-    <property name="classes.dir" location="${build.dir}/classes"/>
-    <property name="testclasses.dir" location="${build.dir}/testclasses"/> 
-	<property name="testreports.dir" location="${build.dir}/test-reports"/>  
-	<property name="dist.target.dir" location="target"/>
-    <property name="dist.dir" location="${dist.target.dir}/${name}"/>
-    <property name="instrumenttest.out.dir" value="instrumenttestout"/>
-    <property name="doc.dir" location="doc"/>
-    <property name="doc.api.dir" location="${doc.dir}/api"/>
-    <property name="doc.reference.dir" location="${doc.dir}/reference"/>
-
-    <property name="dist.doc.dir"  location="${dist.dir}/doc"/>
-    <property name="dist.api.dir"  location="${dist.dir}/doc/api"/>
-
-    <property name="dist.src.dir" location="${dist.dir}/src"/>
-	<property name="dist.test.dir" location="${dist.dir}/test"/>
-    <property name="dist.lib.dir" location="${dist.dir}/lib"/>
-    <property name="jar.name" value="${name}"/>
-	<property name="jar.file.name" value="${dist.dir}/${jar.name}.jar"/>
-    <property name="jartest.file.name" value="${dist.dir}/${jar.name}-tests.jar"/>   
-
-    <property name="javadoc" value="http://java.sun.com/j2se/1.4/docs/api"/>
-    <property name="javac.debug" value="on"/>
-    <property name="javac.optimize" value="off"/>
-	<property name="javac.source" value="1.4"/>
-	<property name="javac.target" value="1.4"/>
-
-    <property name="pom.file" value="pom.xml"/>
-    <property name="src.jar" value="${build.dir}/src.jar"/>
-
+<project name="common-build" default="dist"
+	xmlns:artifact="urn:maven-artifact-ant" xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
+	<description>Common properties and targets for the HibernateExt
+		project</description>
+	
+	
+	<!-- my.basedir property can be used to refer to files/directories relatively to the common-build.xml file -->
+	<dirname property="common-build.basedir" file="${ant.file.common-build}"/>
+	
+	<!-- Give user a chance to override without editing this file
+	(and without typing -D each time it compiles it) -->
+	<property file="${common-build.basedir}/build.properties"/>
+	<property file="${user.home}/.ant.properties"/>
+	
+	<property name="src.dir" location="src/java"/>
+	<property name="test.dir" location="src/test"/>
+	<property name="test.resources.dir" location="src/test-resources"/>
+	<property name="filter.dir" location="src/filters"/>
+	<property name="lib.dir" location="lib"/>
+	<property name="build.dir" location="build"/>
+	<property name="classes.dir" location="${build.dir}/classes"/>
+	<property name="testclasses.dir" location="${build.dir}/testclasses"/>
+	<property name="testreports.dir" location="${build.dir}/test-reports"/>
+	<property name="dist.target.dir" location="target"/>
+	<property name="dist.dir" location="${dist.target.dir}/${name}"/>
+	<property name="instrumenttest.out.dir" value="${build.dir}/test-reports/instrument"/>
+	<property name="doc.dir" location="doc"/>
+	<property name="doc.api.dir" location="${doc.dir}/api"/>
+	<property name="doc.reference.dir" location="${doc.dir}/reference"/>
+	
+	<property name="dist.doc.dir" location="${dist.dir}/doc"/>
+	<property name="dist.api.dir" location="${dist.dir}/doc/api"/>
+	
+	<property name="dist.src.dir" location="${dist.dir}/src"/>
+	<property name="dist.test.dir" location="${dist.dir}/test"/>
+	<property name="dist.lib.dir" location="${dist.dir}/lib"/>
+	<property name="jar.name" value="${name}"/>
+	<property name="jar.file.name" value="${dist.dir}/${jar.name}.jar"/>
+	<property name="jartest.file.name" value="${dist.dir}/${jar.name}-tests.jar"/>
+	
+	<property name="javadoc" value="http://java.sun.com/j2se/1.4/docs/api"/>
+	<property name="javac.debug" value="on"/>
+	<property name="javac.optimize" value="off"/>
+	<property name="javac.source" value="1.4"/>
+	<property name="javac.target" value="1.4"/>
+	
+	<property name="pom.file" value="pom.xml"/>
+	<property name="src.jar" value="${build.dir}/src.jar"/>
+	
 	<taskdef name="junit"
 		classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
 		<classpath>
-			<fileset dir="${common-build.basedir}/lib/build"><!-- ${build.lib.dir} fails in reference doc build -->
+			<fileset dir="${common-build.basedir}/lib/build">
+				<!-- ${build.lib.dir} fails in reference doc build -->
 				<include name="junit-*.jar"/>
 				<include name="ant-junit-*.jar"/>
 			</fileset>
 		</classpath>
-	</taskdef>
-
-	<taskdef name="junitreport" classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator">
+	</taskdef>
+	
+	<taskdef name="junitreport"
+		classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator">
 		<classpath>
-			<fileset dir="${common-build.basedir}/lib/build"><!-- ${build.lib.dir} fails in reference doc build -->
+			<fileset dir="${common-build.basedir}/lib/build">
+				<!-- ${build.lib.dir} fails in reference doc build -->
 				<include name="junit-*.jar"/>
 				<include name="ant-junit-*.jar"/>
 			</fileset>
-		</classpath>
-	</taskdef>
-
-    <!-- ivy load -->
-	<property name="ivy.jar.dir" value="${common-build.basedir}/ivy" />
-    <property name="ivy.conf.dir" value="${common-build.basedir}" />
-	<path id="ivy.lib.path">
-		<fileset dir="${ivy.jar.dir}" includes="*.jar"/>
-	</path>
-	<taskdef resource="fr/jayasoft/ivy/ant/antlib.xml"
-			  uri="antlib:fr.jayasoft.ivy.ant" classpathref="ivy.lib.path"/>
-    
-    <!-- maven task load -->
-    <path id="maven-ant-tasks.path" path="${ivy.jar.dir}/maven-ant-tasks.jar" />
-    <typedef resource="org/apache/maven/artifact/ant/antlib.xml"
-             uri="urn:maven-artifact-ant"
-             classpathref="maven-ant-tasks.path" />
-
-    <artifact:remoteRepository id="offline.repository.jboss.org" url="file://${offline.repository.jboss.org}" />
-
-    <path id="lib.class.path">
-		<path refid="lib.moduleclass.path"/>
-		<pathelement path="${clover.jar}"/>
-    </path>
-
-	<!-- overridable in modules -->
-	<path id="lib.moduleclass.path"/>
-
-	<patternset id="support.files">
-        <include name="**/*.jpg"/>
-        <include name="**/*.gif"/>
-        <include name="**/*.dtd"/>
-        <include name="**/*.xsd"/>
-        <include name="**/*.xml"/>
-        <include name="**/*.xslt"/>
-
-        <!-- exclude everything we don't want in the jar -->
-        <exclude name="${build.dir}/**/*"/>
-        <exclude name="${doc.dir}/**/*"/>
-        <exclude name="classes/**/*"/>
-        <exclude name="build.xml"/>
-        <exclude name="**/*.properties"/>
-        <exclude name="**/*.ccf"/>
-        <exclude name="**/*.cfg.xml"/>
-        <exclude name="**/ehcache.xml"/>
-    </patternset>
-
-    <patternset id="source.files">
-        <include name="**/*.java"/>
-        <include name="**/*.properties"/>
-    </patternset>
-
-	<!-- junit paths/filesets -->
-     <fileset dir="${testclasses.dir}" id="junit.batchtestset">
-           <include name="**/*Test.class"/>
-     </fileset>
-     
-     <path id="testsrc.path">
-		<pathelement location="${test.dir}"/>
-	</path>	
-    
-    <!-- Clover -->     
-    <property name="clover.out.dir" value="cloverout"/>
-    <property name="clover.jar" value="${ant.home}/lib/clover.jar"/>
-    <taskdef resource="clovertasks"/>   
-   
-    <path id="junit.classpath">
-           <pathelement path="${classes.dir}"/>
-           <pathelement path="${testclasses.dir}"/>        
-           <path refid="lib.class.path"/>
-           <path refid="junit.moduleclasspath"/>
-           <path location="${clover.jar}"/>
-    </path>
-
-    <!-- Clover tasks -->
-    <target name="with.clover">
-        <clover-setup initString="clover_coverage.db"/>
-    </target>
-
-    <target name="cloverreport.html" depends="with.clover" 
-            description="Generate a clover report from the current clover database.">
-        <clover-report>
-            <current outfile="${clover.out.dir}">
-                <format type="html"/>
-            </current>
-        </clover-report>
-    </target>
-
-    <target name="cloverreport" depends="with.clover,junitreport,cloverreport.html" 
-        description="Run the tests and generate a clover report">
-    </target>
-   
-    <!-- Tasks -->
-
-    <target name="clean" description="Cleans up build and dist directories">
-        <delete dir="${build.dir}"/>
-        <delete dir="${dist.target.dir}"/>
-        <delete dir="${clover.out.dir}"/>   
-    </target>
-
-    <target name="init" description="Initialize the build">
-        <tstamp>
-            <format property="subversion" pattern="yyyy-MM-dd hh:mm:ss"/>
-        </tstamp>
-        <echo message="Build ${Name}-${version} (${subversion})"/>
-        <mkdir dir="${classes.dir}"/>
-        <mkdir dir="${testclasses.dir}"/>
-        <copy todir="${classes.dir}">
-            <fileset dir="${src.dir}">
-                <patternset refid="support.files"/>
-            </fileset>
-    	</copy>
-     
-	    <copy todir="${build.dir}">
-            <fileset dir=".">
-            	<include name="readme.txt"/>
-            	<include name="lgpl.txt"/>
-            </fileset>
-        </copy>
-    </target>
-
-    <target name="compile" depends="init" description="Compile the Java source code">
-        <available
-            classname="org.eclipse.core.launcher.Main"
-            property="build.compiler"
-            value="org.eclipse.jdt.core.JDTCompilerAdapter"
-            classpath="${java.class.path}"/>
-        <javac
-        	target="${javac.target}"
-            source="${javac.source}"
-            srcdir="${src.dir}"
-            destdir="${classes.dir}"
-            classpathref="lib.class.path"
-            debug="${javac.debug}"
-            optimize="${javac.optimize}"
-            nowarn="on">
-        </javac>
-    </target>
-
-	<target name="compiletest" depends="compile" description="Compile the tests">
-		<available
-			classname="org.eclipse.core.launcher.Main"
-			property="build.compiler"
-			value="org.eclipse.jdt.core.JDTCompilerAdapter"
-			classpath="${java.class.path}"/>
-		<javac
-            target="${javac.target}"
-            source="${javac.source}"
-			destdir="${testclasses.dir}"
-			classpathref="junit.classpath"
-			debug="${javac.debug}"
-			optimize="${javac.optimize}"
-			nowarn="on">
-			<src refid="testsrc.path"/>
-		</javac>
+		</classpath>
+	</taskdef>
+	
+	<taskdef resource="net/sf/antcontrib/antlib.xml">
+		<classpath>
+			<fileset dir="${common-build.basedir}/lib/build">
+				<!-- ${build.lib.dir} fails in reference doc build -->
+				<include name="ant-contrib-*.jar"/>
+			</fileset>
+		</classpath>
+	</taskdef>
+	
+	<!-- ivy load -->
+	<property name="ivy.jar.dir" value="${common-build.basedir}/ivy"/>
+	<property name="ivy.conf.dir" value="${common-build.basedir}"/>
+	<path id="ivy.lib.path">
+		<fileset dir="${ivy.jar.dir}" includes="*.jar"/>
+	</path>
+	<taskdef resource="fr/jayasoft/ivy/ant/antlib.xml"
+		uri="antlib:fr.jayasoft.ivy.ant" classpathref="ivy.lib.path"/>
+	
+	<!-- maven task load -->
+	<path id="maven-ant-tasks.path" path="${ivy.jar.dir}/maven-ant-tasks.jar"/>
+	<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
+		uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.path"/>
+	
+	<artifact:remoteRepository id="offline.repository.jboss.org"
+		url="file://${offline.repository.jboss.org}"/>
+	
+	<path id="lib.class.path">
+		<path refid="lib.moduleclass.path"/>
+		<pathelement path="${clover.jar}"/>
+	</path>
+	
+	<!-- overridable in modules -->
+	<path id="lib.moduleclass.path"/>
+	
+	<patternset id="support.files">
+		<include name="**/*.jpg"/>
+		<include name="**/*.gif"/>
+		<include name="**/*.dtd"/>
+		<include name="**/*.xsd"/>
+		<include name="**/*.xml"/>
+		<include name="**/*.xslt"/>
+		
+		<!-- exclude everything we don't want in the jar -->
+		<exclude name="${build.dir}/**/*"/>
+		<exclude name="${doc.dir}/**/*"/>
+		<exclude name="classes/**/*"/>
+		<exclude name="build.xml"/>
+		<exclude name="**/*.properties"/>
+		<exclude name="**/*.ccf"/>
+		<exclude name="**/*.cfg.xml"/>
+		<exclude name="**/ehcache.xml"/>
+	</patternset>
+	
+	<patternset id="source.files">
+		<include name="**/*.java"/>
+		<include name="**/*.properties"/>
+	</patternset>
+	
+	<!-- junit paths/filesets -->
+	<fileset dir="${testclasses.dir}" id="junit.batchtestset">
+		<include name="**/*Test.class"/>
+	</fileset>
+	
+	<path id="testsrc.path">
+		<pathelement location="${test.dir}"/>
+	</path>
+		
+	<path id="junit.classpath">
+		<pathelement path="${classes.dir}"/>
+		<pathelement path="${testclasses.dir}"/>
+		<path refid="lib.class.path"/>
+		<path refid="junit.moduleclasspath"/>
+		<path location="${clover.jar}"/>
+	</path>
+	
+	<!-- Determine the database against which to run  tests-->
+	<if>
+		<equals arg1="${targetdb}" arg2="$${targetdb}"/>
+		<then>
+			<echo message="No target database specified using default HSQLDB"/>
+			<property name="targetdb" value="hsqldb"/>
+		</then>
+	</if>
+	
+	<!-- Clover tasks -->
+	<target name="with.clover">
+		<clover-setup initString="clover_coverage.db"/>
+	</target>
+	
+	<target name="cloverreport.html" depends="with.clover"
+		description="Generate a clover report from the current clover database.">
+		<clover-report>
+			<current outfile="${clover.out.dir}">
+				<format type="html"/>
+			</current>
+		</clover-report>
+	</target>
+	
+	<target name="cloverreport"
+		depends="with.clover,junitreport,cloverreport.html"
+		description="Run the tests and generate a clover report">
+	</target>
+	
+	<!-- Tasks -->
+	<target name="clean" description="Cleans up build and dist directories">
+		<delete dir="${build.dir}"/>
+		<delete dir="${dist.target.dir}"/>
+		<delete dir="${clover.out.dir}"/>
+	</target>
+	
+	<target name="init" description="Initialize the build">
+		<tstamp>
+			<format property="subversion" pattern="yyyy-MM-dd hh:mm:ss"/>
+		</tstamp>
+		<echo message="Build ${Name}-${version} (${subversion})"/>
+		<mkdir dir="${classes.dir}"/>
+		<mkdir dir="${testclasses.dir}"/>
+		<copy todir="${classes.dir}">
+			<fileset dir="${src.dir}">
+				<patternset refid="support.files"/>
+			</fileset>
+		</copy>
+		
+		<copy todir="${build.dir}">
+			<fileset dir=".">
+				<include name="readme.txt"/>
+				<include name="lgpl.txt"/>
+			</fileset>
+		</copy>
 	</target>
-
-    <target name="instrument" depends="compiletest"
-			description="Instrument the persistent classes"> <!-- depends="jar" -->
-
-		<taskdef name="instrument" classname="org.hibernate.tool.instrument.InstrumentTask">
-			<classpath path="${classes.dir}"/>
-            <classpath path="${testclasses.dir}"/>         
-			<classpath refid="lib.class.path"/>
-		</taskdef>
-
-		<instrument verbose="true">
-			<fileset dir="${testclasses.dir}/org/hibernate/test">
-				<include name="**/*.class"/>
-				<exclude name="**/*Test$*.class"/>
-				<exclude name="**/*Test.class"/>
-				<exclude name="**/*Tests.class"/>
-			</fileset>
-		</instrument>
-
-		<!-- jar jarfile="${build.dir}/instrumented-classes.jar">
-			<fileset dir="${testclasses.dir}">
-				<include name="org/hibernate/test/**/*.class"/>
-				<exclude name="org/hibernate/test/**/*Test.class"/>
-			</fileset>
-		</jar -->
-
-	</target>
-
-    <target name="copytest" description="Copy tests to dist dir" if="copy.test" >
-        <mkdir dir="${dist.test.dir}"/>
-		<copy todir="${dist.test.dir}">
-			<fileset dir="${test.dir}"/>
-		</copy>
-	</target>
-
-    <target name="copysource" depends="copytest" description="Copy sources to dist dir">
-        <mkdir dir="${dist.src.dir}"/>
-        <copy todir="${dist.src.dir}">
-            <fileset dir="${src.dir}">
-                <patternset refid="source.files"/>
-            </fileset>
-            <fileset dir="${src.dir}">
-                <patternset refid="support.files"/>
-            </fileset>
-        </copy>
-		<mkdir dir="${dist.src.dir}"/>
-        <copy todir="${dist.src.dir}">
-            <fileset dir="${src.dir}">
-                <patternset refid="source.files"/>
-            </fileset>
-            <fileset dir="${src.dir}">
-                <patternset refid="support.files"/>
-            </fileset>
-        </copy>
-    </target>
 	
+	<target name="get.deps.core" depends="init"
+		description="retrieve the core dependencies">
+		<ivy:resolve conf="default"/>
+		<ivy:retrieve pattern="${ivy.dep.dir}/core/[artifact].[ext]"
+			conf="default"/>
+	</target>	
+	
+	<target name="get.deps.test" depends="init"
+		description="retrieve the test dependencies">
+		<ivy:resolve conf="test"/>
+		<ivy:retrieve pattern="${ivy.dep.dir}/test/[artifact].[ext]" conf="test"/>
+	</target>	
+				
+	<target name="copytest" description="Copy tests to dist dir" if="copy.test">
+		<mkdir dir="${dist.test.dir}"/>
+		<copy todir="${dist.test.dir}">
+			<fileset dir="${test.dir}"/>
+		</copy>
+	</target>
+	
+	<target name="copysource" depends="copytest"
+		description="Copy sources to dist dir">
+		<mkdir dir="${dist.src.dir}"/>
+		<copy todir="${dist.src.dir}">
+			<fileset dir="${src.dir}">
+				<patternset refid="source.files"/>
+			</fileset>
+			<fileset dir="${src.dir}">
+				<patternset refid="support.files"/>
+			</fileset>
+		</copy>
+		<mkdir dir="${dist.src.dir}"/>
+		<copy todir="${dist.src.dir}">
+			<fileset dir="${src.dir}">
+				<patternset refid="source.files"/>
+			</fileset>
+			<fileset dir="${src.dir}">
+				<patternset refid="support.files"/>
+			</fileset>
+		</copy>
+	</target>
+	
 	<target name="copylib" description="Copy jars to lib dir">
 		<mkdir dir="${dist.lib.dir}"/>
 		<copy todir="${dist.lib.dir}" verbose="true">
@@ -283,194 +254,197 @@
 			</fileset>
 		</copy>
 	</target>
+	
+	<target name="copydoc" description="Copy doc to dist dir" if="copy.doc">
+		<mkdir dir="${dist.doc.dir}"/>
+		<copy todir="${dist.doc.dir}">
+			<fileset dir="${doc.dir}">
+				<include name="**/*.html"/>
+			</fileset>
+		</copy>
+	</target>
+	
+	<target name="jar" depends="compile"
+		description="Build the distribution .jar file">
+		<mkdir dir="${dist.dir}"/>
+		<jar filesetmanifest="merge" jarfile="${jar.file.name}"
+			basedir="${classes.dir}"/>
+	</target>
+	
+	<target name="jartest" depends="compiletest"
+		description="Build the distribution .jar file">
+		<mkdir dir="${dist.dir}"/>
+		<jar filesetmanifest="merge" jarfile="${jartest.file.name}"
+			basedir="${testclasses.dir}"/>
+	</target>
+	
+	<!-- DOCUMENTATION -->
+	
+	<target name="javadoc"
+		description="Compile the Javadoc API documentation to dist dir">
+		<mkdir dir="${dist.api.dir}"/>
+		<javadoc packagenames="${javadoc.packagenames}"
+			classpathref="lib.class.path" destdir="${dist.api.dir}" use="true"
+			protected="true" version="true"
+			windowtitle="${Name} API Documentation"
+			Overview="${doc.api.dir}/package.html"
+			doctitle="${Name} API Documentation"
+			stylesheetfile="${doc.api.dir}/jdstyle.css" link="${javadoc}">
+			<packageset dir="${src.dir}" defaultexcludes="yes">
+				<include name="**/*"/>
+			</packageset>
+		</javadoc>
+	</target>
+	
+	<target name="extras" description="Copies miscellaneous files to root dir">
+		<copy todir="${dist.dir}/bin" failonerror="false">
+			<fileset dir="bin">
+				<include name="*.bat"/>
+			</fileset>
+		</copy>
+		<copy file="readme.txt" todir="${dist.dir}"/>
+		<copy file="lgpl.txt" todir="${dist.dir}"/>
+		<copy file="changelog.txt" todir="${dist.dir}"/>
+		<copy file="build.xml" todir="${dist.dir}"/>
+		<replace file="${dist.dir}/build.xml">
+			<replacetoken><![CDATA[../${name}-${version}]]>
+			</replacetoken>
+			<replacevalue><![CDATA[../${name}]]>
+			</replacevalue>
+		</replace>
+	</target>
+	
+	<target name="dist" depends="jar,javadoc,copysource,copydoc,extras"
+		description="Build everything">
+		<zip zipfile="${dist.dir}-${version}.zip">
+			<zipfileset prefix="${name}-${version}" dir="${dist.dir}"/>
+		</zip>
+		<tar compression="gzip" tarfile="${dist.dir}-${version}.tar.gz">
+			<tarfileset prefix="${name}-${version}" dir="${dist.dir}"/>
+		</tar>
+	</target>
+	
+	<target name="info" description="Echoes useful system properties">
+		<echo message="java.vm.info=${java.vm.info}"/>
+		<echo message="java.vm.name=${java.vm.name}"/>
+		<echo message="java.vm.vendor=${java.vm.vendor}"/>
+		<echo message="java.vm.version=${java.vm.version}"/>
+		<echo message="os.arch=${os.arch}"/>
+		<echo message="os.name=${os.name}"/>
+		<echo message="os.version=${os.version}"/>
+		<echo message="java.home = ${java.home}"/>
+		<echo message="java.class.path = ${java.class.path}"/>
+		<echo message="build.compiler = ${build.compiler}"/>
+		<echo message="file.encoding=${file.encoding}"/>
+		<echo message="user.home = ${user.home}"/>
+		<echo message="user.language=${user.language}"/>
+	</target>
+	
+	<target name="test-resources" description="Copies and filters test resources">
+		<filter filtersfile="${filter.dir}/${db}.filter"/>
+		<mkdir dir="${testclasses.dir}"/>
+		<copy todir="${testclasses.dir}" filtering="true" overwrite="true">
+			<fileset dir="${test.resources.dir}">
+				<include name="*.properties"/>
+				<include name="*.xml"/>
+			</fileset>
+		</copy>
+	</target>
 		
-	<target name="copydoc" description="Copy doc to dist dir" if="copy.doc">
-        <mkdir dir="${dist.doc.dir}"/>
-        <copy todir="${dist.doc.dir}">
-            <fileset dir="${doc.dir}">
-                <include name="**/*.html"/>
-            </fileset>
-        </copy>
-    </target>
-
-    <target name="jar" depends="compile" description="Build the distribution .jar file">
-        <mkdir dir="${dist.dir}"/>
-        <jar filesetmanifest="merge" jarfile="${jar.file.name}" basedir="${classes.dir}"/>
-    </target>
-
-    <target name="jartest" depends="compiletest" description="Build the distribution .jar file">
-        <mkdir dir="${dist.dir}"/>
-        <jar filesetmanifest="merge" jarfile="${jartest.file.name}" basedir="${testclasses.dir}"/>
-    </target>   
-    
-    <!-- DOCUMENTATION -->
-
-    <target name="javadoc" description="Compile the Javadoc API documentation to dist dir">
-        <mkdir dir="${dist.api.dir}"/>
-        <javadoc
-        	packagenames="${javadoc.packagenames}"
-        	classpathref="lib.class.path"
-        	destdir="${dist.api.dir}"
-        	use="true"
-        	protected="true"
-        	version="true"
-        	windowtitle="${Name} API Documentation"
-        	Overview="${doc.api.dir}/package.html"
-        	doctitle="${Name} API Documentation"
-        	stylesheetfile="${doc.api.dir}/jdstyle.css"
-        	link="${javadoc}">
-        	<packageset dir="${src.dir}" defaultexcludes="yes" >
-		      <include name="**/*" />
-		    </packageset>
-        </javadoc>
-
-
-    </target>
-
-
-	<target name="extras" description="Copies miscellaneous files to root dir">
-		<copy todir="${dist.dir}/bin" failonerror="false">
-			<fileset dir="bin">
-				<include name="*.bat"/>
-			</fileset>
-		</copy>
-		<copy file="readme.txt" todir="${dist.dir}"/>
-		<copy file="lgpl.txt" todir="${dist.dir}"/>
-		<copy file="changelog.txt" todir="${dist.dir}"/>
-		<copy file="build.xml" todir="${dist.dir}"/>
-		<replace file="${dist.dir}/build.xml">
-			<replacetoken><![CDATA[../${name}-${version}]]></replacetoken>
-			<replacevalue><![CDATA[../${name}]]></replacevalue>
-		</replace>
-	</target>
-
-	<target name="dist" depends="jar,javadoc,copysource,copydoc,extras" description="Build everything">
-		<zip zipfile = "${dist.dir}-${version}.zip">
-			<zipfileset prefix="${name}-${version}" dir="${dist.dir}"/>
-		</zip>
-		<tar compression="gzip" tarfile="${dist.dir}-${version}.tar.gz">
-			<tarfileset prefix="${name}-${version}" dir="${dist.dir}"/>
-		</tar>
-	</target>
-
-    <target name="info" description="Echoes useful system properties">
-        <echo message="java.vm.info=${java.vm.info}"/>
-        <echo message="java.vm.name=${java.vm.name}"/>
-        <echo message="java.vm.vendor=${java.vm.vendor}"/>
-        <echo message="java.vm.version=${java.vm.version}"/>
-        <echo message="os.arch=${os.arch}"/>
-        <echo message="os.name=${os.name}"/>
-        <echo message="os.version=${os.version}"/>
-        <echo message="java.home = ${java.home}"/>
-        <echo message="java.class.path = ${java.class.path}"/>
-        <echo message="build.compiler = ${build.compiler}"/>
-        <echo message="file.encoding=${file.encoding}"/>
-        <echo message="user.home = ${user.home}"/>
-        <echo message="user.language=${user.language}"/>
-    </target>
-
-    <target name="junit" depends="compiletest">
-        <mkdir dir="${testreports.dir}"/>
-        <junit printsummary="yes" haltonfailure="yes" forkmode="once">
-            <classpath refid="junit.classpath"/>
-            <formatter type="plain"/>
-            <formatter type="xml"/>
-            <batchtest fork="yes" todir="${testreports.dir}" haltonfailure="no">
-            	<fileset refid="junit.batchtestset"/>
-            </batchtest>
-        </junit>
-    </target>
-
-	<!-- Run a single unit test. -->
-	<target name="junitsingle" depends="compiletest" description="Run a single test suite (requires testname and jdbc.driver properties)">
-		<mkdir dir="${testreports.dir}"/>
-		<junit printsummary="yes" fork="yes" haltonfailure="yes">
+	<target name="instrument" depends="compiletest"
+		description="Instrument the persistent classes"> <!-- depends="jar" -->
+		
+		<taskdef name="instrument"
+			classname="org.hibernate.tool.instrument.javassist.InstrumentTask">
 			<classpath refid="junit.classpath"/>
-			<formatter type="plain"/>
-			<formatter type="xml"/>
-			<test fork="yes" todir="${testreports.dir}" haltonfailure="no" name="${testname}"/>
-		</junit>
-	</target>
-
-	<target name="junitinstrument" depends="compiletest,instrument"
-			description="Run the instrument test suite (requires driver.jar property)">
-		<mkdir dir="${instrumenttest.out.dir}"/>
-		<junit printsummary="yes" haltonfailure="yes" dir="${basedir}"
-				maxmemory="256M" fork="yes" forkmode="perBatch">
-            <classpath refid="junit.classpath"/>
-			<formatter type="plain"/>
-			<formatter type="xml"/>
-			<batchtest todir="${instrumenttest.out.dir}" haltonfailure="no">
-				<fileset dir="${classes.dir}">
-					<include name="org/hibernate/test/**/*Test.class"/>
-				</fileset>
-			</batchtest>
-		</junit>
-	</target>
-
-    <target name="junitreport" depends="">
-        <junitreport todir="${testreports.dir}">
-            <fileset dir="${testreports.dir}">
-                <include name="TEST-*.xml"/>
-            </fileset>
-            <report format="frames" todir="${testreports.dir}"/>
-        </junitreport>
-    </target>
-
-	<target name="run" depends="compile" description="Run Hibernate Console">
-		<java classname="org.hibernate.console.Start" classpathref="lib.class.path" fork="true">
-			<classpath>
-				<path location="${build.dir}"/>
-			</classpath>
-		</java>
-	</target>
-
- 
-    <target name="checkstyle" description="Check coding style">
-           <taskdef resource="checkstyletask.properties">
-                <classpath>
-                    <path refid="lib.class.path"/> 
-                    <fileset dir="${common-build.basedir}/lib">
-                        <include name="checkstyle*.jar"/>
-                    </fileset>
-                </classpath>
-            </taskdef>
-
-        <checkstyle config="${common-build.basedir}/checkstyle_checks.xml">
-			<fileset dir="${src.dir}">
-				<include name="**/*.java"/>
+		</taskdef>
+		
+		<instrument verbose="true">
+			<fileset dir="${testclasses.dir}/org/hibernate/test">
+				<include name="**/*.class"/>
+				<exclude name="**/*Test$*.class"/>
+				<exclude name="**/*Test.class"/>
+				<exclude name="**/*Tests.class"/>
 			</fileset>
-			<formatter type="plain"/>
-		</checkstyle>
-	</target>
-
-    <target name="patch" depends="checkstyle"
-			description="Create a patch">
-		<cvs command="-q diff -u -N" output="patch.txt"/>
-	</target>
-
-    <!-- maven deploy: to be used by the subbuild and delcare deps on jar -->
-    <target name="deploy" depends="jar">
-        <fail unless="offline.repository.jboss.org" message="offline.repository.jboss.org must be defined"/>
-        <jar jarfile="${src.jar}" basedir="${src.dir}">
-          <include name="**/*.java" />
-          <exclude name="**/test/*.java" />
-          <!-- patternset refid="meta.files" / -->
-        </jar>
-
-        <artifact:pom id="maven.project" file="${pom.file}" />
-
-        <artifact:install file="${jar.file.name}">
-            <pom refid="maven.project"/>
-        </artifact:install>
-
-        <artifact:deploy file="${jar.file.name}">
-          <pom refid="maven.project" />
-          <remoteRepository refId="offline.repository.jboss.org">
-          </remoteRepository>
-          <attach file="${src.jar}" classifier="sources" />
-            <attach file="${jar.file.name}" classifier="" />
-        </artifact:deploy>
-    </target>
-
+		</instrument>
+	</target>	
+	
+	<target name="junitinstrument" depends="compiletest,instrument"
+		description="Run the instrument test suite">
+		<for list="${targetdb}" param="db">
+			<sequential>
+				<antcall target="test-resources">
+					<param name="db" value="@{db}"/>
+				</antcall>
+				<mkdir dir="${instrumenttest.out.dir}/@{db}"/>
+				<echo>Running against db: @{db}</echo>
+				<junit printsummary="yes" haltonfailure="yes" dir="${basedir}"
+					maxmemory="256M" fork="yes" forkmode="perBatch">
+					<classpath refid="junit.classpath"/>
+					<formatter type="plain"/>
+					<formatter type="xml"/>
+					<batchtest todir="${instrumenttest.out.dir}/@{db}" haltonfailure="no">
+						<fileset refid="junit.batchtestset"/>
+					</batchtest>
+				</junit>
+			</sequential>
+		</for>
+	</target>
+	
+	<target name="junitreport" depends="">
+		<junitreport todir="${testreports.dir}">
+			<fileset dir="${testreports.dir}">
+				<include name="TEST-*.xml"/>
+			</fileset>
+			<report format="frames" todir="${testreports.dir}"/>
+		</junitreport>
+	</target>
+		
+	<target name="checkstyle" description="Check coding style">
+		<taskdef resource="checkstyletask.properties">
+			<classpath>
+				<path refid="lib.class.path"/>
+				<fileset dir="${common-build.basedir}/lib">
+					<include name="checkstyle*.jar"/>
+				</fileset>
+			</classpath>
+		</taskdef>
+		
+		<checkstyle config="${common-build.basedir}/checkstyle_checks.xml">
+			<fileset dir="${src.dir}">
+				<include name="**/*.java"/>
+			</fileset>
+			<formatter type="plain"/>
+		</checkstyle>
+	</target>
+	
+	<target name="patch" depends="checkstyle" description="Create a patch">
+		<cvs command="-q diff -u -N" output="patch.txt"/>
+	</target>
+	
+	<!-- maven deploy: to be used by the subbuild and delcare deps on jar -->
+	<target name="deploy" depends="jar">
+		<fail unless="offline.repository.jboss.org"
+			message="offline.repository.jboss.org must be defined"/>
+		<jar jarfile="${src.jar}" basedir="${src.dir}">
+			<include name="**/*.java"/>
+			<exclude name="**/test/*.java"/>
+			<!-- patternset refid="meta.files" / -->
+		</jar>
+		
+		<artifact:pom id="maven.project" file="${pom.file}"/>
+		
+		<artifact:install file="${jar.file.name}">
+			<pom refid="maven.project"/>
+		</artifact:install>
+		
+		<artifact:deploy file="${jar.file.name}">
+			<pom refid="maven.project"/>
+			<remoteRepository refId="offline.repository.jboss.org">
+			</remoteRepository>
+			<attach file="${src.jar}" classifier="sources"/>
+			<attach file="${jar.file.name}" classifier=""/>
+		</artifact:deploy>
+	</target>
+	
 </project>
\ No newline at end of file

Modified: entitymanager/trunk/doc/reference/build.xml
===================================================================
--- entitymanager/trunk/doc/reference/build.xml	2008-08-11 09:14:39 UTC (rev 15025)
+++ entitymanager/trunk/doc/reference/build.xml	2008-08-11 09:39:53 UTC (rev 15026)
@@ -1,10 +1,6 @@
 <project name="Documentation" default="all.doc" basedir=".">
 
-    <!-- Use the core Hibernate3 doc build system -->
-    <import file="../../common-build.xml"/>
     <import file="docbook-common-build.xml"/>
-
-
     <target name="all.doc" depends="clean">
 
         <!-- TRANSLATOR: Duplicate this call for your language -->

Added: entitymanager/trunk/lib/build/ant-contrib-1.0b2.jar
===================================================================
(Binary files differ)


Property changes on: entitymanager/trunk/lib/build/ant-contrib-1.0b2.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: entitymanager/trunk/src/filters/hsqldb.filter
===================================================================
--- entitymanager/trunk/src/filters/hsqldb.filter	                        (rev 0)
+++ entitymanager/trunk/src/filters/hsqldb.filter	2008-08-11 09:39:53 UTC (rev 15026)
@@ -0,0 +1,8 @@
+## HSQLDB
+
+hibernate.dialect org.hibernate.dialect.HSQLDialect
+hibernate.connection.driver_class org.hsqldb.jdbcDriver
+hibernate.connection.username sa
+hibernate.connection.password
+hibernate.connection.url jdbc\:hsqldb\:.
+


Property changes on: entitymanager/trunk/src/filters/hsqldb.filter
___________________________________________________________________
Name: svn:eol-style
   + native

Added: entitymanager/trunk/src/filters/mysql.filter
===================================================================
--- entitymanager/trunk/src/filters/mysql.filter	                        (rev 0)
+++ entitymanager/trunk/src/filters/mysql.filter	2008-08-11 09:39:53 UTC (rev 15026)
@@ -0,0 +1,7 @@
+## MySQL
+
+hibernate.dialect org.hibernate.dialect.MySQLDialect
+hibernate.connection.driver_class com.mysql.jdbc.Driver
+hibernate.connection.url jdbc:mysql://localhost/hibernate
+hibernate.connection.username hibernate
+hibernate.connection.password hibernate


Property changes on: entitymanager/trunk/src/filters/mysql.filter
___________________________________________________________________
Name: svn:eol-style
   + native

Deleted: entitymanager/trunk/src/test/hibernate.properties
===================================================================
--- entitymanager/trunk/src/test/hibernate.properties	2008-08-11 09:14:39 UTC (rev 15025)
+++ entitymanager/trunk/src/test/hibernate.properties	2008-08-11 09:39:53 UTC (rev 15026)
@@ -1,491 +0,0 @@
-###############
-### EJB 3.0 ###
-###############
-
-## select Hibernate persistence provider
-
-javax.persistence.provider org.hibernate.ejb.HibernatePersistence
-javax.persistence.transactionType=RESOURCE_LOCAL
-
-## entity bean class name (comma separated)
-
-#hibernate.ejb.classes org.hibernate.ejb.test.Item, org.hibernate.ejb.test.Distributor
-
-## entity caching (strategy, optional region name)
-#hibernate.ejb.classcache.org.hibernate.ejb.test.Item read-write, RegionName
-#hibernate.ejb.classcache.org.hibernate.ejb.test.Item read-write
-
-## collection caching (role, optional region name)
-#hibernate.ejb.collectioncache.org.hibernate.ejb.test.Item.distributors read-write, RegionName
-
-######################
-### Query Language ###
-######################
-
-## define query language constants / function names
-
-hibernate.query.substitutions true 1, false 0, yes 'Y', no 'N'
-
-
-## select the classic query parser
-
-#hibernate.query.factory_class org.hibernate.hql.classic.ClassicQueryTranslatorFactory
-
-
-
-#################
-### Platforms ###
-#################
-
-## JNDI Datasource
-
-#hibernate.connection.datasource jdbc/test
-#hibernate.connection.username db2
-#hibernate.connection.password db2
-
-
-## HypersonicSQL
-
-hibernate.dialect org.hibernate.dialect.HSQLDialect
-hibernate.connection.driver_class org.hsqldb.jdbcDriver
-hibernate.connection.username sa
-hibernate.connection.password
-hibernate.connection.url jdbc:hsqldb:hsql://localhost
-hibernate.connection.url jdbc:hsqldb:test
-hibernate.connection.url jdbc:hsqldb:.
-
-
-## MySQL
-
-#hibernate.dialect org.hibernate.dialect.MySQLDialect
-#hibernate.dialect org.hibernate.dialect.MySQLInnoDBDialect
-#hibernate.dialect org.hibernate.dialect.MySQLMyISAMDialect
-#hibernate.connection.driver_class org.gjt.mm.mysql.Driver
-#hibernate.connection.driver_class com.mysql.jdbc.Driver
-#hibernate.connection.url jdbc:mysql:///test
-#hibernate.connection.username emmanuel
-#hibernate.connection.password
-
-
-## Oracle
-
-#hibernate.dialect org.hibernate.dialect.OracleDialect
-#hibernate.dialect org.hibernate.dialect.Oracle9Dialect
-#hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
-#hibernate.connection.username ora
-#hibernate.connection.password ora
-#hibernate.connection.url jdbc:oracle:thin:@localhost:1521:test
-
-
-## PostgreSQL
-
-#hibernate.dialect org.hibernate.dialect.PostgreSQLDialect
-#hibernate.connection.driver_class org.postgresql.Driver
-#hibernate.connection.url jdbc:postgresql:annotations
-#hibernate.connection.username postgres
-#hibernate.connection.password hibernate
-#hibernate.query.substitutions yes 'Y', no 'N'
-
-
-## DB2
-
-#hibernate.dialect org.hibernate.dialect.DB2Dialect
-#hibernate.connection.driver_class COM.ibm.db2.jdbc.app.DB2Driver
-#hibernate.connection.url jdbc:db2:test
-#hibernate.connection.username db2
-#hibernate.connection.password db2
-
-## TimesTen (not supported yet)
-
-#hibernate.dialect org.hibernate.dialect.TimesTenDialect
-#hibernate.connection.driver_class com.timesten.jdbc.TimesTenDriver
-#hibernate.connection.url jdbc:timesten:direct:test
-#hibernate.connection.username
-#hibernate.connection.password 
-
-## DB2/400
-
-#hibernate.dialect org.hibernate.dialect.DB2400Dialect
-#hibernate.connection.username user
-#hibernate.connection.password password
-
-## Native driver
-#hibernate.connection.driver_class COM.ibm.db2.jdbc.app.DB2Driver
-#hibernate.connection.url jdbc:db2://systemname
-
-## Toolbox driver
-#hibernate.connection.driver_class com.ibm.as400.access.AS400JDBCDriver
-#hibernate.connection.url jdbc:as400://systemname
-
-
-## Derby (Not supported!)
-
-#hibernate.dialect org.hibernate.dialect.DerbyDialect
-#hibernate.connection.driver_class org.apache.derby.jdbc.EmbeddedDriver
-#hibernate.connection.username
-#hibernate.connection.password
-#hibernate.connection.url jdbc:derby:/test;create=true
-
-
-## Sybase
-
-#hibernate.dialect org.hibernate.dialect.SybaseDialect
-#hibernate.connection.driver_class com.sybase.jdbc2.jdbc.SybDriver
-#hibernate.connection.username sa
-#hibernate.connection.password sasasa
-#hibernate.connection.url jdbc:sybase:Tds:co3061835-a:5000/tempdb
-
-
-## Mckoi SQL
-
-#hibernate.dialect org.hibernate.dialect.MckoiDialect
-#hibernate.connection.driver_class com.mckoi.JDBCDriver
-#hibernate.connection.url jdbc:mckoi:///
-#hibernate.connection.url jdbc:mckoi:local://C:/mckoi1.00/db.conf
-#hibernate.connection.username admin
-#hibernate.connection.password nimda
-
-
-## SAP DB
-
-#hibernate.dialect org.hibernate.dialect.SAPDBDialect
-#hibernate.connection.driver_class com.sap.dbtech.jdbc.DriverSapDB
-#hibernate.connection.url jdbc:sapdb://localhost/TST
-#hibernate.connection.username TEST
-#hibernate.connection.password TEST
-#hibernate.query.substitutions yes 'Y', no 'N'
-
-
-## MS SQL Server
-
-#hibernate.dialect org.hibernate.dialect.SQLServerDialect
-#hibernate.connection.username sa
-#hibernate.connection.password sa
-
-## JSQL Driver
-#hibernate.connection.driver_class com.jnetdirect.jsql.JSQLDriver
-#hibernate.connection.url jdbc:JSQLConnect://1E1/test
-
-## JTURBO Driver
-#hibernate.connection.driver_class com.newatlanta.jturbo.driver.Driver
-#hibernate.connection.url jdbc:JTurbo://1E1:1433/test
-
-## WebLogic Driver
-#hibernate.connection.driver_class weblogic.jdbc.mssqlserver4.Driver
-#hibernate.connection.url jdbc:weblogic:mssqlserver4:1E1:1433
-
-## Microsoft Driver (not recommended!)
-#hibernate.connection.driver_class com.microsoft.jdbc.sqlserver.SQLServerDriver
-#hibernate.connection.url jdbc:microsoft:sqlserver://1E1;DatabaseName=test;SelectMethod=cursor
-
-## jTDS (since version 0.9)
-#hibernate.connection.driver_class net.sourceforge.jtds.jdbc.Driver
-#hibernate.connection.url jdbc:jtds:sqlserver://1E1/test
-
-## Interbase
-
-#hibernate.dialect org.hibernate.dialect.InterbaseDialect
-#hibernate.connection.username sysdba
-#hibernate.connection.password masterkey
-
-## DO NOT specify hibernate.connection.sqlDialect
-
-## InterClient
-
-#hibernate.connection.driver_class interbase.interclient.Driver
-#hibernate.connection.url jdbc:interbase://localhost:3060/C:/firebird/test.gdb
-
-## Pure Java
-
-#hibernate.connection.driver_class org.firebirdsql.jdbc.FBDriver
-#hibernate.connection.url jdbc:firebirdsql:localhost/3050:/firebird/test.gdb
-
-
-## Pointbase
-
-#hibernate.dialect org.hibernate.dialect.PointbaseDialect
-#hibernate.connection.driver_class com.pointbase.jdbc.jdbcUniversalDriver
-#hibernate.connection.url jdbc:pointbase:embedded:sample
-#hibernate.connection.username PBPUBLIC
-#hibernate.connection.password PBPUBLIC
-
-
-
-#################################
-### Hibernate Connection Pool ###
-#################################
-
-hibernate.connection.pool_size 1
-
-
-
-###########################
-### C3P0 Connection Pool###
-###########################
-
-#hibernate.c3p0.max_size 2
-#hibernate.c3p0.min_size 2
-#hibernate.c3p0.timeout 5000
-#hibernate.c3p0.max_statements 100
-#hibernate.c3p0.idle_test_period 3000
-#hibernate.c3p0.acquire_increment 2
-#hibernate.c3p0.validate false
-
-
-
-##############################
-### Proxool Connection Pool###
-##############################
-
-## Properties for external configuration of Proxool
-
-hibernate.proxool.pool_alias pool1
-
-## Only need one of the following
-
-#hibernate.proxool.existing_pool true
-#hibernate.proxool.xml proxool.xml
-#hibernate.proxool.properties proxool.properties
-
-
-
-#################################
-### Plugin ConnectionProvider ###
-#################################
-
-## use a custom ConnectionProvider (if not set, Hibernate will choose a built-in ConnectionProvider using hueristics)
-
-#hibernate.connection.provider_class org.hibernate.connection.DriverManagerConnectionProvider
-#hibernate.connection.provider_class org.hibernate.connection.DatasourceConnectionProvider
-#hibernate.connection.provider_class org.hibernate.connection.C3P0ConnectionProvider
-#hibernate.connection.provider_class org.hibernate.connection.DBCPConnectionProvider
-#hibernate.connection.provider_class org.hibernate.connection.ProxoolConnectionProvider
-
-
-
-#######################
-### Transaction API ###
-#######################
-
-## Enable automatic flush during the JTA beforeCompletion() callback
-## (This setting is relevant with or without the Transaction API)
-
-#hibernate.transaction.flush_before_completion
-
-
-## Enable automatic session close at the end of transaction
-## (This setting is relevant with or without the Transaction API)
-
-#hibernate.transaction.auto_close_session
-
-
-## the Transaction API abstracts application code from the underlying JTA or JDBC transactions
-
-#hibernate.transaction.factory_class org.hibernate.transaction.JTATransactionFactory
-#hibernate.transaction.factory_class org.hibernate.transaction.JDBCTransactionFactory
-
-
-## to use JTATransactionFactory, Hibernate must be able to locate the UserTransaction in JNDI
-## default is java:comp/UserTransaction
-## you do NOT need this setting if you specify hibernate.transaction.manager_lookup_class
-
-#jta.UserTransaction jta/usertransaction
-#jta.UserTransaction javax.transaction.UserTransaction
-#jta.UserTransaction UserTransaction
-
-
-## to use the second-level cache with JTA, Hibernate must be able to obtain the JTA TransactionManager
-
-#hibernate.transaction.manager_lookup_class org.hibernate.transaction.JBossTransactionManagerLookup
-#hibernate.transaction.manager_lookup_class org.hibernate.transaction.WeblogicTransactionManagerLookup
-#hibernate.transaction.manager_lookup_class org.hibernate.transaction.WebSphereTransactionManagerLookup
-#hibernate.transaction.manager_lookup_class org.hibernate.transaction.OrionTransactionManagerLookup
-#hibernate.transaction.manager_lookup_class org.hibernate.transaction.ResinTransactionManagerLookup
-
-
-
-##############################
-### Miscellaneous Settings ###
-##############################
-
-## print all generated SQL to the console
-
-#hibernate.show_sql true
-
-
-## add comments to the generated SQL
-
-#hibernate.use_sql_comments true
-
-
-## generate statistics
-
-#hibernate.generate_statistics true
-
-
-## auto schema export
-
-hibernate.hbm2ddl.auto create-drop
-#hibernate.hbm2ddl.auto create
-#hibernate.hbm2ddl.auto update
-
-
-## specify a default schema and catalog for unqualified tablenames
-
-#hibernate.default_schema test
-#hibernate.default_catalog test
-
-
-## enable ordering of SQL UPDATEs by primary key
-
-hibernate.order_updates true
-
-
-## set the maximum depth of the outer join fetch tree
-
-hibernate.max_fetch_depth 1
-
-
-## set the default batch size for batch fetching
-
-hibernate.default_batch_fetch_size 8
-
-
-## rollback generated identifier values of deleted entities to default values
-
-#hibernate.use_identifer_rollback true
-
-
-## enable CGLIB reflection optimizer (enabled by default)
-
-#hibernate.cglib.use_reflection_optimizer false
-
-
-
-#####################
-### JDBC Settings ###
-#####################
-
-## specify a JDBC isolation level
-
-#hibernate.connection.isolation 4
-
-
-## enable JDBC autocommit (not recommended!)
-
-#hibernate.connection.autocommit true
-
-
-## set the JDBC fetch size
-
-#hibernate.jdbc.fetch_size 25
-
-
-## set the maximum JDBC 2 batch size (a nonzero value enables batching)
-
-#hibernate.jdbc.batch_size 5
-
-
-## enable batch updates even for versioned data
-
-hibernate.jdbc.batch_versioned_data true
-
-
-## enable use of JDBC 2 scrollable ResultSets (specifying a Dialect will cause Hibernate to use a sensible default)
-
-#hibernate.jdbc.use_scrollable_resultset true
-
-
-## use streams when writing binary types to / from JDBC
-
-hibernate.jdbc.use_streams_for_binary true
-
-
-## use JDBC 3 PreparedStatement.getGeneratedKeys() to get the identifier of an inserted row
-
-#hibernate.jdbc.use_get_generated_keys false
-
-
-## choose a custom JDBC batcher
-
-# hibernate.jdbc.factory_class
-
-
-## enable JDBC result set column alias caching 
-## (minor performance enhancement for broken JDBC drivers)
-
-# hibernate.jdbc.wrap_result_sets
-
-
-## choose a custom SQL exception converter
-
-#hibernate.jdbc.sql_exception_converter
-
-
-
-##########################
-### Second-level Cache ###
-##########################
-
-## optimize chache for minimal "puts" instead of minimal "gets" (good for clustered cache)
-
-#hibernate.cache.use_minimal_puts true
-
-
-## set a prefix for cache region names
-
-hibernate.cache.region_prefix hibernate.test
-
-
-## disable the second-level cache
-
-#hibernate.cache.use_second_level_cache false
-
-
-## enable the query cache
-
-#hibernate.cache.use_query_cache true
-
-
-## store the second-level cache entries in a more human-friendly format
-
-#hibernate.cache.use_structured_entries true
-
-
-## choose a cache implementation
-
-#hibernate.cache.provider_class org.hibernate.cache.EhCacheProvider
-#hibernate.cache.provider_class org.hibernate.cache.EmptyCacheProvider
-hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider
-#hibernate.cache.provider_class org.hibernate.cache.TreeCacheProvider
-#hibernate.cache.provider_class org.hibernate.cache.OSCacheProvider
-#hibernate.cache.provider_class org.hibernate.cache.SwarmCacheProvider
-
-
-## choose a custom query cache implementation
-
-#hibernate.cache.query_cache_factory
-
-
-
-############
-### JNDI ###
-############
-
-## specify a JNDI name for the SessionFactory
-
-#hibernate.session_factory_name hibernate/session_factory
-
-
-## Hibernate uses JNDI to bind a name to a SessionFactory and to look up the JTA UserTransaction;
-## if hibernate.jndi.* are not specified, Hibernate will use the default InitialContext() which
-## is the best approach in an application server
-
-#file system
-#hibernate.jndi.class com.sun.jndi.fscontext.RefFSContextFactory
-#hibernate.jndi.url file:/
-
-#WebSphere
-#hibernate.jndi.class com.ibm.websphere.naming.WsnInitialContextFactory
-#hibernate.jndi.url iiop://localhost:900/
-

Deleted: entitymanager/trunk/src/test/log4j.properties
===================================================================
--- entitymanager/trunk/src/test/log4j.properties	2008-08-11 09:14:39 UTC (rev 15025)
+++ entitymanager/trunk/src/test/log4j.properties	2008-08-11 09:39:53 UTC (rev 15026)
@@ -1,54 +0,0 @@
-### direct log messages to stdout ###
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.Target=System.out
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
-
-### direct messages to file hibernate.log ###
-log4j.appender.file=org.apache.log4j.FileAppender
-log4j.appender.file.File=hibernate.log
-log4j.appender.file.layout=org.apache.log4j.PatternLayout
-log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
-
-### direct messages to socket - chainsaw ###
-log4j.appender.socket=org.apache.log4j.net.SocketAppender
-log4j.appender.socket.remoteHost=localhost
-log4j.appender.socket.port=4560
-log4j.appender.socket.locationInfo=true
-
-### set log levels - for more verbose logging change 'info' to 'debug' ###
-
-log4j.rootLogger=warn, stdout
-
-log4j.logger.org.hibernate=debug
-#log4j.logger.org.hibernate=debug
-
-log4j.logger.org.hibernate.ejb=debug
-log4j.logger.org.hibernate.ejb.packaging=debug
-log4j.logger.org.hibernate.reflection=debug
-
-#log4j.logger.org.hibernate.engine.Cascades=debug
-#log4j.logger.org.hibernate.hql=debug
-
-### log just the SQL
-log4j.logger.org.hibernate.SQL=debug
-
-### log JDBC bind parameters ###
-#log4j.logger.org.hibernate.type=info
-log4j.logger.org.hibernate.type=debug
-
-### log schema export/update ###
-log4j.logger.org.hibernate.tool.hbm2ddl=debug
-
-### log HQL parse trees
-#log4j.logger.org.hibernate.hql=debug
-
-### log cache activity ###
-#log4j.logger.org.hibernate.cache=debug
-
-### log JDBC resource acquisition
-#log4j.logger.org.hibernate.jdbc=debug
-
-### enable the following line if you want to track down connection ###
-### leakages when using DriverManagerConnectionProvider ###
-#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace

Copied: entitymanager/trunk/src/test-resources/hibernate.properties (from rev 15019, entitymanager/trunk/src/test/hibernate.properties)
===================================================================
--- entitymanager/trunk/src/test-resources/hibernate.properties	                        (rev 0)
+++ entitymanager/trunk/src/test-resources/hibernate.properties	2008-08-11 09:39:53 UTC (rev 15026)
@@ -0,0 +1,327 @@
+###############
+### EJB 3.0 ###
+###############
+
+## select Hibernate persistence provider
+
+javax.persistence.provider org.hibernate.ejb.HibernatePersistence
+javax.persistence.transactionType=RESOURCE_LOCAL
+
+## entity bean class name (comma separated)
+
+#hibernate.ejb.classes org.hibernate.ejb.test.Item, org.hibernate.ejb.test.Distributor
+
+## entity caching (strategy, optional region name)
+#hibernate.ejb.classcache.org.hibernate.ejb.test.Item read-write, RegionName
+#hibernate.ejb.classcache.org.hibernate.ejb.test.Item read-write
+
+## collection caching (role, optional region name)
+#hibernate.ejb.collectioncache.org.hibernate.ejb.test.Item.distributors read-write, RegionName
+
+######################
+### Query Language ###
+######################
+
+## define query language constants / function names
+
+hibernate.query.substitutions true 1, false 0, yes 'Y', no 'N'
+
+
+## select the classic query parser
+
+#hibernate.query.factory_class org.hibernate.hql.classic.ClassicQueryTranslatorFactory
+
+
+
+#################
+### Platforms ###
+#################
+
+## JNDI Datasource
+
+#hibernate.connection.datasource jdbc/test
+#hibernate.connection.username db2
+#hibernate.connection.password db2
+
+hibernate.dialect @hibernate.dialect@
+hibernate.connection.driver_class @hibernate.connection.driver_class@
+hibernate.connection.username @hibernate.connection.username@
+hibernate.connection.password @hibernate.connection.password@
+hibernate.connection.url @hibernate.connection.url@
+
+#################################
+### Hibernate Connection Pool ###
+#################################
+
+hibernate.connection.pool_size 1
+
+###########################
+### C3P0 Connection Pool###
+###########################
+
+#hibernate.c3p0.max_size 2
+#hibernate.c3p0.min_size 2
+#hibernate.c3p0.timeout 5000
+#hibernate.c3p0.max_statements 100
+#hibernate.c3p0.idle_test_period 3000
+#hibernate.c3p0.acquire_increment 2
+#hibernate.c3p0.validate false
+
+
+
+##############################
+### Proxool Connection Pool###
+##############################
+
+## Properties for external configuration of Proxool
+
+hibernate.proxool.pool_alias pool1
+
+## Only need one of the following
+
+#hibernate.proxool.existing_pool true
+#hibernate.proxool.xml proxool.xml
+#hibernate.proxool.properties proxool.properties
+
+
+
+#################################
+### Plugin ConnectionProvider ###
+#################################
+
+## use a custom ConnectionProvider (if not set, Hibernate will choose a built-in ConnectionProvider using hueristics)
+
+#hibernate.connection.provider_class org.hibernate.connection.DriverManagerConnectionProvider
+#hibernate.connection.provider_class org.hibernate.connection.DatasourceConnectionProvider
+#hibernate.connection.provider_class org.hibernate.connection.C3P0ConnectionProvider
+#hibernate.connection.provider_class org.hibernate.connection.DBCPConnectionProvider
+#hibernate.connection.provider_class org.hibernate.connection.ProxoolConnectionProvider
+
+
+
+#######################
+### Transaction API ###
+#######################
+
+## Enable automatic flush during the JTA beforeCompletion() callback
+## (This setting is relevant with or without the Transaction API)
+
+#hibernate.transaction.flush_before_completion
+
+
+## Enable automatic session close at the end of transaction
+## (This setting is relevant with or without the Transaction API)
+
+#hibernate.transaction.auto_close_session
+
+
+## the Transaction API abstracts application code from the underlying JTA or JDBC transactions
+
+#hibernate.transaction.factory_class org.hibernate.transaction.JTATransactionFactory
+#hibernate.transaction.factory_class org.hibernate.transaction.JDBCTransactionFactory
+
+
+## to use JTATransactionFactory, Hibernate must be able to locate the UserTransaction in JNDI
+## default is java:comp/UserTransaction
+## you do NOT need this setting if you specify hibernate.transaction.manager_lookup_class
+
+#jta.UserTransaction jta/usertransaction
+#jta.UserTransaction javax.transaction.UserTransaction
+#jta.UserTransaction UserTransaction
+
+
+## to use the second-level cache with JTA, Hibernate must be able to obtain the JTA TransactionManager
+
+#hibernate.transaction.manager_lookup_class org.hibernate.transaction.JBossTransactionManagerLookup
+#hibernate.transaction.manager_lookup_class org.hibernate.transaction.WeblogicTransactionManagerLookup
+#hibernate.transaction.manager_lookup_class org.hibernate.transaction.WebSphereTransactionManagerLookup
+#hibernate.transaction.manager_lookup_class org.hibernate.transaction.OrionTransactionManagerLookup
+#hibernate.transaction.manager_lookup_class org.hibernate.transaction.ResinTransactionManagerLookup
+
+
+
+##############################
+### Miscellaneous Settings ###
+##############################
+
+## print all generated SQL to the console
+
+#hibernate.show_sql true
+
+
+## add comments to the generated SQL
+
+#hibernate.use_sql_comments true
+
+
+## generate statistics
+
+#hibernate.generate_statistics true
+
+
+## auto schema export
+
+hibernate.hbm2ddl.auto create-drop
+#hibernate.hbm2ddl.auto create
+#hibernate.hbm2ddl.auto update
+
+
+## specify a default schema and catalog for unqualified tablenames
+
+#hibernate.default_schema test
+#hibernate.default_catalog test
+
+
+## enable ordering of SQL UPDATEs by primary key
+
+hibernate.order_updates true
+
+
+## set the maximum depth of the outer join fetch tree
+
+hibernate.max_fetch_depth 1
+
+
+## set the default batch size for batch fetching
+
+hibernate.default_batch_fetch_size 8
+
+
+## rollback generated identifier values of deleted entities to default values
+
+#hibernate.use_identifer_rollback true
+
+
+## enable CGLIB reflection optimizer (enabled by default)
+
+#hibernate.cglib.use_reflection_optimizer false
+
+
+
+#####################
+### JDBC Settings ###
+#####################
+
+## specify a JDBC isolation level
+
+#hibernate.connection.isolation 4
+
+
+## enable JDBC autocommit (not recommended!)
+
+#hibernate.connection.autocommit true
+
+
+## set the JDBC fetch size
+
+#hibernate.jdbc.fetch_size 25
+
+
+## set the maximum JDBC 2 batch size (a nonzero value enables batching)
+
+#hibernate.jdbc.batch_size 5
+
+
+## enable batch updates even for versioned data
+
+hibernate.jdbc.batch_versioned_data true
+
+
+## enable use of JDBC 2 scrollable ResultSets (specifying a Dialect will cause Hibernate to use a sensible default)
+
+#hibernate.jdbc.use_scrollable_resultset true
+
+
+## use streams when writing binary types to / from JDBC
+
+hibernate.jdbc.use_streams_for_binary true
+
+
+## use JDBC 3 PreparedStatement.getGeneratedKeys() to get the identifier of an inserted row
+
+#hibernate.jdbc.use_get_generated_keys false
+
+
+## choose a custom JDBC batcher
+
+# hibernate.jdbc.factory_class
+
+
+## enable JDBC result set column alias caching 
+## (minor performance enhancement for broken JDBC drivers)
+
+# hibernate.jdbc.wrap_result_sets
+
+
+## choose a custom SQL exception converter
+
+#hibernate.jdbc.sql_exception_converter
+
+
+
+##########################
+### Second-level Cache ###
+##########################
+
+## optimize chache for minimal "puts" instead of minimal "gets" (good for clustered cache)
+
+#hibernate.cache.use_minimal_puts true
+
+
+## set a prefix for cache region names
+
+hibernate.cache.region_prefix hibernate.test
+
+
+## disable the second-level cache
+
+#hibernate.cache.use_second_level_cache false
+
+
+## enable the query cache
+
+#hibernate.cache.use_query_cache true
+
+
+## store the second-level cache entries in a more human-friendly format
+
+#hibernate.cache.use_structured_entries true
+
+
+## choose a cache implementation
+
+#hibernate.cache.provider_class org.hibernate.cache.EhCacheProvider
+#hibernate.cache.provider_class org.hibernate.cache.EmptyCacheProvider
+hibernate.cache.provider_class org.hibernate.cache.HashtableCacheProvider
+#hibernate.cache.provider_class org.hibernate.cache.TreeCacheProvider
+#hibernate.cache.provider_class org.hibernate.cache.OSCacheProvider
+#hibernate.cache.provider_class org.hibernate.cache.SwarmCacheProvider
+
+
+## choose a custom query cache implementation
+
+#hibernate.cache.query_cache_factory
+
+
+
+############
+### JNDI ###
+############
+
+## specify a JNDI name for the SessionFactory
+
+#hibernate.session_factory_name hibernate/session_factory
+
+
+## Hibernate uses JNDI to bind a name to a SessionFactory and to look up the JTA UserTransaction;
+## if hibernate.jndi.* are not specified, Hibernate will use the default InitialContext() which
+## is the best approach in an application server
+
+#file system
+#hibernate.jndi.class com.sun.jndi.fscontext.RefFSContextFactory
+#hibernate.jndi.url file:/
+
+#WebSphere
+#hibernate.jndi.class com.ibm.websphere.naming.WsnInitialContextFactory
+#hibernate.jndi.url iiop://localhost:900/
+

Copied: entitymanager/trunk/src/test-resources/log4j.properties (from rev 15019, entitymanager/trunk/src/test/log4j.properties)
===================================================================
--- entitymanager/trunk/src/test-resources/log4j.properties	                        (rev 0)
+++ entitymanager/trunk/src/test-resources/log4j.properties	2008-08-11 09:39:53 UTC (rev 15026)
@@ -0,0 +1,54 @@
+### direct log messages to stdout ###
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
+
+### direct messages to file hibernate.log ###
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.File=hibernate.log
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
+
+### direct messages to socket - chainsaw ###
+log4j.appender.socket=org.apache.log4j.net.SocketAppender
+log4j.appender.socket.remoteHost=localhost
+log4j.appender.socket.port=4560
+log4j.appender.socket.locationInfo=true
+
+### set log levels - for more verbose logging change 'info' to 'debug' ###
+
+log4j.rootLogger=warn, stdout
+
+log4j.logger.org.hibernate=debug
+#log4j.logger.org.hibernate=debug
+
+log4j.logger.org.hibernate.ejb=debug
+log4j.logger.org.hibernate.ejb.packaging=debug
+log4j.logger.org.hibernate.reflection=debug
+
+#log4j.logger.org.hibernate.engine.Cascades=debug
+#log4j.logger.org.hibernate.hql=debug
+
+### log just the SQL
+log4j.logger.org.hibernate.SQL=debug
+
+### log JDBC bind parameters ###
+#log4j.logger.org.hibernate.type=info
+log4j.logger.org.hibernate.type=debug
+
+### log schema export/update ###
+log4j.logger.org.hibernate.tool.hbm2ddl=debug
+
+### log HQL parse trees
+#log4j.logger.org.hibernate.hql=debug
+
+### log cache activity ###
+#log4j.logger.org.hibernate.cache=debug
+
+### log JDBC resource acquisition
+#log4j.logger.org.hibernate.jdbc=debug
+
+### enable the following line if you want to track down connection ###
+### leakages when using DriverManagerConnectionProvider ###
+#log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace




More information about the hibernate-commits mailing list