
#!/bin/sh
##script that call java application to upgrade partner content class (delete empty fields) to cms 3.0
CP=.
CP=$CP:./resources
CP=$CP:lib/log4j-1.2.13.jar
CP=$CP:lib/commons-collections-3.1.jar
CP=$CP:lib/com.tandbergtv.watchpoint.title.interface-1.0.0.jar
CP=$CP:lib/com.tandbergtv.watchpoint.title-1.0.0.jar
CP=$CP:lib/commons-logging.jar
CP=$CP:lib/hibernate-core.jar
CP=$CP:lib/javassist.jar
CP=$CP:lib/metadatamanager.jar
CP=$CP:lib/dom4j-1.6.1.jar
CP=$CP:lib/antlr-2.7.6rc1.jar
CP=$CP:lib/jboss-javaee.jar
CP=$CP:lib/slf4j-api-1.5.0.jar
CP=$CP:lib/slf4j-jcl-1.5.0.jar
CP=$CP:lib/hibernate-annotations.jar
CP=$CP:lib/ojdbc6.jar

CP=$CP:lib/cms_custom_fields_upgrade.jar
JAVA=/usr/bin/java
echo " JAVA: $JAVA"
echo " CLASSPATH: $CP"

$JAVA -cp $CP com.tandbergtv.cms.partner.ContentClassPartnerManager
