HHH-7197 - update build scripts to not use deprecated gradle apis and change manual's xml declation to use doc namespace

This commit is contained in:
Strong Liu 2012-03-26 15:12:10 +08:00
parent 96e23180d7
commit e4a82a0b6b
38 changed files with 105 additions and 136 deletions

View File

@ -168,7 +168,7 @@ subprojects { subProject ->
deployerJars "org.apache.maven.wagon:wagon-http:1.0" deployerJars "org.apache.maven.wagon:wagon-http:1.0"
} }
aptDumpDir = file( buildDirName + "/tmp/apt" ) aptDumpDir = file( "${buildDir}/tmp/apt" )
sourceSets.main { sourceSets.main {
compileClasspath += configurations.provided compileClasspath += configurations.provided
@ -231,7 +231,7 @@ subprojects { subProject ->
include '**/*.properties' include '**/*.properties'
include '**/*.xml' include '**/*.xml'
} }
into sourceSets.test.classesDir into sourceSets.test.output.classesDir
} }
} ) } )

View File

@ -39,19 +39,18 @@ dependencies {
// common // common
compile gradleApi() compile gradleApi()
compile localGroovy() compile localGroovy()
compile 'org.apache.ant:ant:1.8.2'
// compile 'org.apache.maven:maven-ant-tasks:2.1.0'
// needed?
// compile 'org.apache.maven.wagon:wagon-http:1.0-beta-6'
// injection plugin
compile 'javassist:javassist:3.12.0.GA'
groovy localGroovy() groovy localGroovy()
compile 'org.apache.ant:ant:1.8.2'
// injection plugin
compile 'org.javassist:javassist:3.15.0-GA'
} }
idea { idea {
project {
jdkName = "1.6"
}
module { module {
downloadSources = true downloadSources = true
downloadJavadoc = true downloadJavadoc = true

View File

@ -23,11 +23,9 @@
*/ */
package org.hibernate.build.gradle.testing.database; package org.hibernate.build.gradle.testing.database;
import java.io.File;
import org.gradle.api.Project; import org.gradle.api.Project;
import org.gradle.api.artifacts.Configuration; import org.gradle.api.artifacts.Configuration;
import org.gradle.api.internal.artifacts.dependencies.DefaultSelfResolvingDependency;
/** /**
* Database profile as defined by a directory named {@code jdbc} containing JDBC drivers. * Database profile as defined by a directory named {@code jdbc} containing JDBC drivers.
@ -41,9 +39,13 @@ public class JdbcDirectoryProfile extends AbstractDatabaseProfileImpl {
public JdbcDirectoryProfile(File jdbcDirectory, Project project) { public JdbcDirectoryProfile(File jdbcDirectory, Project project) {
super( jdbcDirectory.getParentFile(), project ); super( jdbcDirectory.getParentFile(), project );
jdbcDependencies = prepareConfiguration( getName() ); jdbcDependencies = prepareConfiguration( getName() );
DefaultSelfResolvingDependency dependency = // DefaultSelfResolvingDependency dependency =
new DefaultSelfResolvingDependency( project.files( jdbcDirectory.listFiles() ) ); // new DefaultSelfResolvingDependency( project.files( jdbcDirectory.listFiles() ) );
jdbcDependencies.addDependency( dependency ); File [] jdbcDriverJars = jdbcDirectory.listFiles();
// jdbcDependencies.addDependency( dependency );
project.dependencies {
jdbcDependency files(jdbcDriverJars)
}
} }
@Override @Override

View File

@ -136,9 +136,9 @@ public class MatrixTestingPlugin implements Plugin<Project> {
} }
final SourceSet mainSourceSet = sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME); //sourceSets.main final SourceSet mainSourceSet = sourceSets.getByName(SourceSet.MAIN_SOURCE_SET_NAME); //sourceSets.main
final SourceSet unitTestSourceSet = sourceSets.getByName(SourceSet.TEST_SOURCE_SET_NAME); //sourceSets.test final SourceSet unitTestSourceSet = sourceSets.getByName(SourceSet.TEST_SOURCE_SET_NAME); //sourceSets.test
sourceSet.compileClasspath = mainSourceSet.classes + unitTestSourceSet.classes + matrixCompileConfig sourceSet.compileClasspath = mainSourceSet.output + unitTestSourceSet.output + matrixCompileConfig
sourceSet.runtimeClasspath = sourceSet.classes + mainSourceSet.classes + unitTestSourceSet.classes + matrixRuntimeConfig sourceSet.runtimeClasspath = sourceSet.output + mainSourceSet.output + unitTestSourceSet.output + matrixRuntimeConfig
sourceSet.classesDir = new File(unitTestSourceSet.classesDir.parentFile, "matrix") sourceSet.output.classesDir = new File(unitTestSourceSet.output.classesDir.parentFile, "matrix")
sourceSet.resources { sourceSet.resources {
setSrcDirs(['src/matrix/java', 'src/matrix/resources']) setSrcDirs(['src/matrix/java', 'src/matrix/resources'])
} }
@ -170,7 +170,7 @@ public class MatrixTestingPlugin implements Plugin<Project> {
final Test nodeTask = project.tasks.add( taskName, Test ); final Test nodeTask = project.tasks.add( taskName, Test );
nodeTask.description = "Runs the matrix against ${node.name}" nodeTask.description = "Runs the matrix against ${node.name}"
nodeTask.classpath = node.databaseProfile.testingRuntimeConfiguration + matrixSourceSet.runtimeClasspath nodeTask.classpath = node.databaseProfile.testingRuntimeConfiguration + matrixSourceSet.runtimeClasspath
nodeTask.testClassesDir = matrixSourceSet.classesDir nodeTask.testClassesDir = matrixSourceSet.output.classesDir
nodeTask.ignoreFailures = true nodeTask.ignoreFailures = true
nodeTask.workingDir = node.baseOutputDirectory nodeTask.workingDir = node.baseOutputDirectory
nodeTask.testReportDir = new File(node.baseOutputDirectory, "reports") nodeTask.testReportDir = new File(node.baseOutputDirectory, "reports")
@ -192,7 +192,7 @@ public class MatrixTestingPlugin implements Plugin<Project> {
final Test matrixUnitTask = project.tasks.add("matrixUnitTest", Test) final Test matrixUnitTask = project.tasks.add("matrixUnitTest", Test)
matrixUnitTask.description = "Run matrix sources as unit test" matrixUnitTask.description = "Run matrix sources as unit test"
matrixUnitTask.classpath = matrixSourceSet.runtimeClasspath matrixUnitTask.classpath = matrixSourceSet.runtimeClasspath
matrixUnitTask.testClassesDir = matrixSourceSet.classesDir matrixUnitTask.testClassesDir = matrixSourceSet.output.classesDir
matrixUnitTask.workingDir = test.workingDir matrixUnitTask.workingDir = test.workingDir
matrixUnitTask.testReportDir = test.testReportDir matrixUnitTask.testReportDir = test.testReportDir
@ -206,21 +206,21 @@ public class MatrixTestingPlugin implements Plugin<Project> {
include '**/*.properties' include '**/*.properties'
include '**/*.xml' include '**/*.xml'
} }
into matrixSourceSet.classesDir into matrixSourceSet.output.classesDir
} }
project.copy { project.copy {
from(sourceSets.test.resources.srcDirs) { from(sourceSets.test.resources.srcDirs) {
include '**/*.properties' include '**/*.properties'
include '**/*.xml' include '**/*.xml'
} }
into matrixSourceSet.classesDir into matrixSourceSet.output.classesDir
} }
project.copy { project.copy {
from(matrixSourceSet.java.srcDirs) { from(matrixSourceSet.java.srcDirs) {
include '**/*.properties' include '**/*.properties'
include '**/*.xml' include '**/*.xml'
} }
into matrixSourceSet.classesDir into matrixSourceSet.output.classesDir
} }
}) })

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="additionalmodules"> <chapter xml:id="additionalmodules" xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink">
<title>Additional modules</title> <title>Additional modules</title>
<para>Hibernate Core also offers integration with some external <para>Hibernate Core also offers integration with some external
@ -229,7 +228,7 @@
<para> <para>
For more information check the Hibernate Validator reference documentation at For more information check the Hibernate Validator reference documentation at
<link xlink:href="http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html/" xmlns:xlink="http://www.w3.org/1999/xlink"/> <link xl:href="http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html/"/>
</para> </para>
</section> </section>
</section> </section>
@ -247,7 +246,7 @@
model, querying mismatch...) Hibernate Search indexes your domain model thanks to a few annotations, model, querying mismatch...) Hibernate Search indexes your domain model thanks to a few annotations,
takes care of the database / index synchronization and brings you back regular managed objects from takes care of the database / index synchronization and brings you back regular managed objects from
free text queries. Hibernate Search is using free text queries. Hibernate Search is using
<link xlink:href="http://lucene.apache.org" xmlns:xlink="http://www.w3.org/1999/xlink">Apache Lucene</link> <link xl:href="http://lucene.apache.org" >Apache Lucene</link>
under the covers. under the covers.
</para> </para>
</section> </section>
@ -264,7 +263,7 @@
<para> <para>
Check the Hibernate Search reference documentation ( Check the Hibernate Search reference documentation (
<link xlink:href="http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html/" xmlns:xlink="http://www.w3.org/1999/xlink"/> <link xl:href="http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html/" />
) for more information. ) for more information.
</para> </para>
</section> </section>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="architecture"> <chapter xml:id="architecture" xmlns="http://docbook.org/ns/docbook">
<title>Architecture</title> <title>Architecture</title>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="associations"> <chapter xml:id="associations" xmlns="http://docbook.org/ns/docbook">
<title>Association Mappings</title> <title>Association Mappings</title>

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="mapping"> <chapter xml:id="mapping" xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink">
<title>Basic O/R Mapping</title> <title>Basic O/R Mapping</title>
<section xml:id="mapping-declaration" revision="2"> <section xml:id="mapping-declaration" revision="2">
@ -1585,8 +1584,8 @@ public String getId() {</programlisting>
mac address and integrating it via the mac address and integrating it via the
<interfacename>org.hibernate.id.UUIDGenerationStrategy</interfacename> <interfacename>org.hibernate.id.UUIDGenerationStrategy</interfacename>
contract. Two such libraries known at time of this contract. Two such libraries known at time of this
writing include <link xlink:href="http://johannburkard.de/software/uuid/"/> writing include <link xl:href="http://johannburkard.de/software/uuid/"/>
and <link xlink:href="http://commons.apache.org/sandbox/id/uuid.html"/> and <link xl:href="http://commons.apache.org/sandbox/id/uuid.html"/>
</para> </para>
</listitem> </listitem>
</itemizedlist></para> </itemizedlist></para>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="batch"> <chapter xml:id="batch" xmlns="http://docbook.org/ns/docbook" >
<title>Batch processing</title> <title>Batch processing</title>
<para> <para>
@ -167,7 +166,7 @@ session.close();]]></programlisting>
(DML) the statements: <literal>INSERT</literal>, <literal>UPDATE</literal>, <literal>DELETE</literal>) (DML) the statements: <literal>INSERT</literal>, <literal>UPDATE</literal>, <literal>DELETE</literal>)
will not affect in-memory state. However, Hibernate provides methods will not affect in-memory state. However, Hibernate provides methods
for bulk SQL-style DML statement execution that is performed through the for bulk SQL-style DML statement execution that is performed through the
Hibernate Query Language (<link linkend="queryhql">HQL</link>). Hibernate Query Language (<xref linkend="queryhql">HQL</xref>).
</para> </para>
<para> <para>
@ -195,7 +194,7 @@ session.close();]]></programlisting>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
No <link linkend="queryhql-joins-forms">joins</link>, either implicit or explicit, No <xref linkend="queryhql-joins-forms">joins</xref>, either implicit or explicit,
can be specified in a bulk HQL query. Sub-queries can be used in the where-clause, where can be specified in a bulk HQL query. Sub-queries can be used in the where-clause, where
the subqueries themselves may contain joins. the subqueries themselves may contain joins.
</para> </para>
@ -227,8 +226,8 @@ session.close();]]></programlisting>
<para> <para>
In keeping with the EJB3 specification, HQL <literal>UPDATE</literal> statements, by default, do not effect the In keeping with the EJB3 specification, HQL <literal>UPDATE</literal> statements, by default, do not effect the
<link linkend="mapping-declaration-version">version</link> <xref linkend="mapping-declaration-version">version</xref>
or the <link linkend="mapping-declaration-timestamp">timestamp</link> property values or the <xref linkend="mapping-declaration-timestamp">timestamp</xref> property values
for the affected entities. However, for the affected entities. However,
you can force Hibernate to reset the <literal>version</literal> or you can force Hibernate to reset the <literal>version</literal> or
<literal>timestamp</literal> property values through the use of a <literal>versioned update</literal>. <literal>timestamp</literal> property values through the use of a <literal>versioned update</literal>.

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="best-practices" revision="3"> <chapter xml:id="best-practices" revision="3" xmlns="http://docbook.org/ns/docbook">
<title>Best Practices</title> <title>Best Practices</title>
<variablelist spacing="compact"> <variablelist spacing="compact">

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE bibliography SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<bibliography> <bibliography xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>References</title> <title>References</title>
<biblioentry xml:id="biblio-PoEAA"> <biblioentry xml:id="biblio-PoEAA">
@ -31,7 +30,7 @@
<subtitle>Second Edition of Hibernate in Action</subtitle> <subtitle>Second Edition of Hibernate in Action</subtitle>
<biblioid class="isbn">1-932394-88-5</biblioid> <biblioid class="isbn">1-932394-88-5</biblioid>
<bibliomisc> <bibliomisc>
<link xlink:href="http://www.manning.com/bauer2" xmlns:xlink="http://www.w3.org/1999/xlink"/> <link xlink:href="http://www.manning.com/bauer2"/>
</bibliomisc> </bibliomisc>
<authorgroup> <authorgroup>
<author> <author>

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="collections"> <chapter xml:id="collections" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Collection mapping</title> <title>Collection mapping</title>
<section xml:id="collections-persistent" revision="3"> <section xml:id="collections-persistent" revision="3">

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="components"> <chapter xml:id="components" xmlns="http://docbook.org/ns/docbook">
<title>Component Mapping</title> <title>Component Mapping</title>
<para> <para>

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="session-configuration" revision="1"> <chapter xml:id="session-configuration" revision="1" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Configuration</title> <title>Configuration</title>
<para>Hibernate is designed to operate in many different environments and, <para>Hibernate is designed to operate in many different environments and,
@ -1205,7 +1204,7 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect</programlisting>
</para> </para>
</important> </important>
<para>Hibernate utilizes <link xlink:href="http://www.slf4j.org/" xmlns:xlink="http://www.w3.org/1999/xlink">Simple Logging <para>Hibernate utilizes <link xlink:href="http://www.slf4j.org/" >Simple Logging
Facade for Java</link> (SLF4J) in order to log various system events. Facade for Java</link> (SLF4J) in order to log various system events.
SLF4J can direct your logging output to several logging frameworks (NOP, SLF4J can direct your logging output to several logging frameworks (NOP,
Simple, log4j version 1.2, JDK 1.4 logging, JCL or logback) depending on Simple, log4j version 1.2, JDK 1.4 logging, JCL or logback) depending on
@ -1213,7 +1212,7 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect</programlisting>
<filename>slf4j-api.jar</filename> in your classpath together with the jar <filename>slf4j-api.jar</filename> in your classpath together with the jar
file for your preferred binding - <filename>slf4j-log4j12.jar</filename> file for your preferred binding - <filename>slf4j-log4j12.jar</filename>
in the case of Log4J. See the SLF4J in the case of Log4J. See the SLF4J
<link xlink:href="http://www.slf4j.org/manual.html" xmlns:xlink="http://www.w3.org/1999/xlink">documentation</link> <link xlink:href="http://www.slf4j.org/manual.html">documentation</link>
for more for more
detail. To use Log4j you will also need to place a detail. To use Log4j you will also need to place a
<filename>log4j.properties</filename> file in your classpath. An example <filename>log4j.properties</filename> file in your classpath. An example

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="events"> <chapter xml:id="events" xmlns="http://docbook.org/ns/docbook">
<title>Interceptors and events</title> <title>Interceptors and events</title>
<para> <para>

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd"> <!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="example-mappings"> <chapter xml:id="example-mappings" xmlns="http://docbook.org/ns/docbook">
<title>Example: Various Mappings</title> <title>Example: Various Mappings</title>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="example-parentchild"> <chapter xml:id="example-parentchild" xmlns="http://docbook.org/ns/docbook">
<title>Example: Parent/Child</title> <title>Example: Parent/Child</title>
<para> <para>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="example-weblog"> <chapter xml:id="example-weblog" xmlns="http://docbook.org/ns/docbook">
<title>Example: Weblog Application</title> <title>Example: Weblog Application</title>
<section xml:id="example-weblog-classes"> <section xml:id="example-weblog-classes">

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="filters"> <chapter xml:id="filters" xmlns="http://docbook.org/ns/docbook" >
<title>Filtering data</title> <title>Filtering data</title>
<para>Hibernate3 provides an innovative new approach to handling data with <para>Hibernate3 provides an innovative new approach to handling data with

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="inheritance"> <chapter xml:id="inheritance" xmlns="http://docbook.org/ns/docbook">
<title>Inheritance mapping</title> <title>Inheritance mapping</title>
<section xml:id="inheritance-strategies" revision="3"> <section xml:id="inheritance-strategies" revision="3">

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="performance"> <chapter xml:id="performance" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Improving performance</title> <title>Improving performance</title>
<section xml:id="performance-fetching" revision="2"> <section xml:id="performance-fetching" revision="2">
@ -616,7 +615,7 @@ Customer customer = (Customer) session.get( Customer.class, customerId );
<para> <para>
Currently only join style fetch profiles are supported, but they plan is to support additional styles. See Currently only join style fetch profiles are supported, but they plan is to support additional styles. See
<link xlink:href="http://opensource.atlassian.com/projects/hibernate/browse/HHH-3414" xmlns:xlink="http://www.w3.org/1999/xlink">HHH-3414</link> <link xlink:href="http://opensource.atlassian.com/projects/hibernate/browse/HHH-3414">HHH-3414</link>
for details. for details.
</para> </para>
</section> </section>

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="persistent-classes"> <chapter xml:id="persistent-classes" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Persistent Classes</title> <title>Persistent Classes</title>
<para> <para>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="portability"> <chapter xml:id="portability" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Database Portability Considerations</title> <title>Database Portability Considerations</title>
<section xml:id="portability-basics"> <section xml:id="portability-basics">
@ -106,7 +105,7 @@
<para> <para>
Starting with version 3.2.3, Hibernate comes with a set of Starting with version 3.2.3, Hibernate comes with a set of
<link xlink:href="http://in.relation.to/2082.lace" xmlns:xlink="http://www.w3.org/1999/xlink">enhanced</link> <link xlink:href="http://in.relation.to/2082.lace">enhanced</link>
identifier generators targetting identifier generators targetting
portability in a much different way. portability in a much different way.
<note> <note>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE preface SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<preface xml:id="preface"> <preface xml:id="preface" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Preface</title> <title>Preface</title>
<para> <para>
@ -10,7 +9,7 @@
objects versus relational databases. Hibernate is an Object/Relational Mapping solution for Java environments. objects versus relational databases. Hibernate is an Object/Relational Mapping solution for Java environments.
The term Object/Relational Mapping refers to the technique of mapping data from an object model representation The term Object/Relational Mapping refers to the technique of mapping data from an object model representation
to a relational data model representation (and visa versa). See to a relational data model representation (and visa versa). See
<link xlink:href="http://en.wikipedia.org/wiki/Object-relational_mapping" xmlns:xlink="http://www.w3.org/1999/xlink"/> <link xlink:href="http://en.wikipedia.org/wiki/Object-relational_mapping"/>
for a good high-level discussion. for a good high-level discussion.
</para> </para>
@ -23,12 +22,12 @@
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para> <para>
<link xlink:href="http://www.agiledata.org/essays/dataModeling101.html" xmlns:xlink="http://www.w3.org/1999/xlink"/> <link xlink:href="http://www.agiledata.org/essays/dataModeling101.html" />
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
<link xlink:href="http://en.wikipedia.org/wiki/Data_modeling" xmlns:xlink="http://www.w3.org/1999/xlink"/> <link xlink:href="http://en.wikipedia.org/wiki/Data_modeling" />
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
@ -90,7 +89,7 @@
information. Consider reading <biblioref linkend="biblio-JPwH"/> information. Consider reading <biblioref linkend="biblio-JPwH"/>
if you need more help with application design, or if you prefer if you need more help with application design, or if you prefer
a step-by-step tutorial. Also visit a step-by-step tutorial. Also visit
<link xlink:href="http://caveatemptor.hibernate.org" xmlns:xlink="http://www.w3.org/1999/xlink"/> <link xlink:href="http://caveatemptor.hibernate.org"/>
and download the example application from <biblioref linkend="biblio-JPwH"/>. and download the example application from <biblioref linkend="biblio-JPwH"/>.
</para> </para>
</listitem> </listitem>
@ -120,20 +119,20 @@
<listitem> <listitem>
<para> <para>
Trying stuff out and reporting bugs. See Trying stuff out and reporting bugs. See
<link xlink:href="http://hibernate.org/issuetracker.html" xmlns:xlink="http://www.w3.org/1999/xlink"/> <link xlink:href="http://hibernate.org/issuetracker.html" />
details. details.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
Trying your hand at fixing some bugs or implementing enhancements. Again, see Trying your hand at fixing some bugs or implementing enhancements. Again, see
<link xlink:href="http://hibernate.org/issuetracker.html" xmlns:xlink="http://www.w3.org/1999/xlink"/> <link xlink:href="http://hibernate.org/issuetracker.html"/>
details. details.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
<link xlink:href="http://hibernate.org/community.html" xmlns:xlink="http://www.w3.org/1999/xlink"/> <link xlink:href="http://hibernate.org/community.html"/>
lists a few ways to engage in the community. lists a few ways to engage in the community.
<itemizedlist> <itemizedlist>
<listitem> <listitem>
@ -144,7 +143,7 @@
<listitem> <listitem>
<para> <para>
There are also There are also
<link xlink:href="http://en.wikipedia.org/wiki/Internet_Relay_Chat" xmlns:xlink="http://www.w3.org/1999/xlink">IRC</link> <link xlink:href="http://en.wikipedia.org/wiki/Internet_Relay_Chat">IRC</link>
channels for both user and developer discussions. channels for both user and developer discussions.
</para> </para>
</listitem> </listitem>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE preface SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="querycriteria"> <chapter xml:id="querycriteria" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Criteria Queries</title> <title>Criteria Queries</title>
<para> <para>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="queryhql" revision="1"> <chapter xml:id="queryhql" revision="1" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>HQL: The Hibernate Query Language</title> <title>HQL: The Hibernate Query Language</title>
<para> <para>
@ -1195,7 +1194,7 @@ Collection counts = s.filter( collection, "select this.type, count(this) group b
<programlisting><![CDATA[from Person p order by p.name.first]]></programlisting> <programlisting><![CDATA[from Person p order by p.name.first]]></programlisting>
<para> <para>
Another common use of components is in <link linkend="queryhql-tuple">row value constructors</link>. Another common use of components is in <xref linkend="queryhql-tuple">row value constructors</xref>.
</para> </para>
</section> </section>

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="querysql" revision="2"> <chapter xml:id="querysql" revision="2" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Native SQL</title> <title>Native SQL</title>
<para>You can also express queries in the native SQL dialect of your <para>You can also express queries in the native SQL dialect of your

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="readonly"> <chapter xml:id="readonly" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Read-only entities</title> <title>Read-only entities</title>
<important> <important>

View File

@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="objectstate"> <chapter xml:id="objectstate" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Working with objects</title> <title>Working with objects</title>
<para>Hibernate is a full object/relational mapping solution that not only <para>Hibernate is a full object/relational mapping solution that not only

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="toolsetguide" revision="2"> <chapter xml:id="toolsetguide" revision="2" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Toolset Guide</title> <title>Toolset Guide</title>
<para> <para>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="transactions" revision="2"> <chapter xml:id="transactions" revision="2" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Transactions and Concurrency</title> <title>Transactions and Concurrency</title>
<para> <para>
@ -455,7 +454,7 @@ finally {
<para> <para>
You do not have to <literal>flush()</literal> the <literal>Session</literal> explicitly: You do not have to <literal>flush()</literal> the <literal>Session</literal> explicitly:
the call to <literal>commit()</literal> automatically triggers the synchronization depending the call to <literal>commit()</literal> automatically triggers the synchronization depending
on the <link linkend="objectstate-flushing">FlushMode</link> for the session. on the <xref linkend="objectstate-flushing">FlushMode</xref> for the session.
A call to <literal>close()</literal> marks the end of a session. The main implication A call to <literal>close()</literal> marks the end of a session. The main implication
of <literal>close()</literal> is that the JDBC connection will be relinquished by the of <literal>close()</literal> is that the JDBC connection will be relinquished by the
session. This Java code is portable and runs in both non-managed and JTA environments. session. This Java code is portable and runs in both non-managed and JTA environments.

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="tutorial"> <chapter xml:id="tutorial" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Tutorial</title> <title>Tutorial</title>
<para> <para>
@ -424,9 +423,9 @@ public class Event {
how to obtain connections. For this tutorial we will be using a standalone connection how to obtain connections. For this tutorial we will be using a standalone connection
pool (as opposed to a <interfacename>javax.sql.DataSource</interfacename>). Hibernate comes with pool (as opposed to a <interfacename>javax.sql.DataSource</interfacename>). Hibernate comes with
support for two third-party open source JDBC connection pools: support for two third-party open source JDBC connection pools:
<link xlink:href="https://sourceforge.net/projects/c3p0" xmlns:xlink="http://www.w3.org/1999/xlink">c3p0</link> <link xlink:href="https://sourceforge.net/projects/c3p0">c3p0</link>
and and
<link xlink:href="http://proxool.sourceforge.net/" xmlns:xlink="http://www.w3.org/1999/xlink">proxool</link>. <link xlink:href="http://proxool.sourceforge.net/">proxool</link>.
However, we will be using the Hibernate built-in connection pool for this tutorial. However, we will be using the Hibernate built-in connection pool for this tutorial.
</para> </para>
@ -528,7 +527,7 @@ public class Event {
<para> <para>
We will now build the tutorial with Maven. You will need to We will now build the tutorial with Maven. You will need to
have Maven installed; it is available from the have Maven installed; it is available from the
<link xlink:href="http://maven.apache.org/download.html" xmlns:xlink="http://www.w3.org/1999/xlink">Maven download page</link>. <link xlink:href="http://maven.apache.org/download.html">Maven download page</link>.
Maven will read the <filename>/pom.xml</filename> file we created Maven will read the <filename>/pom.xml</filename> file we created
earlier and know how to perform some basic project tasks. First, earlier and know how to perform some basic project tasks. First,
lets run the <literal>compile</literal> goal to make sure we can compile lets run the <literal>compile</literal> goal to make sure we can compile
@ -1458,7 +1457,7 @@ public class EventManagerServlet extends HttpServlet {
<para> <para>
This coding style, with a mix of Java and HTML, would not scale This coding style, with a mix of Java and HTML, would not scale
in a more complex application&mdash;keep in mind that we are only illustrating in a more complex application;keep in mind that we are only illustrating
basic Hibernate concepts in this tutorial. The code prints an HTML basic Hibernate concepts in this tutorial. The code prints an HTML
header and a footer. Inside this page, an HTML form for event entry and header and a footer. Inside this page, an HTML form for event entry and
a list of all events in the database are printed. The first method is a list of all events in the database are printed. The first method is

View File

@ -1,6 +1,5 @@
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd"> <?xml version='1.0' encoding="UTF-8"?>
<chapter xml:id="types" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<chapter xml:id="types">
<title>Types</title> <title>Types</title>
<para> <para>

View File

@ -1,7 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter SYSTEM "http://docbook.org/xml/5.0/dtd/docbook.dtd">
<chapter xml:id="xml"> <chapter xml:id="xml" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>XML Mapping</title> <title>XML Mapping</title>
<para><emphasis> <para><emphasis>

View File

@ -22,10 +22,7 @@
~ 51 Franklin Street, Fifth Floor ~ 51 Franklin Street, Fifth Floor
~ Boston, MA 02110-1301 USA ~ Boston, MA 02110-1301 USA
--> -->
<!DOCTYPE legalnotice PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ <legalnotice xml:id="Legal_Notice" xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink">
]>
<legalnotice id="Legal_Notice">
<title>Legal Notice</title> <title>Legal Notice</title>
<para> <para>
<address> <address>
@ -40,7 +37,7 @@
<para> <para>
Copyright <trademark class="copyright"/> 2007 by Red Hat, Inc. This copyrighted material is made available to Copyright <trademark class="copyright"/> 2007 by Red Hat, Inc. This copyrighted material is made available to
anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the
GNU <ulink url="http://www.gnu.org/licenses/lgpl-2.1.html">Lesser General Public License</ulink>, as published GNU <link xl:href="http://www.gnu.org/licenses/lgpl-2.1.html">Lesser General Public License</link>, as published
by the Free Software Foundation. by the Free Software Foundation.
</para> </para>
<para> <para>

View File

@ -32,7 +32,7 @@ sourceSets {
//////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////
// JPA model-gen set up // JPA model-gen set up
//////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////
aptDumpDir = file( buildDirName + "/tmp/apt" ) aptDumpDir = file( "${buildDir}/tmp/apt" )
//////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////
// 'test' sourceSet specific JPA model-gen set up // 'test' sourceSet specific JPA model-gen set up
@ -94,7 +94,7 @@ compileMatrixJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-
bundlesTargetDir = file( "$buildDirName/bundles" ) bundlesTargetDir = file( "${buildDir}/bundles" )
task copyBundleResources (type: Copy) { task copyBundleResources (type: Copy) {
from file('src/test/bundles') from file('src/test/bundles')
into bundlesTargetDir into bundlesTargetDir

View File

@ -38,7 +38,7 @@ compileMatrixJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-
task generateJpaMetamodelClasses(type: Compile) { task generateJpaMetamodelClasses(type: Compile) {
classpath = compileJava.classpath + configurations.hibernateJpaModelGenTool classpath = compileJava.classpath + configurations.hibernateJpaModelGenTool
source = sourceSets.main.originalJavaSrcDirs source = sourceSets.main.originalJavaSrcDirs
destinationDir = file( buildDirName + "/tmp/apt" ) destinationDir = file( "${buildDir}/tmp/apt" )
options.define( options.define(
compilerArgs: [ compilerArgs: [
"-proc:only", "-proc:only",

View File

@ -10,7 +10,7 @@ idea.module {
// Javadocs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Javadocs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
javadocBuildDir = dir( buildDirName + "/documentation/javadocs" ) javadocBuildDir = mkdir( "${buildDir}/documentation/javadocs" )
def copyRightYear = new java.util.GregorianCalendar().get( java.util.Calendar.YEAR ); def copyRightYear = new java.util.GregorianCalendar().get( java.util.Calendar.YEAR );
@ -34,10 +34,10 @@ task aggregateJavadocs(type: Javadoc) {
source sourceSet.java source sourceSet.java
if( classpath ) { if( classpath ) {
classpath += sourceSet.classes + sourceSet.compileClasspath classpath += sourceSet.output + sourceSet.compileClasspath
} }
else { else {
classpath = sourceSet.classes + sourceSet.compileClasspath classpath = sourceSet.output + sourceSet.compileClasspath
} }
sourceSet.java.each { javaFile -> sourceSet.java.each { javaFile ->
@ -63,7 +63,7 @@ task aggregateJavadocs(type: Javadoc) {
// apply standard config // apply standard config
description = "Build the aggregated JavaDocs for all modules" description = "Build the aggregated JavaDocs for all modules"
maxMemory = '512m' maxMemory = '512m'
destinationDir = javadocBuildDir.dir destinationDir = javadocBuildDir
configure( options ) { configure( options ) {
overview = new File( projectDir, 'src/javadoc/overview.html' ) overview = new File( projectDir, 'src/javadoc/overview.html' )
stylesheetFile = new File( projectDir, 'src/javadoc/stylesheet.css' ) stylesheetFile = new File( projectDir, 'src/javadoc/stylesheet.css' )
@ -101,13 +101,13 @@ String determinePackageName(SourceDirectorySet sourceDirectorySet, File javaFile
aggregateJavadocs.doLast { aggregateJavadocs.doLast {
copy { copy {
from new File( projectDir, 'src/javadoc/images' ) from new File( projectDir, 'src/javadoc/images' )
into new File( javadocBuildDir.dir, "/images" ) into new File( javadocBuildDir, "/images" )
} }
} }
// release bundles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // release bundles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
releaseBuildDir = dir( buildDirName ) releaseBuildDir = mkdir( buildDir )
task prepareReleaseBundles( dependsOn: [parent.project( 'documentation' ).tasks.buildDocs,aggregateJavadocs] ) task prepareReleaseBundles( dependsOn: [parent.project( 'documentation' ).tasks.buildDocs,aggregateJavadocs] )
@ -120,7 +120,7 @@ releaseCopySpec = copySpec {
into('lib/required') { into('lib/required') {
from parent.project( 'hibernate-core' ).configurations.provided.files { dep -> dep.name == 'jta' } from parent.project( 'hibernate-core' ).configurations.provided.files { dep -> dep.name == 'jta' }
from parent.project( 'hibernate-core' ).configurations.runtime from parent.project( 'hibernate-core' ).configurations.runtime
from parent.project( 'hibernate-core' ).configurations.archives.allArtifactFiles.filter{ file -> !file.name.endsWith('-sources.jar') } from parent.project( 'hibernate-core' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
// for now, // for now,
from parent.project( 'hibernate-core' ).configurations.provided.files { dep -> dep.name == 'javassist' } from parent.project( 'hibernate-core' ).configurations.provided.files { dep -> dep.name == 'javassist' }
} }
@ -130,17 +130,17 @@ releaseCopySpec = copySpec {
// } // }
into( 'lib/jpa' ) { into( 'lib/jpa' ) {
from parent.project( 'hibernate-entitymanager' ).configurations.archives.allArtifactFiles.filter{ file -> !file.name.endsWith('-sources.jar') } from parent.project( 'hibernate-entitymanager' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
} }
into( 'lib/envers' ) { into( 'lib/envers' ) {
from( from(
( parent.project( 'hibernate-envers' ).configurations.archives.allArtifactFiles.filter{ file -> !file.name.endsWith('-sources.jar') } ( parent.project( 'hibernate-envers' ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
+ parent.project( 'hibernate-envers' ).configurations.runtime ) + parent.project( 'hibernate-envers' ).configurations.runtime )
- parent.project( 'hibernate-core' ).configurations.runtime - parent.project( 'hibernate-core' ).configurations.runtime
- parent.project( 'hibernate-core' ).configurations.archives.allArtifactFiles - parent.project( 'hibernate-core' ).configurations.archives.allArtifacts.files
- parent.project( 'hibernate-entitymanager' ).configurations.runtime - parent.project( 'hibernate-entitymanager' ).configurations.runtime
- parent.project( 'hibernate-entitymanager' ).configurations.archives.allArtifactFiles - parent.project( 'hibernate-entitymanager' ).configurations.archives.allArtifacts.files
) )
} }
@ -152,10 +152,10 @@ releaseCopySpec = copySpec {
// into('lib/optional/' + shortName) { // into('lib/optional/' + shortName) {
owner.into('lib/optional/' + shortName) { owner.into('lib/optional/' + shortName) {
from ( from (
( parent.project( feature ).configurations.archives.allArtifactFiles.filter{ file -> !file.name.endsWith('-sources.jar') } ( parent.project( feature ).configurations.archives.allArtifacts.files.filter{ file -> !file.name.endsWith('-sources.jar') }
+ parent.project( feature ).configurations.runtime ) + parent.project( feature ).configurations.runtime )
- parent.project( 'hibernate-core' ).configurations.runtime - parent.project( 'hibernate-core' ).configurations.runtime
- parent.project( 'hibernate-core' ).configurations.archives.allArtifactFiles - parent.project( 'hibernate-core' ).configurations.archives.allArtifacts.files
) )
} }
} }
@ -165,7 +165,7 @@ releaseCopySpec = copySpec {
} }
into('documentation/javadocs') { into('documentation/javadocs') {
from javadocBuildDir.dir from javadocBuildDir
} }
into( 'project' ) { into( 'project' ) {
@ -198,14 +198,14 @@ releaseCopySpec = copySpec {
task buildReleaseZip( type: Zip, dependsOn: [prepareReleaseBundles] ) { task buildReleaseZip( type: Zip, dependsOn: [prepareReleaseBundles] ) {
description = "Build release bundle in ZIP format" description = "Build release bundle in ZIP format"
baseName = 'hibernate-release' baseName = 'hibernate-release'
destinationDir = releaseBuildDir.dir destinationDir = releaseBuildDir
with project.releaseCopySpec with project.releaseCopySpec
} }
task buildReleaseTgz( type: Tar, dependsOn: [prepareReleaseBundles] ) { task buildReleaseTgz( type: Tar, dependsOn: [prepareReleaseBundles] ) {
description = "Build release bundle in GZIP format" description = "Build release bundle in GZIP format"
baseName = 'hibernate-release' baseName = 'hibernate-release'
destinationDir = releaseBuildDir.dir destinationDir = releaseBuildDir
compression = Compression.GZIP compression = Compression.GZIP
with project.releaseCopySpec with project.releaseCopySpec
} }