1 rem Inject the sanitytest jar as a controller plugin
2 copy .\target\dependency\sanitytest*.jar .\target\distribution.opendaylight-osgipackage\opendaylight\plugins
4 rem Store the current working directory in a variable so that we can get back to it later
7 rem Switch to the distribution folder
8 cd .\target\distribution.opendaylight-osgipackage\opendaylight
10 rem Run the controller
13 rem Store the exit value of the controller in a variable
14 set success=%ERRORLEVEL%
16 rem Switch back to the directory from which this script was invoked
19 rem Remove the sanitytest jar from the plugins directory
20 del .\target\distribution.opendaylight-osgipackage\opendaylight\plugins\sanitytest*.jar
22 rem Exit using the exit code that we had captured earlier after running the controller