Compare commits

..

2 Commits

Author SHA1 Message Date
7bef98a33a update zstd-jnilib to latest
and provide in fetch_dependencies information of latest

Signed-off-by: philippe lhardy <philippe.lhardy@astrolabe.coop>
2025-11-02 20:21:31 +01:00
fcda589742 cleanup remove samples 2025-11-02 18:30:07 +01:00
20 changed files with 27 additions and 2428131 deletions

View File

@@ -13,7 +13,7 @@
<!-- Fill me please / todo <!-- Fill me please / todo
see fetch_dependencies see fetch_dependencies
--> -->
<property name="zstd-jnilib" value="zstd-jni-1.5.2-2"/> <property name="zstd-jnilib" value="zstd-jni-1.5.7-6"/>
<target name="gather_project_params"> <target name="gather_project_params">
<!-- original source parameter is in project_params project_version --> <!-- original source parameter is in project_params project_version -->
<loadfile property="distversion" srcfile="${basedir}/project_params"> <loadfile property="distversion" srcfile="${basedir}/project_params">

View File

@@ -10,6 +10,12 @@ toolsdir=$(pwd)
source metascript.sh source metascript.sh
popd >/dev/null popd >/dev/null
usage() {
cat <<EOF
$0 use_jackson|use_zstd|use_artgraphic
EOF
}
fetch_jackson_databind() fetch_jackson_databind()
{ {
lib_jackson_databind=jackson-databind-${libversion_jackson_databind}.jar lib_jackson_databind=jackson-databind-${libversion_jackson_databind}.jar
@@ -24,17 +30,27 @@ fetch_jackson_databind()
fetch_zstd-jni() fetch_zstd-jni()
{ {
# echo "compiled from https://github.com/luben/zstd-jni commit 54d3d50c16d96bd8a30e2d4c0a9648001a52d6f9" # echo "compiled from https://github.com/luben/zstd-jni commit 54d3d50c16d96bd8a30e2d4c0a9648001a52d6f9"
# had to hack through jar generation ... # had to hack through jar generation ...
# cp ~/artisanlogiciel/ext_projects/java/zstd-jni/target/zstd-jni-1.5.2-2.jar . # cp ~/artisanlogiciel/ext_projects/java/zstd-jni/target/zstd-jni-1.5.2-2.jar .
$defer pushd libs maven_repo=https://repo1.maven.org/maven2/
$metarun wget https://repo1.maven.org/maven2/com/github/luben/zstd-jni/${libversion_zstdjni}/zstd-jni-${libversion_zstdjni}.jar package_path=com/github/luben/zstd-jni/
$defer popd # https://repo1.maven.org/maven2/maven-metadata.xml
latest=$(curl -s ${maven_repo}${package_path}maven-metadata.xml | xmllint --xpath 'string(metadata/versioning/latest)' -)
log_info "latest version : $latest"
zstdjni=$(xmllint --xpath 'string(/project/property[@name="zstd-jnilib"]/@value)' build.xml)
if [[ -n $zstdjni ]]
then
$defer pushd libs
libversion_zstdjni=${zstdjni/zstd-jni-}
$metarun curl ${maven_repo}${package_path}${libversion_zstdjni}/${zstdjni}.jar -o ${zstdjni}.jar
$defer popd
else
log_error 'no /project/property[@name="zstd-jnilib"]/@value) found in build.xml'
fi
} }
# HARDCODED START # HARDCODED START
libversion_zstdjni=1.5.2-2
libversion_jackson_databind=2.12.0 libversion_jackson_databind=2.12.0
sharedrawweb_git_url="https://framagit.org/artlog/sharedrawweb.git" sharedrawweb_git_url="https://framagit.org/artlog/sharedrawweb.git"
libversion_artgaphic=0.2.0 libversion_artgaphic=0.2.0
@@ -65,12 +81,6 @@ do
done done
if [[ ! -d sharedrawweb ]]
then
log_error "expected a sharedrawweb project parent ( for exports ). Please clone related project."
log_info "git clone $sharedrawweb_git_url sharedrawweb"
fi
if [[ ! -d libs ]] if [[ ! -d libs ]]
then then
$metarun mkdir libs $metarun mkdir libs
@@ -78,6 +88,11 @@ fi
if [[ -n $user_artgraphic ]] if [[ -n $user_artgraphic ]]
then then
if [[ ! -d sharedrawweb ]]
then
log_error "expected a sharedrawweb project parent ( for exports ). Please clone related project."
log_info "git clone $sharedrawweb_git_url sharedrawweb"
fi
if [[ ! -e libs/$lib_artgaphic ]] if [[ ! -e libs/$lib_artgaphic ]]
then then
lib_artgaphic_source_file=sharedrawweb/dist/lib/$lib_artgaphic lib_artgaphic_source_file=sharedrawweb/dist/lib/$lib_artgaphic

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff