Hibernate SVN: r13597 - entitymanager/tags/v3_2_0_CR1.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:39:38 -0400 (Wed, 15 Aug 2007)
New Revision: 13597
Added:
entitymanager/tags/v3_2_0_CR1/changelog.txt
Log:
Move entitymanager tags/entitymanager_v32cr1 to the new structure (v3_2_0_CR1)
Copied: entitymanager/tags/v3_2_0_CR1/changelog.txt (from rev 13596, tags/entitymanager_v32cr1/HibernateExt/ejb/changelog.txt)
===================================================================
--- entitymanager/tags/v3_2_0_CR1/changelog.txt (rev 0)
+++ entitymanager/tags/v3_2_0_CR1/changelog.txt 2007-08-16 00:39:38 UTC (rev 13597)
@@ -0,0 +1,181 @@
+Hibernate EntityManager Changelog
+==================================
+
+3.2.0.CR1 (13-05-2006)
+----------------------
+** Bug
+ * [EJB-9] - Proxied instances should raise ENFE not LIE
+ * [EJB-59] - count(*) return Integer and not Long
+ * [EJB-101] - callback method overriding should avoid supermethod calls
+ * [EJB-116] - The EntityManager's configuration overwites configurations from the hibernate.cfg.xml file
+ * [EJB-167] - EntityManager must return null, if entity does not exist.
+ * [EJB-168] - Do not register Synchronization on Transaction marked as rollback
+ * [EJB-169] - MappingException thrown when META-INF/orm.xml is not found
+ * [EJB-173] - Resetting joined transaction state on a closed entity manager raise an exception
+ * [EJB-177] - in beforeCompletion phase, the transaction might not be returned causing an NPE
+
+
+** Improvement
+ * [EJB-84] - Integrate the ClassFileTransformer and pass the appropriate entities to enhance
+ * [EJB-159] - RESOURCE_LOCAL should be default in JavaSE
+ * [EJB-172] - Use Hibernate abstraction of the ByteCodeEnhancer for class file transformation
+ * [EJB-175] - Support for createNativeQuery.executeUpdate()
+
+** New Feature
+ * [EJB-165] - Support interceptor and callback XML overriding
+ * [EJB-170] - Try to find <mapping-file/> in the parsed JAR before delegating to the regular resource locator
+
+
+3.1.0.Beta8b (27-04-2006)
+-------------------------
+
+** Bug
+ * [EJB-121] - FileZippedJarVisitor can not handle URL with white spaces in windows XP professional.
+ * [EJB-155] - assumes Map.Entry where string is returned
+ * [EJB-156] - Setting a transaction factory raise an assertion failure
+ * [EJB-166] - StaleObjectStaleException not wrapped into an optimisticLockException when merge is used
+
+
+
+** New Feature
+ * [EJB-157] - Display the version number at init time to avoid user confusion regarding the version used
+ * [EJB-164] - Support for EJB3 mapping files and META-INF/orm.xml
+
+
+3.1beta7 (27-03-2006)
+---------------------
+
+** Bug
+ * [EJB-37] - Check all the spec exceptions to be sure we raise the right ones
+ * [EJB-80] - EMF bootstrapping doesn't work as documented
+ * [EJB-96] - Spelling error in 2.4 section of reference doc
+ * [EJB-114] - NPE when Persistence.createEntityManager(String) is used
+ * [EJB-115] - wrong loglevel in PersistenceXmlLoader.java (line 101)
+ * [EJB-118] - PersistenceXmlLoader logging a fail message
+ * [EJB-119] - @EntityResult definition is not correct
+ * [EJB-123] - Exception "EntityManager is closed" throwed when trying to check isOpen()
+ * [EJB-125] - Can't use Hibernate's FlushMode.NEVER with an EntityManager
+ * [EJB-134] - javax.persistence.OptimisticLockException not thrown
+ * [EJB-139] - em.getTransaction() should raise IllegalStateException if accessed on a JTA EM
+ * [EJB-145] - Support EntityManager.joinTransaction()
+
+
+** Improvement
+ * [EJB-77] - Getting access to the annotationconfiguration behind a Ejb3Configuration
+ * [EJB-135] - em.close() should close the API but let the EM in sync with the attached transaction
+ * [EJB-147] - Validate persistence.xml file from persistence_1_0.xsd
+
+** New Feature
+ * [EJB-90] - Mark transaction for Rollbacked on PersistenceException
+ * [EJB-106] - EntityManager.lock( , LockModeType.WRITE)
+ * [EJB-117] - extra persist() queue
+ * [EJB-137] - Implements EntityExistsException
+ * [EJB-138] - Implements EntityTransaction.setRollbackOnly()
+ * [EJB-141] - Update EntityManagerFactory interface by removing PersistenceContextType and adding the overriding map
+ * [EJB-142] - RollbackTransaction on JTA should clear the persistence context
+ * [EJB-143] - Set the transaction_factory automatically from Transaction_type unless explicitly set
+ * [EJB-144] - Failure of EntityTransaction.commit() should rollback();
+
+
+** Task
+ * [EJB-107] - Check use of persistenceUnitInfo.getClassLoader()
+
+
+3.1beta6 (20-01-2006)
+---------------------
+** Bug
+ * [EJB-93] - @PrePersist callback not called on cascade
+ * [EJB-110] - misnamed method in PersistenceUnitInfo
+ * [EJB-111] - close() throws IllegalStateException( "transaction in progress")
+
+** New Feature
+ * [EJB-50] - Entity callbacks should handle subclassing
+ * [EJB-83] - PersistentUnitInfo and new persistence.xml schema as per the pfd
+ * [EJB-85] - Support CUD operations out of transactions
+ * [EJB-86] - EntityManager.getFlushMode()
+ * [EJB-87] - EntityManager.lock( , LockModeType.READ)
+ * [EJB-88] - EntityManager.clear()
+ * [EJB-89] - Replace EntityNotFoundException to NoResultException for query.getSingleResult()
+ * [EJB-91] - persistence.xml structure changes as per the PFD
+ * [EJB-92] - Implements transactional-type
+ * [EJB-104] - Flag for class file transformation
+ * [EJB-108] - Support EJB3 overriding properties (provider, jta / non-jta datasource, transactionType) over persistence.xml
+
+
+** Improvement
+ * [EJB-100] - Multiple lifecycle per event
+ * [EJB-102] - EJB3 no longer requires to rollback the ids
+
+
+** Deprecation
+ * [EJB-105] - Implicit positional parameters for EJBQL queries is no longer supported
+
+3.1beta5 (13-12-2005)
+---------------------
+** Bug
+ * [EJB-52] - PERSIST cascade loads unilitialized elements at flush time
+ * [EJB-68] - hibernate.ejb.interceptor property in persistence.xml is ignored
+ * [EJB-73] - Id is not set in @PostPersist
+ * [EJB-76] - JarVisitor unqualify algorithm fails when the name ends with 'ar' and is less than 4 chars
+ * [EJB-78] - default value for hibernate.transaction.flush_before_completion
+
+** New Feature
+ * [EJB-58] - Support @MyAnnotation annotated with an @EntityListener
+ * [EJB-71] - Support custom event listeners
+
+
+** Improvement
+ * [EJB-35] - Support custom NamingStrategy as property.
+ * [EJB-72] - Make setDataSource() more out of container friendly
+ * [EJB-75] - Fall back to <property name="blah">blah</property> when the value attribute is empty
+ * [EJB-79] - Package.getPackage() returns null on some classloaders
+
+
+3.1beta4 (07-10-2005)
+---------------------
+ * EJB-67 Lazy access to the stream in JarVisitor leading to a non access when filters are empty (ie no filters)
+ * EJB-65 handle eclipse bundleresource url protocol during metadata search
+ * EJB-66 Support all url protocols that returns zip streams for jars like http
+ * EJB-62 Error during stateful session bean passivation
+ * EJB-61 implicit parameter ? no longer supported
+ * EJB-63 Positional parameters should start from index 1 to say sort of consistent with the spec
+
+3.1beta3 (14-09-2005)
+---------------------
+ * EJB-6 Support ?1, ?2 style positional parameters
+ * EJB-60 Support byte code instrumentation via a ClassFileTransformer
+ * EJB-55 Problems using a .par file with Tomcat
+ * EJB-56 Support exploded jar files *not* ending with .xar
+ * EJB-51 Support persistence.xml declaration and hibernate.cfg.xml
+ * EJB-53 DELETE_ORPHAN not executed at flush time
+ * EJB-52 Persist cascade loads uninitialized elements at flush time
+ * EJB-43 Autodetection magic leads to duplicate imports
+ * EJB-24 ByteArrayBlobType incompatible with Oracle
+ * EJB-28 create an EMF through PersistenceInfo
+ * EJB-44 Support Hibernate Interceptors in EJB3 imlementation as an extension
+ * EJB-40 Entity callbacks should cast away access modifiers
+ * EJB-48 Plug Validator framework into HEM
+ * EJB-47 Validator and Jacc event listeners clashes
+
+3.1beta2 (04-08-2005)
+---------------------
+ * Support package names in <class></class>
+ * EJB-42 Autodetection magic ignores hibernate.cfg.xml
+ * EJB-45 Allow to disable autodetection in .par through a property
+ * EJB-41 Short-circuit dirty checking when no callback are actually called
+ * EJB-38 Standalone EM should search for package-info files
+ * EJB-31 Out-of-container should search for .hbm.xml files
+ * EJB-29 Lifecycle callbacks and dirty checking clash
+ * EJB-36 proxied instances raise an exception in em.contains()
+ * EJB-28 support injected DataSource
+ * EJB-34 EMF.isOpen() is wrong
+ * EJB-27 Support transaction-less operations with getEntityManager()
+ * EJB-23 No lifecycle interceptor used when getCurrentSession() is called
+ * EJB-20 Sync Hibernate *state* and entity on lifecycle @Callbacks
+ * EJB-21 NPE in TransactionImpl.isActive() when tx is not initialized (Shane Bryzak)
+ * EJB-19 <jar-file/> analysed, but the resource path is mandatory and not only the jar name
+ * EJB-18 get mapped classes from .par files both exploded and regular zip
+
+3.1beta1 Preview (24-06-2005)
+-----------------------------
+Initial release
\ No newline at end of file
17 years, 5 months
Hibernate SVN: r13596 - entitymanager/tags/v3_2_0_CR1.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:39:36 -0400 (Wed, 15 Aug 2007)
New Revision: 13596
Added:
entitymanager/tags/v3_2_0_CR1/build.xml
Log:
Move entitymanager tags/entitymanager_v32cr1 to the new structure (v3_2_0_CR1)
Copied: entitymanager/tags/v3_2_0_CR1/build.xml (from rev 13595, tags/entitymanager_v32cr1/HibernateExt/ejb/build.xml)
===================================================================
--- entitymanager/tags/v3_2_0_CR1/build.xml (rev 0)
+++ entitymanager/tags/v3_2_0_CR1/build.xml 2007-08-16 00:39:36 UTC (rev 13596)
@@ -0,0 +1,284 @@
+<!--
+
+ Hibernate Annotations ANT build script.
+
+ You need JDK 5.0 installed to build Hibernate EntityManager.
+
+-->
+
+<project name="HibernateEntityManager" default="dist" basedir=".">
+
+ <!-- Give user a chance to override without editing this file
+ (and without typing -D each time it compiles it) -->
+ <property file="build.properties"/>
+ <property file="${user.home}/.ant.properties"/>
+
+ <!-- Name of project and version, used to create filenames -->
+ <property name="Name" value="Hibernate EntityManager"/>
+ <property name="name" value="hibernate-entitymanager"/>
+ <property name="version" value="3.2.0.CR1"/>
+ <property name="javadoc.packagenames" value="org.hibernate.ejb.*"/>
+ <property name="jdbc.dir" value="jdbc"/>
+ <property name="copy.test" value="true"/>
+ <property name="common.dir" value="../common"/>
+
+ <import file="${common.dir}/common-build.xml"/>
+
+
+ <property name="resources.dir" value="src/resources"/>
+ <property name="testresources.dir" value="src/test-resources"/>
+ <property name="build.testresources.dir" value="${build.dir}/testresources"/>
+ <property name="build.temp.dir" value="${build.dir}/temp"/>
+
+ <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
+ source="1.5"
+ srcdir="${src.dir}"
+ destdir="${classes.dir}"
+ classpathref="lib.class.path"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on"
+ >
+ </javac>
+ </target>
+
+ <target name="packjar">
+ <property name="extension" value="jar"/>
+ <!-- property name="jarname"/ -->
+ <mkdir dir="${build.testresources.dir}"/>
+ <jar destfile="${build.testresources.dir}/${jarname}.${extension}">
+ <!-- fileset dir="${build.temp.dir}"/ -->
+ <fileset dir="${classes.dir}">
+ <include name="**/test/pack/${jarname}/**.*"/>
+ </fileset>
+ <fileset dir="${testresources.dir}/${jarname}">
+ <include name="**/*.*"/>
+ </fileset>
+ </jar>
+ <delete dir="${build.temp.dir}"/>
+ </target>
+
+ <target name="packexploded">
+ <property name="extension" value="jar"/>
+ <!-- property name="jarname"/ -->
+ <mkdir dir="${build.testresources.dir}/${jarname}.${extension}"/>
+ <copy todir="${build.testresources.dir}/${jarname}.${extension}">
+ <!-- fileset dir="${build.temp.dir}"/ -->
+ <fileset dir="${classes.dir}">
+ <include name="**/test/pack/${jarname}/**.*"/>
+ </fileset>
+ <fileset dir="${testresources.dir}/${jarname}">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+ <delete dir="${build.temp.dir}"/>
+ </target>
+
+ <target name="test-resources" description="Prepare all needed jars and pars">
+ <antcall target="packjar" inheritall="true">
+ <param name="extension" value="par"/>
+ <param name="jarname" value="defaultpar"/>
+ </antcall>
+ <antcall target="packjar" inheritall="true">
+ <param name="extension" value="par"/>
+ <param name="jarname" value="explicitpar"/>
+ </antcall>
+ <antcall target="packjar" inheritall="true">
+ <param name="extension" value="par"/>
+ <param name="jarname" value="excludehbmpar"/>
+ </antcall>
+ <antcall target="packjar" inheritall="true">
+ <param name="extension" value="jar"/>
+ <param name="jarname" value="externaljar"/>
+ </antcall>
+ <antcall target="packjar" inheritall="true">
+ <param name="extension" value="par"/>
+ <param name="jarname" value="cfgxmlpar"/>
+ </antcall>
+ <antcall target="packexploded" inheritall="true">
+ <param name="extension" value="par"/>
+ <param name="jarname" value="explodedpar"/>
+ </antcall>
+ </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
+ source="1.5"
+ srcdir="${test.dir}"
+ destdir="${classes.dir}"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on">
+ <classpath>
+ <path refid="lib.class.path"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="junit" depends="compiletest,test-resources">
+ <mkdir dir="test_output"/>
+ <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="lib.class.path"/>
+ <!-- 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="test_output" haltonfailure="no">
+ <fileset dir="${classes.dir}">
+ <include name="**/*Test.class"/>
+ </fileset>
+ </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="test_output"/>
+ <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="test_output" haltonfailure="no" name="${testname}"/>
+ </junit>
+ </target>
+
+ <target name="jar" depends="compile" description="Build the distribution .jar file">
+ <mkdir dir="${classes.dir}/META-INF/services"/>
+ <copy todir="${classes.dir}">
+ <fileset dir="${resources.dir}">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+ <manifest file="${classes.dir}/META-INF/MANIFEST.MF">
+ <attribute name="Product" value="${Name}"/>
+ <attribute name="Version" value="${version}"/>
+ </manifest>
+ <antcall target="common-build.jar"/>
+ </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 -->
+
+ <!-- Some of this can probably be moved to common-build... -->
+ <target name="dist" depends="jar,javadoc,copysource,copytest,copylib,extras" description="Build everything">
+
+ <ant inheritall="false" dir="${basedir}/doc/reference"/>
+ <copy todir="${dist.dir}/doc/reference" failonerror="false">
+ <fileset dir="${basedir}/doc/reference/build">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+
+ <copy todir="${dist.dir}/resources" failonerror="false">
+ <fileset dir="${resources.dir}">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+ <copy todir="${dist.dir}/test-resources" failonerror="false">
+ <fileset dir="${testresources.dir}">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+ <copy todir="${dist.dir}" failonerror="false">
+ <fileset dir="${common.dir}">
+ <include name="common-build.xml"/>
+ </fileset>
+ </copy>
+ <copy file="${basedir}/build.properties.dist" tofile="${dist.dir}/build.properties" failonerror="false">
+ </copy>
+ <antcall target="common-build.dist"/>
+ </target>
+
+ <target name="zip-dist" description="zip the dist">
+ <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="profile" depends="compiletest">
+ <java classname="org.hibernate.ejb.test.Profile" fork="true">
+ <jvmarg value="-XrunjbossInspector:c:\profiler\data,include=org.hibernate.ejb,ignore=*,wakeupOnStartup=true"/>
+ <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="lib.class.path"/>
+ <pathelement path="${classes.dir}"/>
+ <!-- pathelement path="build/test.par"/ -->
+ <pathelement path="${src.dir}"/>
+ <!-- pick up properties from here -->
+ <pathelement path="${test.dir}"/>
+ <!-- pick up mappings from here -->
+ </classpath>
+ </java>
+ </target>
+
+
+</project>
17 years, 5 months
Hibernate SVN: r13595 - entitymanager/tags/v3_2_0_CR1.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:39:31 -0400 (Wed, 15 Aug 2007)
New Revision: 13595
Added:
entitymanager/tags/v3_2_0_CR1/.cvsignore
Log:
Move entitymanager tags/entitymanager_v32cr1 to the new structure (v3_2_0_CR1)
Copied: entitymanager/tags/v3_2_0_CR1/.cvsignore (from rev 13594, tags/entitymanager_v32cr1/HibernateExt/ejb/.cvsignore)
===================================================================
--- entitymanager/tags/v3_2_0_CR1/.cvsignore (rev 0)
+++ entitymanager/tags/v3_2_0_CR1/.cvsignore 2007-08-16 00:39:31 UTC (rev 13595)
@@ -0,0 +1,4 @@
+build.properties
+build
+target
+test_output
17 years, 5 months
Hibernate SVN: r13594 - entitymanager/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:39:28 -0400 (Wed, 15 Aug 2007)
New Revision: 13594
Added:
entitymanager/tags/v3_2_0_CR1/
Log:
Create entitymanager v3_2_0_CR1 structure
17 years, 5 months
Hibernate SVN: r13593 - jpa-api/tags/entitymanager_v3_2_0_CR2.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:39:23 -0400 (Wed, 15 Aug 2007)
New Revision: 13593
Added:
jpa-api/tags/entitymanager_v3_2_0_CR2/etc/
Log:
Move jpa-api tags/entitymanager_v3_2_0_CR2 to the new structure (entitymanager_v3_2_0_CR2)
Copied: jpa-api/tags/entitymanager_v3_2_0_CR2/etc (from rev 13592, tags/entitymanager_v3_2_0_CR2/HibernateExt/ejb-api/etc)
17 years, 5 months
Hibernate SVN: r13592 - jpa-api/tags/entitymanager_v3_2_0_CR2.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:39:18 -0400 (Wed, 15 Aug 2007)
New Revision: 13592
Added:
jpa-api/tags/entitymanager_v3_2_0_CR2/src/
Log:
Move jpa-api tags/entitymanager_v3_2_0_CR2 to the new structure (entitymanager_v3_2_0_CR2)
Copied: jpa-api/tags/entitymanager_v3_2_0_CR2/src (from rev 13591, tags/entitymanager_v3_2_0_CR2/HibernateExt/ejb-api/src)
17 years, 5 months
Hibernate SVN: r13591 - jpa-api/tags/entitymanager_v3_2_0_CR2.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:39:04 -0400 (Wed, 15 Aug 2007)
New Revision: 13591
Added:
jpa-api/tags/entitymanager_v3_2_0_CR2/build.xml
Log:
Move jpa-api tags/entitymanager_v3_2_0_CR2 to the new structure (entitymanager_v3_2_0_CR2)
Copied: jpa-api/tags/entitymanager_v3_2_0_CR2/build.xml (from rev 13590, tags/entitymanager_v3_2_0_CR2/HibernateExt/ejb-api/build.xml)
===================================================================
--- jpa-api/tags/entitymanager_v3_2_0_CR2/build.xml (rev 0)
+++ jpa-api/tags/entitymanager_v3_2_0_CR2/build.xml 2007-08-16 00:39:04 UTC (rev 13591)
@@ -0,0 +1,106 @@
+<!--
+
+ EJB API build script.
+
+ Emmanuel Bernard
+
+-->
+
+<project name="EJB-API" default="jar" basedir=".">
+
+ <!-- Give user a chance to override without editing this file or typing -D -->
+ <property file="build.properties"/>
+ <property file="${user.home}/.ant.properties"/>
+
+ <!-- Name of project and version, used to create filenames -->
+ <property name="name" value="ejb3-persistence"/>
+ <property name="version" value="3.0 Final Release"/>
+
+ <!-- set global properties for this build -->
+ <property name="src.dir" value="src"/>
+ <property name="build.dir" value="build"/>
+ <property name="metainf.dir" value="etc"/>
+ <property name="classes.dir" value="${build.dir}/classes"/>
+ <property name="jar.name" value="${name}"/>
+
+ <property name="javac.debug" value="on"/>
+ <property name="javac.optimize" value="off"/>
+
+ <patternset id="src.files">
+ <!-- include everything we want in the src directory
+ that we didn't want in the jar itself -->
+ <include name="**/*.java"/>
+ <include name="META-INF/ra.xml"/>
+ </patternset>
+
+
+ <!-- ############################ Targets #############################-->
+
+ <target name="clean" description="Cleans up build and dist directories">
+ <delete dir="${build.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}"/>
+
+ </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
+ destdir="${classes.dir}"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on"
+ source="1.5">
+ <src path="${src.dir}"/>
+ </javac>
+ </target>
+
+
+ <target name="jar" depends="compile" description="Build the distribution .jar file">
+ <jar jarfile="${build.dir}/${jar.name}.jar" basedir="${classes.dir}">
+ <include name="javax/**/*.class"/>
+ <manifest>
+ <attribute name="Built-By" value="hibernate.org"/>
+ <attribute name="Specification-Title" value="EJB 3.0"/>
+ <attribute name="Specification-Version" value="${version}"/>
+ <attribute name="Specification-Vendor" value="Sun Microsystems, Inc."/>
+ <attribute name="Implementation-Title" value="EJB"/>
+ <attribute name="Implementation-Version" value="${version} ${TODAY}"/>
+ <attribute name="Implementation-Vendor" value="hibernate.org"/>
+ </manifest>
+ <metainf dir="${basedir}/${metainf.dir}">
+ <include name="**/license.txt"/>
+ </metainf>
+ </jar>
+ </target>
+
+ <target name="javadoc" description="Compile the Javadoc API documentation">
+ <mkdir dir="${build.dir}/api"/>
+ <javadoc
+ packagenames="javax.persistence.*"
+ destdir="${build.dir}/api"
+ use="true"
+ protected="true"
+ version="true"
+ windowtitle="EJB 3.0 Persistence API Documentation"
+ doctitle="EJB 3.0 Persistence API Documentation"
+ link="http://java.sun.com/j2se/1.5/docs/api">
+ <packageset dir="${src.dir}" defaultexcludes="yes" >
+ <include name="**/*" />
+ </packageset>
+ </javadoc>
+ </target>
+
+
+</project>
17 years, 5 months
Hibernate SVN: r13590 - jpa-api/tags/entitymanager_v3_2_0_CR2.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:38:36 -0400 (Wed, 15 Aug 2007)
New Revision: 13590
Added:
jpa-api/tags/entitymanager_v3_2_0_CR2/.cvsignore
Log:
Move jpa-api tags/entitymanager_v3_2_0_CR2 to the new structure (entitymanager_v3_2_0_CR2)
Copied: jpa-api/tags/entitymanager_v3_2_0_CR2/.cvsignore (from rev 13589, tags/entitymanager_v3_2_0_CR2/HibernateExt/ejb-api/.cvsignore)
===================================================================
--- jpa-api/tags/entitymanager_v3_2_0_CR2/.cvsignore (rev 0)
+++ jpa-api/tags/entitymanager_v3_2_0_CR2/.cvsignore 2007-08-16 00:38:36 UTC (rev 13590)
@@ -0,0 +1,3 @@
+build
+.settings
+build.properties
17 years, 5 months
Hibernate SVN: r13589 - jpa-api/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:38:35 -0400 (Wed, 15 Aug 2007)
New Revision: 13589
Added:
jpa-api/tags/entitymanager_v3_2_0_CR2/
Log:
Create jpa-api entitymanager_v3_2_0_CR2 structure
17 years, 5 months
Hibernate SVN: r13588 - common/tags/entitymanager_v3_2_0_CR2.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:38:33 -0400 (Wed, 15 Aug 2007)
New Revision: 13588
Added:
common/tags/entitymanager_v3_2_0_CR2/common-build.xml
Log:
Move common tags/entitymanager_v3_2_0_CR2 to the new structure (entitymanager_v3_2_0_CR2)
Copied: common/tags/entitymanager_v3_2_0_CR2/common-build.xml (from rev 13587, tags/entitymanager_v3_2_0_CR2/HibernateExt/common/common-build.xml)
===================================================================
--- common/tags/entitymanager_v3_2_0_CR2/common-build.xml (rev 0)
+++ common/tags/entitymanager_v3_2_0_CR2/common-build.xml 2007-08-16 00:38:33 UTC (rev 13588)
@@ -0,0 +1,446 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="common-build" default="dist">
+ <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="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"/>
+
+
+ <!-- set Hibernate core related properties -->
+ <property name="hibernate-core.home" location="${common-build.basedir}/../../hibernate-3.2"/>
+ <property name="hibernate-core.jar" location="${hibernate-core.home}/hibernate3.jar"/>
+ <property name="hibernate-core.lib.dir" location="${hibernate-core.home}/lib"/>
+ <property name="hibernate-core.jdbc.dir" location="${hibernate-core.home}/lib"/> <!-- for some reason jdbc.dir is renamed to lib instead of jdbc when doing a dist of hibernate3 -->
+ <property name="hibernate-core.doc.api" location="${hibernate-core.home}/doc/api"/>
+ <property name="hibernate-cvs.doc.reference" location="${common-build.basedir}/../../Hibernate3/doc/reference"/>
+
+ <!--
+ Explicitly define tasks from ant..
+ Unfortunately, checkstyle-all.jar contains it's own version of ANTLR, so ANTLR cannot be in the classpath.
+ -->
+ <!-- Emmanuel: Removed antlr, shouldn't be useful in Ext package...
+ taskdef name="antlr" classname="org.apache.tools.ant.taskdefs.optional.ANTLR">
+ <classpath>
+ <pathelement location="${hibernate-core.lib.dir}/antlr-2.7.2.jar"/>
+ <pathelement location="${hibernate-core.lib.dir}/ant-antlr-1.6.1.jar"/>
+ </classpath>
+ </taskdef -->
+
+ <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask">
+ <classpath>
+ <fileset dir="${hibernate-core.lib.dir}">
+ <include name="junit-*.jar"/>
+ <include name="ant-junit-*.jar"/>
+ </fileset>
+ </classpath>
+ </taskdef>
+
+ <taskdef name="junitreport" classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator">
+ <classpath>
+ <fileset dir="${hibernate-core.lib.dir}">
+ <include name="junit-*.jar"/>
+ <include name="ant-junit-*.jar"/>
+ </fileset>
+ </classpath>
+ </taskdef>
+
+ <path id="lib.class.path">
+ <path location="${hibernate-core.jar}"></path>
+ <fileset dir="${hibernate-core.lib.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${lib.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ <pathelement path="${clover.jar}"/>
+ </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">
+ <fileset dir="${lib.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ <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>
+
+ <available file="${hibernate-core.jar}" type="file" property="hibernate-core.jar.available"/>
+ <fail unless="hibernate-core.jar.available" message="Cannot locate hibernate-core.jar: ${hibernate-core.jar}"/>
+ </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="1.4"
+ source="1.4"
+ 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="1.4"
+ source="1.4"
+ destdir="${testclasses.dir}"
+ classpathref="junit.classpath"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on">
+ <src refid="testsrc.path"/>
+ </javac>
+ </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="copylib" description="Copy jars to lib dir">
+ <mkdir dir="${dist.lib.dir}"/>
+ <copy todir="${dist.lib.dir}">
+ <fileset dir="${lib.dir}">
+ <include name="*.jar"/>
+ <exclude name="log4j.jar"/>
+ <exclude name="checkstyle*.jar"/>
+ <include name="*.txt"/>
+ </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="${hibernate-core.doc.api}/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,copylib,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="test_output"/>
+ <junit printsummary="yes" haltonfailure="yes" forkmode="once">
+ <classpath refid="junit.classpath"/>
+ <formatter type="plain"/>
+ <formatter type="xml"/>
+ <batchtest fork="yes" todir="test_output" haltonfailure="no">
+ <fileset refid="junit.batchtestset"/>
+ </batchtest>
+ </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="./test_output">
+ <fileset dir="test_output">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="./test_output"/>
+ </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"/>
+ </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>
+
+</project>
\ No newline at end of file
17 years, 5 months