blob: d2881585dfa099b734a6624561a6ff4664561828 [file] [log] [blame]
#!/bin/sh
basedir=`dirname $0`
onosdir="${basedir}/.."
logfile="${onosdir}/logback.xml"
jarfile="${onosdir}/target/floodlight-only.jar"
classpath="${jarfile}:${onosdir}/lib/*:${onosdir}/lib/titan/*"
mainclass="net.floodlightcontroller.core.Main"
propfile="${onosdir}/onos.properties"
#java -Dlogback.configurationFile=logback.xml -cp target/floodlight-only.jar:lib/*:lib/titan/* net.floodlightcontroller.core.Main -cf onos.properties
#java -Dlogback.configurationFile=${logfile} -cp ${classpath} ${mainclass} -cf ${propfile}
mvn -f ${onosdir}/pom.xml exec:exec -Dexec.executable="java" -Dexec.args="-Dlogback.configurationFile=${logfile} -cp %classpath ${mainclass} -cf ${propfile}"