提交 c23dcee7 authored 作者: Thomas Mueller's avatar Thomas Mueller

automate release process

上级 22f467ed
...@@ -270,6 +270,13 @@ java org.h2.test.TestAll timer ...@@ -270,6 +270,13 @@ java org.h2.test.TestAll timer
/* /*
H2 databases need to have a file name prefix.
Probably the database should throw a meaningful exception
if the last element in the URL path is a slash (or backslash).
I will try to implement that for the next release.
Improved compatibility with DB2: support for FETCH .. ROWS
drop table test; drop table test;
create table test(a int); create table test(a int);
insert into test values(1); insert into test values(1);
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
*/ */
package org.h2.test.jaqu; package org.h2.test.jaqu;
//## Java 1.5 begin ##
import java.math.BigDecimal; import java.math.BigDecimal;
//## Java 1.5 begin ##
import java.util.List; import java.util.List;
import org.h2.jaqu.Db; import org.h2.jaqu.Db;
...@@ -179,13 +179,13 @@ public class SamplesTest extends TestBase { ...@@ -179,13 +179,13 @@ public class SamplesTest extends TestBase {
/** /**
* A result set class containing the product name and price. * A result set class containing the product name and price.
*/ */
//## Java 1.5 begin ##
public static class ProductPrice { public static class ProductPrice {
public String productName; public String productName;
public String category; public String category;
public Double price; public Double price;
} }
//## Java 1.5 begin ##
private void testAnonymousTypes3() throws Exception { private void testAnonymousTypes3() throws Exception {
// var productInfos = // var productInfos =
...@@ -220,13 +220,13 @@ public class SamplesTest extends TestBase { ...@@ -220,13 +220,13 @@ public class SamplesTest extends TestBase {
/** /**
* A result set class containing customer data and the order total. * A result set class containing customer data and the order total.
*/ */
//## Java 1.5 begin ##
public static class CustOrder { public static class CustOrder {
public String customerId; public String customerId;
public Integer orderId; public Integer orderId;
public BigDecimal total; public BigDecimal total;
} }
//## Java 1.5 begin ##
private void testSelectManyCompoundFrom2() throws Exception { private void testSelectManyCompoundFrom2() throws Exception {
// var orders = // var orders =
...@@ -280,18 +280,17 @@ public class SamplesTest extends TestBase { ...@@ -280,18 +280,17 @@ public class SamplesTest extends TestBase {
long count = db.from(new Product()).selectCount(); long count = db.from(new Product()).selectCount();
assertEquals(77, count); assertEquals(77, count);
} }
//## Java 1.5 end ##
//## Java 1.5 end ##
/** /**
* A result set class containing product groups. * A result set class containing product groups.
*/ */
//## Java 1.5 begin ##
public static class ProductGroup { public static class ProductGroup {
public String category; public String category;
public Long productCount; public Long productCount;
} }
//## Java 1.5 begin ##
private void testGroup() throws Exception { private void testGroup() throws Exception {
// var orderGroups = // var orderGroups =
......
...@@ -242,7 +242,7 @@ public class Build extends BuildBase { ...@@ -242,7 +242,7 @@ public class Build extends BuildBase {
mkdir("docs/javadoc"); mkdir("docs/javadoc");
javadoc(new String[] { "-sourcepath", "src/main", "org.h2.jdbc", "org.h2.jdbcx", javadoc(new String[] { "-sourcepath", "src/main", "org.h2.jdbc", "org.h2.jdbcx",
"org.h2.tools", "org.h2.api", "org.h2.constant", "org.h2.tools", "org.h2.api", "org.h2.constant",
"-doclet", "org.h2.build.doclet.Doclet" }); "-doclet", "org.h2.build.doclet.Doclet"});
copy("docs/javadoc", getFiles("src/docsrc/javadoc"), "src/docsrc/javadoc"); copy("docs/javadoc", getFiles("src/docsrc/javadoc"), "src/docsrc/javadoc");
} }
...@@ -250,8 +250,7 @@ public class Build extends BuildBase { ...@@ -250,8 +250,7 @@ public class Build extends BuildBase {
* Create the Javadocs of the implementation. * Create the Javadocs of the implementation.
*/ */
public void javadocImpl() { public void javadocImpl() {
mkdir("docs/javadocImpl"); mkdir("docs/javadocImpl2");
javadoc(new String[] { javadoc(new String[] {
"-sourcepath", "src/main" + File.pathSeparator + "-sourcepath", "src/main" + File.pathSeparator +
"src/test" + File.pathSeparator + "src/tools" , "src/test" + File.pathSeparator + "src/tools" ,
...@@ -263,7 +262,7 @@ public class Build extends BuildBase { ...@@ -263,7 +262,7 @@ public class Build extends BuildBase {
File.pathSeparator + "ext/servlet-api-2.4.jar" + File.pathSeparator + "ext/servlet-api-2.4.jar" +
File.pathSeparator + "ext/lucene-core-2.2.0.jar", File.pathSeparator + "ext/lucene-core-2.2.0.jar",
"-subpackages", "org.h2", "-subpackages", "org.h2",
"-exclude", "org.h2.build.*,org.h2.dev.*" }); "-exclude", "org.h2.test.jaqu:org.h2.jaqu" });
System.setProperty("h2.interfacesOnly", "false"); System.setProperty("h2.interfacesOnly", "false");
System.setProperty("h2.destDir", "docs/javadocImpl"); System.setProperty("h2.destDir", "docs/javadocImpl");
...@@ -274,6 +273,7 @@ public class Build extends BuildBase { ...@@ -274,6 +273,7 @@ public class Build extends BuildBase {
File.pathSeparator + "ext/servlet-api-2.4.jar" + File.pathSeparator + "ext/servlet-api-2.4.jar" +
File.pathSeparator + "ext/lucene-core-2.2.0.jar", File.pathSeparator + "ext/lucene-core-2.2.0.jar",
"-subpackages", "org.h2", "-subpackages", "org.h2",
"-exclude", "org.h2.test.jaqu:org.h2.jaqu",
"-package", "-package",
"-doclet", "org.h2.build.doclet.Doclet" }); "-doclet", "org.h2.build.doclet.Doclet" });
copy("docs/javadocImpl", getFiles("src/docsrc/javadoc"), "src/docsrc/javadoc"); copy("docs/javadocImpl", getFiles("src/docsrc/javadoc"), "src/docsrc/javadoc");
......
...@@ -157,7 +157,7 @@ public class SwitchSource { ...@@ -157,7 +157,7 @@ public class SwitchSource {
File fileCopy = new File(name); File fileCopy = new File(name);
fileNew.renameTo(fileCopy); fileNew.renameTo(fileCopy);
fileBack.delete(); fileBack.delete();
System.out.println(name); // System.out.println(name);
} }
} }
......
...@@ -551,4 +551,4 @@ geocoder geocoding longitude estimating microarray latitude magnolia pfgrc ...@@ -551,4 +551,4 @@ geocoder geocoding longitude estimating microarray latitude magnolia pfgrc
refill analyzers patches popular came growing indication arabic graphic toc refill analyzers patches popular came growing indication arabic graphic toc
numbering goto outline makensis macro hyperlink dispatch setlocal wend numbering goto outline makensis macro hyperlink dispatch setlocal wend
widows msgbox designer styles families uno soffice orphans stan ucb rem widows msgbox designer styles families uno soffice orphans stan ucb rem
pdfurl upate pagebreak pdfurl upate pagebreak ren echo
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论