Hibernate SVN: r13497 - entitymanager/tags/v3_3_0_GA.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:33:22 -0400 (Wed, 15 Aug 2007)
New Revision: 13497
Added:
entitymanager/tags/v3_3_0_GA/doc/
Log:
Move entitymanager tags/entitymanager_v3_3_0_GA to the new structure (v3_3_0_GA)
Copied: entitymanager/tags/v3_3_0_GA/doc (from rev 13496, tags/entitymanager_v3_3_0_GA/HibernateExt/entitymanager/doc)
17 years, 5 months
Hibernate SVN: r13496 - entitymanager/tags/v3_3_0_GA.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:33:20 -0400 (Wed, 15 Aug 2007)
New Revision: 13496
Added:
entitymanager/tags/v3_3_0_GA/changelog.txt
Log:
Move entitymanager tags/entitymanager_v3_3_0_GA to the new structure (v3_3_0_GA)
Copied: entitymanager/tags/v3_3_0_GA/changelog.txt (from rev 13495, tags/entitymanager_v3_3_0_GA/HibernateExt/entitymanager/changelog.txt)
===================================================================
--- entitymanager/tags/v3_3_0_GA/changelog.txt (rev 0)
+++ entitymanager/tags/v3_3_0_GA/changelog.txt 2007-08-16 00:33:20 UTC (rev 13496)
@@ -0,0 +1,289 @@
+Hibernate EntityManager Changelog
+==================================
+
+3.3.0.GA (19-03-2007)
+---------------------
+
+** Bug
+ * [EJB-46] - PrePersist callback method not called if entity's primary key is null
+ * [EJB-257] - EJB3Configuration should work wo having to call any of the configure(*)
+ * [EJB-259] - Evaluate orm.xml files in referenced jar files
+ * [EJB-261] - merge fails to update join table
+ * [EJB-263] - getSingleResult() and fetch raise abusive NonUniqueResultException
+ * [EJB-269] - Fail to deploy a persistence archive in Weblogic Server
+ * [EJB-275] - JarVisitor fails on WAS with white space
+
+
+** Improvement
+ * [EJB-242] - Be more defensive regarding exotic (aka buggy) URL protocol handler
+ * [EJB-262] - Provides XML file name on parsing error
+ * [EJB-271] - Raise a WARN when deployment descriptors (orm.xml) refer to an unknown property (increase usability)
+ * [EJB-266] - Avoid collection loading during cascaded PERSIST (improving performance on heavily cascaded object graphs)
+
+
+3.2.1.GA (8-12-2006)
+--------------------
+
+** Bug
+ * [EJB-226] - JarVistor.getVisitor does not handle paths containing spaces correctly for an exploded par
+ * [EJB-229] - merge fails with detached obj in 1:1 relationship
+ * [EJB-237] - merge() causes version to increase
+ * [EJB-240] - attribute-override and embedded in orm.xml not working
+ * [EJB-244] - JarVisitor fails on exploded archives with spaces in path
+ * [EJB-247] - HibernatePersistence does not play well with other PersistenceProviders
+ * [EJB-252] - Clarify documentation on package use in persistence.xml <class> (and it's meaning)
+ * [EJB-253] - Support Weblogic JAR URL in JavaSE mode
+
+
+** Improvement
+ * [EJB-232] - Better documentation for <jar-file> and scanning outside of PU root
+ * [EJB-243] - Error in Documentation: persistence.xml for typical Java SE Environment
+ * [EJB-246] - Consider being in a JavaEE container when jta-datasource is used
+ * [EJB-248] - Wrap StaleStateException into an OptimisticLockException during em.getTransaction().commit()
+ * [EJB-254] - Allow DataSource overriding through createEntityManager(String, Map override)
+ * [EJB-256] - Avoid JAR locking on Windows and Tomcat due to URLConnection caching
+
+
+3.2.0.GA (16-10-2006)
+---------------------
+Same code base as 3.2.0.CR3
+
+** Task
+ * [EJB-239] - Add EJB 3.0 JavaDoc to the distribution
+
+
+3.2.0.CR3 (04-10-2006)
+----------------------
+** Bug
+ * [EJB-150] - JarVisitor.addElement does not close passed input streams
+ * [EJB-221] - TransientObjectException with FetchType.LAZY on @ManyToOne and field access on target entity
+ * [EJB-231] - Optimistic locking exception could lead to java.lang.IllegalArgumentException: id to load is required for loading
+
+
+** Improvement
+ * [EJB-234] - Inefficiency during the flush operation
+
+
+3.2.0.CR2 (16-09-2006)
+----------------------
+** Bug
+ * [EJB-98] - EntityManager.find() throws an org.hibernate.ObjectDeletedException if you find something deleted in the same TXA
+ * [EJB-148] - Incorrect exception when @CollectionOfElement is used with @Where and FetchType is EAGER
+ * [EJB-174] - Ejb3Configuration can't open EJB Jar file with persistence.xml in Oracle OC4J server (Jifeng Liu)
+ * [EJB-181] - ExplodedJarVisitor and paths with white spaces
+ * [EJB-185] - Some EJB3 exceptions does not support nested exceptions
+ * [EJB-187] - RuntimeException raised in CallBack methods should be left as is
+ * [EJB-188] - @PostUpdate can be called even if @PreUpdate is not when object is in DELETED state
+ * [EJB-189] - em.getReference() should raise IllegalArgumentException if the id is of the wrong type
+ * [EJB-190] - Query.setParameter() should raise an IllegalArgumentException if the parameter does not exist
+ * [EJB-191] - Incoherent usage of getResultList(), executeUpdate() or getSingleResult() regarding the DML/Select style should raise an IllegalStateException
+ * [EJB-194] - Removing a detached instance is not allowed
+ * [EJB-195] - Wrong query should raise an IllegalArgumentException
+ * [EJB-196] - referencing a transient instance while flushing an association non cascaded should raise IllegalStateException
+ * [EJB-198] - On em.close(), tries to register the transaction even if the transaction is marked for rollback
+ * [EJB-202] - Inaccurate exception message for setFirstResult in QueryImpl
+ * [EJB-203] - exception when using top-level <access>PROPERTY</access> in orm.xml
+ * [EJB-204] - ClassCastException when using <mapped-superclass> in orm.xml
+ * [EJB-205] - refresh() should raise IllegalArgumentException if the entity is not managed
+ * [EJB-207] - em.lock(..., WRITE) raise NPE on some DBs
+ * [EJB-212] - excludeUnlistedClasses ignored in SE case
+ * [EJB-214] - Native Query can not be used with parameter
+ * [EJB-215] - EntityManager fails during transaction commit after it has been closed
+ * [EJB-216] - Query.getSingleResult() whose state-field is null raise an EntityNotFoundException rather than returning null
+ * [EJB-218] - markForRollback() should not swallow the original exception
+ * [EJB-220] - Entity listener documentation contradicts EJB3 specification
+ * [EJB-223] - EntityNotFoundDelegate not Serializable
+
+
+** Improvement
+ * [EJB-82] - Query interface should support parameter lists for positions
+ * [EJB-182] - Add Websphere proprietary jar protocol
+ * [EJB-186] - Set the default cache provider to NoCache to prevent PU misuse to raise exceptions
+ * [EJB-201] - Ejb3Configuration should output a warning if no persistence.xml is found
+ * [EJB-210] - OptimisticLockStrategy should expose the underlying stale entity
+ * [EJB-211] - JavaDoc the EJB 3 API
+
+** New Feature
+ * [EJB-154] - Allow to create/configure an EJB3Configuration without building a sessionfactory
+ * [EJB-160] - Push EJB3Configuration and SessionFactory into JNDI
+ * [EJB-184] - Add EM property for FlushMode
+
+
+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: r13495 - entitymanager/tags/v3_3_0_GA.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:33:17 -0400 (Wed, 15 Aug 2007)
New Revision: 13495
Added:
entitymanager/tags/v3_3_0_GA/build.xml
Log:
Move entitymanager tags/entitymanager_v3_3_0_GA to the new structure (v3_3_0_GA)
Copied: entitymanager/tags/v3_3_0_GA/build.xml (from rev 13494, tags/entitymanager_v3_3_0_GA/HibernateExt/entitymanager/build.xml)
===================================================================
--- entitymanager/tags/v3_3_0_GA/build.xml (rev 0)
+++ entitymanager/tags/v3_3_0_GA/build.xml 2007-08-16 00:33:17 UTC (rev 13495)
@@ -0,0 +1,378 @@
+<!--
+
+ 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.3.0.GA"/>
+ <property name="javadoc.packagenames" value="org.hibernate.ejb.*"/>
+ <property name="jdbc.dir" value="jdbc"/>
+ <property name="copy.test" value="true"/>
+ <property name="javac.source" value="1.5"/>
+ <property name="javac.target" value="1.5"/>
+ <property name="common.dir" value="../common"/>
+
+ <available property="jpa-present" file="${basedir}/../jpa-api" type="dir"/>
+ <property name="jpa-api.jar" value="${basedir}/../jpa-api/build/ejb3-persistence.jar"/>
+ <property name="annotations.jar"
+ value="${basedir}/../annotations/target/hibernate-annotations/hibernate-annotations.jar"/>
+ <property name="validator.jar"
+ value="${basedir}/../validator/target/hibernate-validator/hibernate-validator.jar"/>
+ <property name="commons-annotations.jar"
+ value="${basedir}/../commons-annotations/target/hibernate-commons-annotations/hibernate-commons-annotations.jar"/>
+
+ <import file="${common.dir}/common-build.xml"/>
+ <property name="jpa-javadoc.dir" value="${dist.doc.dir}/jpa-api"/>
+
+
+ <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"/>
+
+ <path id="lib.moduleclass.path">
+ <pathelement location="${jpa-api.jar}"/>
+ <pathelement location="${commons-annotations.jar}"/>
+ <pathelement location="${annotations.jar}"/>
+ <pathelement location="${validator.jar}"/>
+ </path>
+ <path id="junit.moduleclasspath">
+ <pathelement location="${src.dir}"/>
+ <pathelement location="${test.dir}"/>
+ <fileset dir="${jdbc.dir}">
+ <include name="*.jar"/>
+ <include name="*.zip"/>
+ </fileset>
+ <fileset dir="${lib.dir}/test">
+ <include name="*.jar"/>
+ <include name="*.zip"/>
+ </fileset>
+ </path>
+
+ <target name="init">
+ <antcall target="common-build.init"/>
+ <!-- check for dependency artefacts -->
+ <available file="${jpa-api.jar}" type="file" property="jpa-api.jar.available"/>
+ <available file="${commons-annotations.jar}" type="file" property="commons-annotations.jar.available"/>
+ <available file="${annotations.jar}" type="file" property="annotations.jar.available"/>
+ <available file="${validator.jar}" type="file" property="validator.jar.available"/>
+ <mkdir dir="${lib.dir}/test"/>
+ </target>
+
+ <target name="get.jpa-api" depends="init" unless="jpa-api.jar.available">
+ <ant inheritall="false" dir="${basedir}/../jpa-api" target="clean"/>
+ <ant inheritall="false" dir="${basedir}/../jpa-api" target="jar"/>
+ </target>
+
+ <target name="get.commons-annotations" depends="init" unless="commons-annotations.jar.available">
+ <ant inheritall="false" dir="${basedir}/../commons-annotations" target="clean"/>
+ <ant inheritall="false" dir="${basedir}/../commons-annotations" target="jar"/>
+ </target>
+
+ <target name="get.annotations" depends="init" unless="annotations.jar.available">
+ <ant inheritall="false" dir="${basedir}/../annotations" target="clean"/>
+ <ant inheritall="false" dir="${basedir}/../annotations" target="jar"/>
+ </target>
+
+ <target name="get.validator" depends="init" unless="validator.jar.available">
+ <ant inheritall="false" dir="${basedir}/../validator" target="clean"/>
+ <ant inheritall="false" dir="${basedir}/../validator" target="jar"/>
+ </target>
+
+ <target name="compile" depends="init,get.jpa-api,get.commons-annotations,get.annotations,get.validator" 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
+ srcdir="${src.dir}"
+ destdir="${classes.dir}"
+ classpathref="lib.class.path"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on"
+ source="${javac.source}"
+ target="${javac.target}"
+ >
+ </javac>
+ </target>
+
+ <target name="packjar">
+ <property name="extension" value="jar"/>
+ <property name="packagename" value="${jarname}"/>
+ <!-- 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/${packagename}/**.*"/>
+ </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="space par"/>
+ <param name="packagename" value="spacepar"/>
+ </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="packjar" inheritall="true">
+ <param name="extension" value="jar"/>
+ <param name="jarname" value="overridenpar"/>
+ </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
+ srcdir="${test.dir}"
+ destdir="${classes.dir}"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on"
+ source="${javac.source}"
+ target="${javac.target}">
+ <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 -->
+
+ <target name="jpa-javadoc" if="jpa-present">
+ <mkdir dir="${jpa-javadoc.dir}"/>
+ <ant dir="../jpa-api" target="javadoc" inheritAll="false"/>
+ <copy todir="${jpa-javadoc.dir}">
+ <fileset dir="${basedir}/../jpa-api/build/api">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- Some of this can probably be moved to common-build... -->
+ <target name="dist" depends="jar,javadoc,jpa-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 dependencies -->
+ <copy todir="${dist.lib.dir}" failonerror="false">
+ <fileset file="${jpa-api.jar}"/>
+ <fileset file="${commons-annotations.jar}"/>
+ <fileset file="${annotations.jar}"/>
+ <fileset file="${validator.jar}"/>
+ </copy>
+ <mkdir dir="${dist.lib.dir}/test"/>
+
+ <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: r13494 - entitymanager/tags/v3_3_0_GA.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:33:15 -0400 (Wed, 15 Aug 2007)
New Revision: 13494
Added:
entitymanager/tags/v3_3_0_GA/.cvsignore
Log:
Move entitymanager tags/entitymanager_v3_3_0_GA to the new structure (v3_3_0_GA)
Copied: entitymanager/tags/v3_3_0_GA/.cvsignore (from rev 13493, tags/entitymanager_v3_3_0_GA/HibernateExt/entitymanager/.cvsignore)
===================================================================
--- entitymanager/tags/v3_3_0_GA/.cvsignore (rev 0)
+++ entitymanager/tags/v3_3_0_GA/.cvsignore 2007-08-16 00:33:15 UTC (rev 13494)
@@ -0,0 +1,4 @@
+build.properties
+build
+target
+test_output
17 years, 5 months
Hibernate SVN: r13493 - entitymanager/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:33:14 -0400 (Wed, 15 Aug 2007)
New Revision: 13493
Added:
entitymanager/tags/v3_3_0_GA/
Log:
Create entitymanager v3_3_0_GA structure
17 years, 5 months
Hibernate SVN: r13492 - jpa-api/tags/entitymanager_v3_3_1_GA.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:33:11 -0400 (Wed, 15 Aug 2007)
New Revision: 13492
Added:
jpa-api/tags/entitymanager_v3_3_1_GA/etc/
Log:
Move jpa-api tags/entitymanager_v3_3_1_GA to the new structure (entitymanager_v3_3_1_GA)
Copied: jpa-api/tags/entitymanager_v3_3_1_GA/etc (from rev 13491, tags/entitymanager_v3_3_1_GA/HibernateExt/jpa-api/etc)
17 years, 5 months
Hibernate SVN: r13491 - jpa-api/tags/entitymanager_v3_3_1_GA.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:33:06 -0400 (Wed, 15 Aug 2007)
New Revision: 13491
Added:
jpa-api/tags/entitymanager_v3_3_1_GA/src/
Log:
Move jpa-api tags/entitymanager_v3_3_1_GA to the new structure (entitymanager_v3_3_1_GA)
Copied: jpa-api/tags/entitymanager_v3_3_1_GA/src (from rev 13490, tags/entitymanager_v3_3_1_GA/HibernateExt/jpa-api/src)
17 years, 5 months
Hibernate SVN: r13490 - jpa-api/tags/entitymanager_v3_3_1_GA.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:33:03 -0400 (Wed, 15 Aug 2007)
New Revision: 13490
Added:
jpa-api/tags/entitymanager_v3_3_1_GA/doc/
Log:
Move jpa-api tags/entitymanager_v3_3_1_GA to the new structure (entitymanager_v3_3_1_GA)
Copied: jpa-api/tags/entitymanager_v3_3_1_GA/doc (from rev 13489, tags/entitymanager_v3_3_1_GA/HibernateExt/jpa-api/doc)
17 years, 5 months
Hibernate SVN: r13489 - jpa-api/tags/entitymanager_v3_3_1_GA.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:33:00 -0400 (Wed, 15 Aug 2007)
New Revision: 13489
Added:
jpa-api/tags/entitymanager_v3_3_1_GA/build.xml
Log:
Move jpa-api tags/entitymanager_v3_3_1_GA to the new structure (entitymanager_v3_3_1_GA)
Copied: jpa-api/tags/entitymanager_v3_3_1_GA/build.xml (from rev 13488, tags/entitymanager_v3_3_1_GA/HibernateExt/jpa-api/build.xml)
===================================================================
--- jpa-api/tags/entitymanager_v3_3_1_GA/build.xml (rev 0)
+++ jpa-api/tags/entitymanager_v3_3_1_GA/build.xml 2007-08-16 00:33:00 UTC (rev 13489)
@@ -0,0 +1,109 @@
+<!--
+
+ 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"
+ overview="${basedir}/doc/api/package.html"
+ windowtitle="EJB 3.0 Persistence API Documentation"
+ doctitle="EJB 3.0 Persistence API Documentation"
+ stylesheetfile="./etc/jdstyle.css"
+ 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: r13488 - jpa-api/tags/entitymanager_v3_3_1_GA.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:32:58 -0400 (Wed, 15 Aug 2007)
New Revision: 13488
Added:
jpa-api/tags/entitymanager_v3_3_1_GA/.cvsignore
Log:
Move jpa-api tags/entitymanager_v3_3_1_GA to the new structure (entitymanager_v3_3_1_GA)
Copied: jpa-api/tags/entitymanager_v3_3_1_GA/.cvsignore (from rev 13487, tags/entitymanager_v3_3_1_GA/HibernateExt/jpa-api/.cvsignore)
===================================================================
--- jpa-api/tags/entitymanager_v3_3_1_GA/.cvsignore (rev 0)
+++ jpa-api/tags/entitymanager_v3_3_1_GA/.cvsignore 2007-08-16 00:32:58 UTC (rev 13488)
@@ -0,0 +1,3 @@
+build
+.settings
+build.properties
17 years, 5 months