blob: 75324d6e1c456b37471bc950930c5a52a67d238a [file] [log] [blame]
# This script replaces all plugins in platform that can be replaced with symlinks
# It goes into a folder that is first argument of the script
# Then into plugins, and then symlinks
# SCL java dir is different from default
SCL_JAVA_DIR=$2
function _symlink {
_f=`ls | grep -e "^$1"`;
rm -rf ${_f} ;
if [ -f ${SCL_JAVA_DIR}/$2 ]; then
echo "found ${SCL_JAVA_DIR}/$2"
ln -s ${SCL_JAVA_DIR}/$2 ${_f}
elif [ -f /usr/share/java/$2 ]; then
echo "found /usr/share/java/$2"
ln -s /usr/share/java/$2 ${_f}
else
echo "not found ${SCL_JAVA_DIR}/$2 or /usr/share/java/$2"
exit 1
fi
}
pushd $1
#symlink what should be symlinked
pushd plugins
#So, remove duplicated jars and symlink them
_symlink com.ibm.icu_ icu4j-eclipse/plugins/com.ibm.icu_*.jar
_symlink com.jcraft.jsch_ jsch.jar
_symlink javax.el_ tomcat-el-api.jar
_symlink javax.xml_ xml-commons-apis.jar
_symlink javax.inject_ atinject.jar
_symlink javax.servlet_ tomcat-servlet-api.jar
_symlink javax.servlet.jsp_ glassfish-jsp-api/javax.servlet.jsp-api.jar
_symlink javax.servlet-api_ glassfish-servlet-api.jar
_symlink org.apache.batik.css_ batik/batik-css.jar
_symlink org.apache.batik.util_ batik/batik-util.jar
_symlink org.apache.batik.util.gui_ batik/batik-gui-util.jar
_symlink org.apache.commons.codec_ commons-codec.jar
_symlink org.apache.httpcomponents.httpcore_ httpcomponents/httpcore.jar
_symlink org.apache.httpcomponents.httpclient_ httpcomponents/httpclient.jar
_symlink org.apache.commons.logging_ commons-logging.jar
_symlink org.apache.felix.gogo.command_ felix/org.apache.felix.gogo.command.jar
_symlink org.apache.felix.gogo.runtime_ felix/felix-gogo-runtime.jar
_symlink org.apache.felix.gogo.shell_ felix/org.apache.felix.gogo.shell.jar
_symlink org.apache.geronimo.specs.geronimo-annotation_1.1_spec_ geronimo-annotation.jar
_symlink org.apache.lucene.core_ lucene.jar
_symlink org.apache.lucene.analysis_ lucene/analyzers-common.jar
_symlink org.eclipse.ecf_ ecf/eclipse/plugins/org.eclipse.ecf.jar
_symlink org.eclipse.ecf.identity_ ecf/eclipse/plugins/org.eclipse.ecf.identity.jar
_symlink org.eclipse.ecf.filetransfer_ ecf/eclipse/plugins/org.eclipse.ecf.filetransfer.jar
_symlink org.eclipse.ecf.provider.filetransfer.httpclient4_ ecf/eclipse/plugins/org.eclipse.ecf.provider.filetransfer.httpclient4.jar
_symlink org.eclipse.ecf.provider.filetransfer.httpclient4.ssl_ ecf/eclipse/plugins/org.eclipse.ecf.provider.filetransfer.httpclient4.ssl.jar
_symlink org.eclipse.ecf.provider.filetransfer.ssl_ ecf/eclipse/plugins/org.eclipse.ecf.provider.filetransfer.ssl.jar
_symlink org.eclipse.ecf.provider.filetransfer_ ecf/eclipse/plugins/org.eclipse.ecf.provider.filetransfer.jar
_symlink org.eclipse.ecf.ssl_ ecf/eclipse/plugins/org.eclipse.ecf.ssl.jar
_symlink org.eclipse.emf.common_ emf/eclipse/plugins/org.eclipse.emf.common.jar
_symlink org.eclipse.emf.ecore.change_ emf/eclipse/plugins/org.eclipse.emf.ecore.change.jar
_symlink org.eclipse.emf.ecore_ emf/eclipse/plugins/org.eclipse.emf.ecore.jar
_symlink org.eclipse.emf.ecore.xmi_ emf/eclipse/plugins/org.eclipse.emf.ecore.xmi.jar
_symlink org.eclipse.jetty.util_ jetty/jetty-util.jar
_symlink org.eclipse.jetty.server_ jetty/jetty-server.jar
_symlink org.eclipse.jetty.http_ jetty/jetty-http.jar
_symlink org.eclipse.jetty.continuation_ jetty/jetty-continuation.jar
_symlink org.eclipse.jetty.io_ jetty/jetty-io.jar
_symlink org.eclipse.jetty.security_ jetty/jetty-security.jar
_symlink org.eclipse.jetty.servlet_ jetty/jetty-servlet.jar
_symlink org.glassfish.web.javax.servlet.jsp_ glassfish-jsp.jar
_symlink org.sat4j.core_ org.sat4j.core.jar
_symlink org.sat4j.pb_ org.sat4j.pb.jar
_symlink org.w3c.css.sac_ sac.jar
_symlink org.w3c.dom.svg_ xml-commons-apis-ext.jar
popd
popd