# Change these
# Fill in the variable below, e.g. ARIES_DIR=/Users/david/checkouts/aries
ARIES_DIR=/Users/david/checkouts/aries_jmx
# Fill in the variable below, e.g. OSGI_GIT_DIR=/Users/david/clones/osgi-build
OSGI_GIT_DIR=/Users/david/clones/osgi-build-jmx
# TODO fix the target version number
ARIES_TARGET_VERSION=0.999

JMX_TARGET_DIR=$OSGI_GIT_DIR/licensed/repo
LIB_BASE=$OSGI_GIT_DIR/cnf/repo/org.apache.aries.impl.jmx
LIB_FILE=$LIB_BASE/org.apache.aries.impl.jmx-4.2.0.lib

mkdir -p -v $JMX_TARGET_DIR/org.apache.aries.jmx
cp $ARIES_DIR/sandbox/jmx-next/jmx-bundle/target/org.apache.aries.jmx-0.3.1-SNAPSHOT.jar $JMX_TARGET_DIR/org.apache.aries.jmx/org.apache.aries.jmx-$ARIES_TARGET_VERSION.jar

mkdir -p -v $JMX_TARGET_DIR/org.apache.aries.util
cp $ARIES_DIR/util/target/org.apache.aries.util-0.4-SNAPSHOT.jar $JMX_TARGET_DIR/org.apache.aries.util/org.apache.aries.util-$ARIES_TARGET_VERSION.jar

mkdir -p -v $LIB_BASE
echo "slf4j.api; version=1.5.10" > $LIB_FILE
echo "slf4j.simple; version=1.5.10" >> $LIB_FILE
echo "org.apache.aries.util; version=$ARIES_TARGET_VERSION" >> $LIB_FILE
echo "org.apache.aries.jmx; version=$ARIES_TARGET_VERSION" >> $LIB_FILE

cp $ARIES_DIR/sandbox/jmx-next/tck/org.osgi.test.cases.jmx.bnd.bnd $OSGI_GIT_DIR/org.osgi.test.cases.jmx/bnd.bnd

Change the registered object names to include framework UUID and framework names, as required by RFC 169: for example: osgi.core:type=framework,version=1.7,uuid=f81d4fae-7dec-11d0-a765-00a0c91e6bf6,framework=org.apache.felix.framework This is to facilitate multiple frameworks running inside a single VM.
Change the registered object names to include framework UUID and framework names, as required by RFC 169:
for example:
  osgi.core:type=framework,version=1.7,uuid=f81d4fae-7dec-11d0-a765-00a0c91e6bf6,framework=org.apache.felix.framework
  
This is to facilitate multiple frameworks running inside a single VM.


git-svn-id: f3027bd689517dd712b868b0d3f5f59c3162b83d@1222659 13f79535-47bb-0310-9956-ffa450edef68
