4 Star 3 Fork 2

Gitee 极速下载/cache2k

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/headissue/cache2k
克隆/下载
site.sh 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
Jens Wilke 提交于 2021-10-28 17:29 +08:00 . add GA tag on all html pages
#!/bin/bash
set -e
set -x
# speed up maven startup
# https://zeroturnaround.com/rebellabs/your-maven-build-is-slow-speed-it-up/
export MAVEN_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
DEST=target/site;
mvn -Dmaven.test.skip=true clean compile site
# install stable version of 1.0 documentation
# don't do that any more 12 Sep 2020;jw
if false; then
VERSION=1.0.2.Final
DOC=$DEST/docs/1.0
mkdir -p $DOC/apidocs
cp documentation/generated-user-guide-archive-1.0/* $DOC
for I in cache2k-api cache2k-jmx-api cache2k-jcache-api; do
fn=~/.m2/repository/org/cache2k/$I/$VERSION/$I-$VERSION-javadoc.jar;
test -f $fn || mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.0:get -Dartifact=org.cache2k:$I:$VERSION:jar:javadoc
mkdir -p $DOC/apidocs/$I/
( cd $DOC/apidocs/$I/; jar xf $fn )
done
fi
DOC=$DEST/docs/jcache/1.1.0/apidocs/cache-api
# JSR107 JCache
fn=~/.m2/repository/javax/cache/cache-api/1.1.0/cache-api-1.1.0-javadoc.jar;
test -f $fn || mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.0:get -Dartifact=javax.cache:cache-api:1.1.0:jar:javadoc
mkdir -p $DOC
( cd $DOC; jar xf $fn )
# 1.0 is latest
# cp -a $DEST/docs/1.0 $DEST/docs/latest
# latest is always the latest and greatest including dev stuff, since we want to put links
# to it
DOC=$DEST/docs/latest
mkdir -p $DOC
cp documentation/target/generated-docs/user-* $DOC
for I in cache2k-api cache2k-spring cache2k-micrometer cache2k-jmx cache2k-addon cache2k-jcache; do
mkdir -p $DOC/apidocs/$I;
cp -a $I/target/site/apidocs/* $DOC/apidocs/$I/;
done
echo -n "Tagging with GA..."
~/Now/bin/pipereplace '~/Now/bin/addGoogleAnalytics G-YTH5W9HD6R' \
`find $DEST -name \*.html` | \
awk '/replacing/ { cnt++; next; } { print; } END { print "Tagged "cnt" html files with GA.";}'
mkdir $DEST/schema;
cp -a cache2k-schema/src/main//resources/org/cache2k/schema/cache2k-core-v1.x.xsd $DEST/schema/cache2k-core-v1.x.xsd
cp -a cache2k-schema/src/main//resources/org/cache2k/schema/cache2k.xsd $DEST/schema/cache2k-v2.x.xsd
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mirrors/cache2k.git
git@gitee.com:mirrors/cache2k.git
mirrors
cache2k
cache2k
master

搜索帮助