Does anyone know what the operators are for the shell:if statement? I am
puzzled by the lack of documentation and anything that would seem logical
does not work in the shell.
I want to also check for the version inside an if statement but can't get
anything to work (red part obviously does not work):
bundles = $.context bundles ;
each ($bundles) {
symbolicName = $it symbolicName;
bundleId = (($it bundleid) toString);
version = (($it version) toString);
if { $symbolicName equals "org.springframework.security.core" *and
$version equals "3.1.4.RELEASE"* } {
osgi:bundle-level --force $bundleId 30
osgi:start --force $bundleId
}
}
If anyone can offer some help that would be much appreciated.
Cheers,
Niels