April 13, 2020
Estimated Post Reading Time ~

crxde classpath

You must include /etc because there are jars under /etc/crxde/profiles/default/libs/*

So, /etc/crxde/profiles/default/@crxde:paths = /apps, /libs, /etc/crxde

I explicitly did not include /etc because /etc/tags was huge and CRXDE could not handle it.

Here is script to install custom jars to the libs folder:
#!/bin/bash

function usage() {
echo "installs jar files for CRXDE (/etc/crxde/profiles/default/libs) to given hosts"
echo "usage: $0 project-home-directory hostname1 hostname2 ..."
}

function err() {
msg="$1"
echo "$msg"
exit 1
}

if (( $# < 2 ))
then
usage
exit 1
fi

d="$1"
cred="admin:admin"
shift 1

ver="1.0-0"
bundles=(
#LIST YOUR JARS HERE
"$d/sub-project-1/target/sub-project-1-$ver.jar"
"$d/sub-project-2/target/sub-project-2-$ver.jar"
...
)
for x in "${bundles[@]}"
do
for host in $*
do
f="${x##*/}"
echo "install $x to $host"
curl -f -u "$cred" -T "$x" "http://$host/etc/crxde/profiles/default/libs/$f" || err "fail on crxde libs install $x -> $host"
done
done


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.