Hibernate SVN: r13387 - annotations/tags/v3_0_0_Alpha3.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:26:44 -0400 (Wed, 15 Aug 2007)
New Revision: 13387
Added:
annotations/tags/v3_0_0_Alpha3/changelog.txt
Log:
Move annotations tags/annotations_v30alpha3 to the new structure (v3_0_0_Alpha3)
Copied: annotations/tags/v3_0_0_Alpha3/changelog.txt (from rev 13386, tags/annotations_v30alpha3/HibernateExt/metadata/changelog.txt)
===================================================================
--- annotations/tags/v3_0_0_Alpha3/changelog.txt (rev 0)
+++ annotations/tags/v3_0_0_Alpha3/changelog.txt 2007-08-16 00:26:44 UTC (rev 13387)
@@ -0,0 +1,74 @@
+Hibernate Annotations Changelog
+===============================
+
+3.0alpha3 (28-02-2005)
+----------------------
+* HBX-116 Support for Where clause in classes and collections @Where(clause="")
+* HBX-115 Support for class proxying configuration: @Proxy(lazy=false, proxyClassName="my.Interface")
+* HBX-88 Support for hibernate type abstraction through @Type (only on basic properties for now)
+* HBX-108 Support @BatchSize(size=n) for entities and collections
+* HBX-107 implements @org.hibernate.annotations.Entity
+* HBX-103 handle abstract classes
+* HBX-83 precision & scale support for column (Bogdan Ghidireac)
+
+3.0alpha2 (25-01-2005)
+----------------------
+* HBX-61 Support for @UniqueConstraint (except primaryKey=true)
+* HBX-60 Support for a proper @TableGenerator (using MultipleHiLoPerTableGenerator)
+* HBX-63 Support @GeneratorTable
+* HBX-68 Add declarative configuration of annotated classes
+* HBX-74 Rollback the HB-1315 fix: dialect no longer have to be set in hibernate.properties
+
+
+Hibernate-annotations-3.0alpha1 based on the EJB3 Early Draft 1 (6.01.2005)
+---------------------------------------------------------------------------
+* Support for EJB3 annotations:
+ - @Transient
+ - @Column (not primaryKey)
+ - @JoinColumn (referencedColumnName - only for a reference to a PK, not primaryKey)
+ - @Version
+ - @Basic
+ - @Entity
+ - @Table (not uniqueConstraints)
+ - @AccessType
+ - @Id
+ - @CascadeType
+ - @FetchType
+ - @GeneratorType (NONE, IDENTITY, TABLE, SEQUENCE)
+ - @TableGenerator (with scope visibility)
+ - @SequenceGenerator (with scope visibility, does not support initialValue() and allocationSize())
+ - *not* @GeneratorTable (will have to write a new TableHiloGenerator, but it can wait)
+ - @ManyToOne (not optional)
+ - @OneToMany (Set and Collection, generics version or not, JoinColumn not guessed)
+ - @OneToOne
+ but not optional
+ no composite PK/FK
+ - @ManyToMany
+ - @AssociationTable (Has to be on both sides)
+ - @Inheritance
+ - @InheritanceType (has to be defined on every classes of the hierarchy for JOINED strategy,
+ not very clear about the TABLE_PER_CLASS strategy)
+ - @DiscriminatorColumn
+ - @DiscriminatorType
+ - @InheritanceJoinColumn
+ - @InheritanceJoinColumns
+ this annotation for Composite PK Entities has to be explicit, I do not respect the implicit semantic of the EJB3 spec
+ - @SecondaryTable (@OneToMany @JoinColumn(secondaryTable="..." does not work yet due to H3 core issue HHH-36
+ - @SecondaryTables
+ this annotation for Composite PK Entities has to be explicit, I do not respect the implicit semantic of the EJB3 spec
+ - @DependentObject
+ - @Dependent
+ - @DependentAttribute (only for basic properties as per the spec)
+ - @Id in conjunction with @DependentObject (composite primary keys)
+ - @JoinColumns in conjunction with @ManytoOne, @OneToMany, @ManytoMany
+ - note that the composite FK columns have to be in the same table (no != secondary tables). This is probably a weird case and certainly a not recommanded one.
+
+Still missing or incomplete:
+ - use of referencedColumnName for column other than the PK ones (HX-62)
+ - uniqueConstraints (HBX-61)
+ - @GeneratorTable (HBX-63)
+ - @OneToOne and composite PK, and composite FK (HBX-44, HBX-56)
+ - repect semantic of @TableGenerator (HBX-60)
+ - support for initialValue and allocationSize in @SequenceGenerator (HBX-59)
+ - implicit FK definition should respect the EJB3 semantic (HBX-55)
+ - better semantic of cascade (HBX-47)
\ No newline at end of file
17 years, 5 months
Hibernate SVN: r13386 - annotations/tags/v3_0_0_Alpha3.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:26:43 -0400 (Wed, 15 Aug 2007)
New Revision: 13386
Added:
annotations/tags/v3_0_0_Alpha3/build.xml
Log:
Move annotations tags/annotations_v30alpha3 to the new structure (v3_0_0_Alpha3)
Copied: annotations/tags/v3_0_0_Alpha3/build.xml (from rev 13385, tags/annotations_v30alpha3/HibernateExt/metadata/build.xml)
===================================================================
--- annotations/tags/v3_0_0_Alpha3/build.xml (rev 0)
+++ annotations/tags/v3_0_0_Alpha3/build.xml 2007-08-16 00:26:43 UTC (rev 13386)
@@ -0,0 +1,137 @@
+<!--
+
+ Hibernate Annotations ANT build script.
+
+ Note that javac, javadoc etc. is forking javac, javadoc etc. based on
+ relative names to ${jdk15.home}
+
+-->
+
+<project name="HibernateAnnotations" 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 Annotations"/>
+ <property name="name" value="hibernate-annotations"/>
+ <property name="version" value="3.0alpha3"/>
+ <property name="javadoc.packagenames" value="org.hibernate.*"/>
+ <property name="jdbc.dir" value="jdbc"/>
+
+ <import file="../common/common-build.xml"/>
+
+ <target name="init" depends="common-build.init">
+ <available file="${jdk15.home}" type="dir" property="jdk15.available"/>
+ <fail unless="jdk15.available">
+ Could not find ${jdk15.home}. jdk15.home must point to a JDK 1.5 directory.
+ </fail>
+ </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
+ compiler="extJavac"
+ executable="${jdk15.home}/bin/javac"
+ source="1.5"
+ srcdir="${src.dir}"
+ destdir="${classes.dir}"
+ classpathref="lib.class.path"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on"
+ >
+ <bootclasspath>
+ <fileset dir="${jdk15.home}/jre/lib" includes="*.jar"/>
+ </bootclasspath>
+ </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
+ compiler="extJavac"
+ executable="${jdk15.home}/bin/javac"
+ source="1.5"
+ srcdir="${test.dir}"
+ destdir="${classes.dir}"
+ classpathref="lib.class.path"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on">
+ <bootclasspath>
+ <fileset dir="${jdk15.home}/jre/lib" includes="*.jar"/>
+ </bootclasspath>
+
+ </javac>
+ </target>
+
+ <target name="junit" depends="compiletest">
+ <mkdir dir="test_output"/>
+ <junit fork="yes" jvm="${jdk15.home}/bin/java" printsummary="yes" haltonfailure="yes">
+ <classpath>
+ <fileset dir="${jdbc.dir}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+ <path refid="lib.class.path"/>
+ <pathelement path="${classes.dir}"/>
+ <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 jvm="${jdk15.home}/bin/java" 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="${classes.dir}"/>
+ <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="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>
+
+ <!-- Temporary new target for docs -->
+ <target name="dist" depends="jar,javadoc,copysource,copylib,extras" description="Build everything">
+ <copy todir="${dist.dir}/doc" failonerror="false">
+ <fileset dir="doc">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+ <antcall target="common-build.dist"/>
+ </target>
+
+
+</project>
17 years, 5 months
Hibernate SVN: r13385 - annotations/tags/v3_0_0_Alpha3.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:26:41 -0400 (Wed, 15 Aug 2007)
New Revision: 13385
Added:
annotations/tags/v3_0_0_Alpha3/.cvsignore
Log:
Move annotations tags/annotations_v30alpha3 to the new structure (v3_0_0_Alpha3)
Copied: annotations/tags/v3_0_0_Alpha3/.cvsignore (from rev 13384, tags/annotations_v30alpha3/HibernateExt/metadata/.cvsignore)
===================================================================
--- annotations/tags/v3_0_0_Alpha3/.cvsignore (rev 0)
+++ annotations/tags/v3_0_0_Alpha3/.cvsignore 2007-08-16 00:26:41 UTC (rev 13385)
@@ -0,0 +1,5 @@
+target
+build
+build.properties
+test_output
+testout
\ No newline at end of file
17 years, 5 months
Hibernate SVN: r13384 - annotations/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:26:40 -0400 (Wed, 15 Aug 2007)
New Revision: 13384
Added:
annotations/tags/v3_0_0_Alpha3/
Log:
Create annotations v3_0_0_Alpha3 structure
17 years, 5 months
Hibernate SVN: r13383 - jpa-api/tags/annotations_v3_0_0_Beta1.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:26:37 -0400 (Wed, 15 Aug 2007)
New Revision: 13383
Added:
jpa-api/tags/annotations_v3_0_0_Beta1/etc/
Log:
Move jpa-api tags/annotations_v30beta1 to the new structure (annotations_v3_0_0_Beta1)
Copied: jpa-api/tags/annotations_v3_0_0_Beta1/etc (from rev 13382, tags/annotations_v30beta1/HibernateExt/ejb-api/etc)
17 years, 5 months
Hibernate SVN: r13382 - jpa-api/tags/annotations_v3_0_0_Beta1.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:26:35 -0400 (Wed, 15 Aug 2007)
New Revision: 13382
Added:
jpa-api/tags/annotations_v3_0_0_Beta1/src/
Log:
Move jpa-api tags/annotations_v30beta1 to the new structure (annotations_v3_0_0_Beta1)
Copied: jpa-api/tags/annotations_v3_0_0_Beta1/src (from rev 13381, tags/annotations_v30beta1/HibernateExt/ejb-api/src)
17 years, 5 months
Hibernate SVN: r13381 - jpa-api/tags/annotations_v3_0_0_Beta1.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:26:30 -0400 (Wed, 15 Aug 2007)
New Revision: 13381
Added:
jpa-api/tags/annotations_v3_0_0_Beta1/build.xml
Log:
Move jpa-api tags/annotations_v30beta1 to the new structure (annotations_v3_0_0_Beta1)
Copied: jpa-api/tags/annotations_v3_0_0_Beta1/build.xml (from rev 13380, tags/annotations_v30beta1/HibernateExt/ejb-api/build.xml)
===================================================================
--- jpa-api/tags/annotations_v3_0_0_Beta1/build.xml (rev 0)
+++ jpa-api/tags/annotations_v3_0_0_Beta1/build.xml 2007-08-16 00:26:30 UTC (rev 13381)
@@ -0,0 +1,97 @@
+<!--
+
+ EJB API build script.
+
+ Emmanuel Bernard
+
+-->
+
+<project name="Hibernate" 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="ejb"/>
+ <property name="version" value="3.0-edr2"/>
+
+ <!-- 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}-${version}"/>
+
+ <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}"/>
+
+ <available file="${jdk15.home}" type="dir" property="jdk15.available"/>
+ <fail unless="jdk15.available">
+ Could not find ${jdk15.home}. jdk15.home must point to a JDK 1.5 directory.
+ </fail>
+ </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
+ compiler="extJavac"
+ executable="${jdk15.home}/bin/javac"
+ destdir="${classes.dir}"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on"
+ source="1.5">
+ <bootclasspath>
+ <fileset dir="${jdk15.home}/jre/lib" includes="*.jar"/>
+ </bootclasspath>
+ <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"/>
+ <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>
+
+</project>
17 years, 5 months
Hibernate SVN: r13380 - jpa-api/tags/annotations_v3_0_0_Beta1.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:26:29 -0400 (Wed, 15 Aug 2007)
New Revision: 13380
Added:
jpa-api/tags/annotations_v3_0_0_Beta1/.cvsignore
Log:
Move jpa-api tags/annotations_v30beta1 to the new structure (annotations_v3_0_0_Beta1)
Copied: jpa-api/tags/annotations_v3_0_0_Beta1/.cvsignore (from rev 13379, tags/annotations_v30beta1/HibernateExt/ejb-api/.cvsignore)
===================================================================
--- jpa-api/tags/annotations_v3_0_0_Beta1/.cvsignore (rev 0)
+++ jpa-api/tags/annotations_v3_0_0_Beta1/.cvsignore 2007-08-16 00:26:29 UTC (rev 13380)
@@ -0,0 +1,3 @@
+build
+.settings
+build.properties
17 years, 5 months
Hibernate SVN: r13379 - jpa-api/tags.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:26:27 -0400 (Wed, 15 Aug 2007)
New Revision: 13379
Added:
jpa-api/tags/annotations_v3_0_0_Beta1/
Log:
Create jpa-api annotations_v3_0_0_Beta1 structure
17 years, 5 months
Hibernate SVN: r13378 - common/tags/annotations_v3_0_0_Beta1.
by hibernate-commits@lists.jboss.org
Author: epbernard
Date: 2007-08-15 20:26:24 -0400 (Wed, 15 Aug 2007)
New Revision: 13378
Added:
common/tags/annotations_v3_0_0_Beta1/common-build.xml
Log:
Move common tags/annotations_v30beta1 to the new structure (annotations_v3_0_0_Beta1)
Copied: common/tags/annotations_v3_0_0_Beta1/common-build.xml (from rev 13377, tags/annotations_v30beta1/HibernateExt/common/common-build.xml)
===================================================================
--- common/tags/annotations_v3_0_0_Beta1/common-build.xml (rev 0)
+++ common/tags/annotations_v3_0_0_Beta1/common-build.xml 2007-08-16 00:26:24 UTC (rev 13378)
@@ -0,0 +1,331 @@
+<?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="test"/>
+ <property name="lib.dir" location="lib"/>
+ <property name="build.dir" location="build"/>
+ <property name="classes.dir" location="${build.dir}/classes"/>
+ <property name="dist.target.dir" location="target"/>
+ <property name="dist.dir" location="${dist.target.dir}/${name}-${version}"/>
+ <property name="doc.dir" location="doc"/>
+ <property name="doc.api.dir" location="${doc.dir}/api"/>
+
+ <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="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.0"/>
+ <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}/jdbc"/>
+ <property name="hibernate-core.doc.api" location="${hibernate-core.home}/doc/api"/>
+
+ <!--
+ 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>
+ <pathelement location="${hibernate-core.lib.dir}/junit-3.8.1.jar"/>
+ <pathelement location="${hibernate-core.lib.dir}/ant-junit-1.6.1.jar"/>
+ </classpath>
+ </taskdef>
+
+ <taskdef name="junitreport" classname="org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator">
+ <classpath>
+ <pathelement location="${hibernate-core.lib.dir}/ant-junit-1.6.1.jar"/>
+ <pathelement location="${hibernate-core.lib.dir}/junit-3.8.1.jar"/>
+ </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>
+ </path>
+
+ <patternset id="support.files">
+ <include name="**/*.jpg"/>
+ <include name="**/*.gif"/>
+ <include name="**/*.dtd"/>
+ <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="${classes.dir}" id="junit.batchtestset">
+ <include name="**/*Test.class"/>
+ </fileset>
+
+ <path id="testsrc.path">
+ <pathelement location="${test.dir}"/>
+ </path>
+
+ <path id="junit.classpath">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ <pathelement path="${classes.dir}"/>
+ <path refid="lib.class.path"/>
+ <path refid="junit.moduleclasspath"/>
+ </path>
+
+ <!-- Tasks -->
+
+ <target name="clean" description="Cleans up build and dist directories">
+ <delete dir="${build.dir}"/>
+ <delete dir="${dist.target.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}"/>
+ <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"
+ 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
+ destdir="${classes.dir}"
+ classpathref="lib.class.path"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ nowarn="on">
+ <src refid="testsrc.path"/>
+ </javac>
+ </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"/>
+ <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>
+
+ <!-- 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}.zip">
+ <zipfileset prefix="${name}-${version}" dir="${dist.dir}"/>
+ </zip>
+ <tar compression="gzip" tarfile="${dist.dir}.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="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>
+
+</project>
\ No newline at end of file
17 years, 5 months