blob: 4994e25bb970d32a5959c0191ef959772cff0a2f [file] [log] [blame]
# Functions used in the RAP build
test -f ${SCRIPTS_DIR}/init-environment.sh && . ${SCRIPTS_DIR}/init-environment.sh
echo "***********************************************************************"
p2AddContent() {
if [ $# -lt 2 ]
then
echo "Usage: `p2AddContent` SOURCE_REPO TARGET_REPO [NAME]"
exit 1
fi
SOURCE=file://${1}
DESTINATION=file://${2}
DESTINATION_NAME=${3:-"A RAP p2 Repository"}
${ECLIPSE_HOME}/eclipse -nosplash -verbose \
-application org.eclipse.equinox.p2.metadata.repository.mirrorApplication \
-source ${SOURCE} \
-destination ${DESTINATION} \
-destinationName ${DESTINATION_NAME}
${ECLIPSE_HOME}/eclipse -nosplash -verbose \
-application org.eclipse.equinox.p2.artifact.repository.mirrorApplication \
-source ${SOURCE} \
-destination ${DESTINATION} \
-destinationName ${DESTINATION_NAME}
}