提交 c5fd0351 authored 作者: Thomas Mueller Graf's avatar Thomas Mueller Graf

MVStore build: create the javadoc and source jar

上级 d0e6ac0c
......@@ -32,4 +32,5 @@ Update statistics
Sign files and publish files on Maven Central
http://central.sonatype.org/pages/ossrh-guide.html
http://central.sonatype.org/pages/manual-staging-bundle-creation-and-deployment.html
gpg -u "Thomas Mueller Graf <thomas.tom.mueller@gmail.com>" -ab maven-*
gpg -u "Thomas Mueller Graf <thomas.tom.mueller@gmail.com>" -ab h2-*
......@@ -582,6 +582,23 @@ public class Build extends BuildBase {
File.pathSeparator + "ext/jts-1.13.jar",
"-subpackages", "org.h2",
"-exclude", "org.h2.test.jaqu:org.h2.jaqu");
mkdir("docs/javadocImpl3");
javadoc("-sourcepath", "src/main",
"-noindex",
"-tag", "h2.resource",
"-d", "docs/javadocImpl3",
"-classpath", System.getProperty("java.home") +
"/../lib/tools.jar" +
File.pathSeparator + "ext/slf4j-api-1.6.0.jar" +
File.pathSeparator + "ext/servlet-api-3.0.1.jar" +
File.pathSeparator + "ext/lucene-core-3.0.2.jar" +
File.pathSeparator + "ext/org.osgi.core-4.2.0.jar" +
File.pathSeparator + "ext/org.osgi.enterprise-4.2.0.jar" +
File.pathSeparator + "ext/jts-1.13.jar",
"-subpackages", "org.h2.mvstore",
"-exclude", "org.h2.mvstore.db");
System.setProperty("h2.interfacesOnly", "false");
System.setProperty("h2.javadocDestDir", "docs/javadocImpl");
javadoc("-sourcepath", "src/main" +
......@@ -694,6 +711,50 @@ public class Build extends BuildBase {
"-DartifactId=h2",
"-DgroupId=com.h2database"));
// generate the h2-mvstore-*-sources.jar file
files = files("src/main");
copy("docs", files, "src/main");
files = files("docs").keep("docs/org/h2/mvstore/*").
exclude("docs/org/h2/mvstore/db/*").
keep("*.java");
files.addAll(files("docs").keep("docs/META-INF/*"));
manifest = new String(readFile(new File(
"src/installer/source-manifest.mf")));
manifest = replaceAll(manifest, "${version}", getVersion());
writeFile(new File("docs/META-INF/MANIFEST.MF"), manifest.getBytes());
jar("docs/h2-mvstore-" + getVersion() + "-sources.jar", files, "docs");
delete("docs/org");
delete("docs/META-INF");
// deploy the h2-mvstore-*-source.jar file
execScript("mvn", args(
"deploy:deploy-file",
"-Dfile=docs/h2-mvstore-" + getVersion() + "-sources.jar",
"-Durl=file:///data/h2database/m2-repo",
"-Dpackaging=jar",
"-Dclassifier=sources",
"-Dversion=" + getVersion(),
"-DartifactId=h2-mvstore",
"-DgroupId=com.h2database"
// ,"-DgeneratePom=false"
));
// generate and deploy the h2-mvstore-*-javadoc.jar file
javadocImpl();
files = files("docs/javadocImpl3");
jar("docs/h2-mvstore-" + getVersion() + "-javadoc.jar", files, "docs/javadocImpl3");
execScript("mvn", args(
"deploy:deploy-file",
"-Dfile=docs/h2-mvstore-" + getVersion() + "-javadoc.jar",
"-Durl=file:///data/h2database/m2-repo",
"-Dpackaging=jar",
"-Dclassifier=javadoc",
"-Dversion=" + getVersion(),
"-DartifactId=h2-mvstore",
"-DgroupId=com.h2database"
// ,"-DgeneratePom=false"
));
// generate and deploy the h2-mvstore-*.jar file
jarMVStore();
pom = new String(readFile(new File("src/installer/pom-mvstore-template.xml")));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论