val=$1 url=$2 justj21=$3 echo "Include JustJ bit: ${justj21}" rm -f ./compositeArtifacts.xml rm -f ./compositeContent.xml rm -f ./p2.index echo "" >> compositeArtifacts.xml echo "" >> compositeArtifacts.xml echo "> compositeArtifacts.xml echo " type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository' version='1.0.0'>" >> compositeArtifacts.xml echo " " >> compositeArtifacts.xml echo " " >> compositeArtifacts.xml echo " " >> compositeArtifacts.xml if [ "${justj21}" = true ] ; then echo " " >> compositeArtifacts.xml echo " " >> compositeArtifacts.xml echo " " >> compositeArtifacts.xml echo " " >> compositeArtifacts.xml else echo " " >> compositeArtifacts.xml echo " " >> compositeArtifacts.xml echo " " >> compositeArtifacts.xml fi echo "" >> compositeArtifacts.xml echo "" >> compositeContent.xml echo "" >> compositeContent.xml echo "> compositeContent.xml echo " type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository' version='1.0.0'>" >> compositeContent.xml echo " " >> compositeContent.xml echo " " >> compositeContent.xml echo " " >> compositeContent.xml if [ "${justj21}" = true ] ; then echo " " >> compositeContent.xml echo " " >> compositeContent.xml echo " " >> compositeContent.xml echo " " >> compositeContent.xml else echo " " >> compositeContent.xml echo " " >> compositeContent.xml echo " " >> compositeContent.xml fi echo "" >> compositeContent.xml echo "version=1" >> p2.index echo "metadata.repository.factory.order=compositeContent.xml,!" >> p2.index echo "artifact.repository.factory.order=compositeArtifacts.xml,!" >> p2.index