- - shell: |
- echo "wipe r: the local Maven repository"
- rm -rfv /tmp/r
- echo "wipe n: the fake remote (Nexus) repository"
- rm -rfv /tmp/n
- echo "wipe t: the transient repository used in some manipulations"
- rm -rfv /tmp/t
- echo "create n: multithreaded execution might fail at creating it."
- mkdir /tmp/n
- echo "detecting distribution allowed projects"
- # Some allowed projects cannot be detected in distribution because they do not produce features.
- ALLOW_PROJECTS=(yangtools mdsal openflowjava)
- if [[ "$KARAF_VERSION" == "odl" ]]; then
- ALLOW_PROJECTS+=(`grep '<groupId>org.opendaylight.' -Rh distribution \
- | sed -e 's%^[ \t]*<groupId>org.opendaylight.%%' \
- | sed -e 's%</groupId>%%' | sort -u`)
- else
- # For Managed distro we only look at the features folder
- ALLOW_PROJECTS+=(`grep '<groupId>org.opendaylight.' -Rh distribution/features \
- | sed -e 's%^[ \t]*<groupId>org.opendaylight.%%' \
- | sed -e 's%</groupId>%%' | sort -u`)
- fi
- echo "Allowed projects are ${ALLOW_PROJECTS[@]}"
- echo "ALLOW_PROJECTS=${ALLOW_PROJECTS[@]}" > allowed_projects.txt